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 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:

View File

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

View File

@ -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"
} }
} }

View File

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