Create build folder in npm install script (#3799)

This commit is contained in:
Manish Jethani 2021-08-03 16:32:48 +05:30 committed by GitHub
parent ad69c760fb
commit 6b85b7f2b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -29,5 +29,6 @@ import { pslInit } from './index.js';
/******************************************************************************/
fs.mkdirSync('./build', { recursive: true });
fs.writeFileSync('./build/publicsuffixlist.json',
JSON.stringify(pslInit().toSelfie()));

View File

@ -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/