mirror of https://github.com/gorhill/uBlock.git
Create build folder in npm install script (#3799)
This commit is contained in:
parent
ad69c760fb
commit
6b85b7f2b1
|
@ -29,5 +29,6 @@ import { pslInit } from './index.js';
|
|||
|
||||
/******************************************************************************/
|
||||
|
||||
fs.mkdirSync('./build', { recursive: true });
|
||||
fs.writeFileSync('./build/publicsuffixlist.json',
|
||||
JSON.stringify(pslInit().toSelfie()));
|
||||
|
|
|
@ -6,6 +6,8 @@ set -e
|
|||
|
||||
DES=dist/build/uBlock0.nodejs
|
||||
|
||||
rm -rf $DES
|
||||
|
||||
mkdir -p $DES/js
|
||||
cp src/js/base64-custom.js $DES/js
|
||||
cp src/js/biditrie.js $DES/js
|
||||
|
@ -47,9 +49,6 @@ node -pe "JSON.stringify(fs.readFileSync('$THIRDPARTY/easylist.txt', 'utf8'))" \
|
|||
node -pe "JSON.stringify(fs.readFileSync('$THIRDPARTY/easyprivacy.txt', 'utf8'))" \
|
||||
> $DES/data/easyprivacy.json
|
||||
|
||||
rm -rf $DES/build
|
||||
mkdir -p $DES/build
|
||||
|
||||
cp platform/nodejs/*.js $DES/
|
||||
cp platform/nodejs/*.json $DES/
|
||||
cp LICENSE.txt $DES/
|
||||
|
|
Loading…
Reference in New Issue