Skip to content

Commit

Permalink
Remove bundle generation from Node.js package (gorhill#3796)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjethani authored Aug 2, 2021
1 parent f1106ac commit 3879835
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion platform/nodejs/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

import fs from 'fs';

import { pslInit } from './main.js';
import { pslInit } from './index.js';

/******************************************************************************/

Expand Down
10 changes: 5 additions & 5 deletions platform/nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -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"
}
}
2 changes: 1 addition & 1 deletion platform/nodejs/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import {
FilteringContext,
pslInit,
restart,
} from './main.js';
} from './index.js';

/******************************************************************************/

Expand Down

0 comments on commit 3879835

Please sign in to comment.