Skip to content

Commit fc171d0

Browse files
committed
chore: use parcel
1 parent 00dbb37 commit fc171d0

File tree

3 files changed

+3765
-678
lines changed

3 files changed

+3765
-678
lines changed

package.json

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"description": "Blazing fast library for fuzzy filtering, matching, and other fuzzy things!",
77
"main": "./index.js",
88
"node": "./index.js",
9+
"source": "./src/binding/index.ts",
910
"scripts": {
1011
"format": "prettier --write . && clang-format -i src/*.h src/binding/*.cc src/binding/*.h",
1112
"test.format": "prettier . --check",
@@ -19,8 +20,8 @@
1920
"native.prebuild": "prebuildify --napi -t 12.0.0 -t electron@6.0.0 -t electron@9.3.5 --strip --tag-libc",
2021
"native.prebuild-ia32": "prebuildify --napi --arch=ia32 -t 12.0.0 -t electron@6.0.0 -t electron@9.3.5 --strip --tag-libc",
2122
"js.clean": "shx rm -rf dist dist-test .rollup.cache .parcel-cache **/tsconfig.tsbuildinfo ./index.* ./*.d.ts",
22-
"js.dev": "npm run js.types && cross-env NODE_ENV=development rollup -c -w",
23-
"js.build": "npm run js.types && cross-env NODE_ENV=production rollup -c",
23+
"js.dev": "npm run js.types && cross-env NODE_ENV=development parcel watch --target main ./src/binding/index.ts",
24+
"js.build": "npm run js.types && cross-env NODE_ENV=production parcel build --target main ./src/binding/index.ts",
2425
"js.types": "tsc -p ./src/binding/tsconfig.json --emitDeclarationOnly && shx mv ./src/binding/*.d.ts .",
2526
"clean": "npm run native.clean && npm run js.clean",
2627
"install": "node-gyp-build",
@@ -58,14 +59,28 @@
5859
"jasmine": "^3.7.0",
5960
"jasmine-node": "^3.0.0",
6061
"npm-check-updates": "11.7.1",
62+
"parcel": "2.0.0-nightly.733",
6163
"prebuildify": "^4.1.2",
6264
"prettier-config-atomic": "^2.0.5",
63-
"rollup": "^2.52.2",
64-
"rollup-plugin-atomic": "^2.3.2",
6565
"shx": "^0.3.3",
6666
"terser-config-atomic": "^0.1.1",
6767
"typescript": "^4.3.4"
6868
},
69+
"targets": {
70+
"main": {
71+
"context": "node",
72+
"includeNodeModules": {
73+
"node-gyp-build": false
74+
},
75+
"outputFormat": "commonjs",
76+
"isLibrary": true
77+
}
78+
},
79+
"engines": {
80+
"atom": ">=1.52.0 <2.0.0",
81+
"electron": ">=6.0.0",
82+
"node": ">=12.0.0"
83+
},
6984
"repository": {
7085
"type": "git",
7186
"url": "https://github.com/atom-ide-community/zadeh.git"

0 commit comments

Comments
 (0)