mirror of https://github.com/gorhill/uBlock.git
Remove bundle generation from Node.js package (#3796)
This commit is contained in:
parent
f1106acf4b
commit
3879835324
2
Makefile
2
Makefile
|
@ -42,7 +42,7 @@ install-nodejs: dist/build/uBlock0.nodejs.tgz
|
||||||
|
|
||||||
# Uninstall the Node.js package.
|
# Uninstall the Node.js package.
|
||||||
uninstall-nodejs:
|
uninstall-nodejs:
|
||||||
npm uninstall ubo-snfe --no-save
|
npm uninstall '@gorhill/ubo-core' --no-save
|
||||||
|
|
||||||
# Update submodules.
|
# Update submodules.
|
||||||
update-submodules:
|
update-submodules:
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
|
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
|
|
||||||
import { pslInit } from './main.js';
|
import { pslInit } from './index.js';
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
|
|
|
@ -3,9 +3,9 @@
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"description": "To create a working instance of uBlock Origin's static network filtering engine",
|
"description": "To create a working instance of uBlock Origin's static network filtering engine",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "main.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"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"
|
"test": "node test.js"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
@ -23,8 +23,8 @@
|
||||||
"url": "https://github.com/gorhill/uBlock/issues"
|
"url": "https://github.com/gorhill/uBlock/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/gorhill/uBlock#readme",
|
"homepage": "https://github.com/gorhill/uBlock#readme",
|
||||||
"dependencies": {
|
"engines": {
|
||||||
"rollup": "^2.55.1",
|
"node": ">=14.0.0",
|
||||||
"rollup-plugin-terser": "^7.0.2"
|
"npm": ">=6.14.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,7 +32,7 @@ import {
|
||||||
FilteringContext,
|
FilteringContext,
|
||||||
pslInit,
|
pslInit,
|
||||||
restart,
|
restart,
|
||||||
} from './main.js';
|
} from './index.js';
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue