1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-08 04:49:12 +02:00

Remove bundle generation from Node.js package (#3796)

This commit is contained in:
Manish Jethani 2021-08-02 18:47:56 +05:30 committed by GitHub
parent f1106acf4b
commit 3879835324
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 8 deletions

View File

@ -42,7 +42,7 @@ install-nodejs: dist/build/uBlock0.nodejs.tgz
# Uninstall the Node.js package.
uninstall-nodejs:
npm uninstall ubo-snfe --no-save
npm uninstall '@gorhill/ubo-core' --no-save
# Update submodules.
update-submodules:

View File

@ -25,7 +25,7 @@
import fs from 'fs';
import { pslInit } from './main.js';
import { pslInit } from './index.js';
/******************************************************************************/

View File

@ -3,9 +3,9 @@
"version": "0.1.0",
"description": "To create a working instance of uBlock Origin's static network filtering engine",
"type": "module",
"main": "main.js",
"main": "index.js",
"scripts": {
"install": "node install.js && rollup main.js --file bundle.min.cjs --format cjs --context global --plugin terser",
"install": "node install.js",
"test": "node test.js"
},
"repository": {
@ -23,8 +23,8 @@
"url": "https://github.com/gorhill/uBlock/issues"
},
"homepage": "https://github.com/gorhill/uBlock#readme",
"dependencies": {
"rollup": "^2.55.1",
"rollup-plugin-terser": "^7.0.2"
"engines": {
"node": ">=14.0.0",
"npm": ">=6.14.4"
}
}

View File

@ -32,7 +32,7 @@ import {
FilteringContext,
pslInit,
restart,
} from './main.js';
} from './index.js';
/******************************************************************************/