-
Notifications
You must be signed in to change notification settings - Fork 15
/
package.json
86 lines (86 loc) · 2.8 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{
"name": "@parcel/source-map",
"version": "2.1.1",
"main": "./dist/node.js",
"types": "index.d.ts",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/parcel-bundler/source-map.git"
},
"scripts": {
"test": "mocha ./test/*.test.js",
"test:node": "cross-env BACKEND=node yarn test",
"test:wasm": "cross-env BACKEND=wasm yarn test",
"benchmark": "node ./bench/run",
"benchmark:node": "cross-env BACKEND=node yarn benchmark",
"benchmark:wasm": "cross-env BACKEND=wasm yarn benchmark",
"transpile": "babel ./src/*.js --out-dir ./dist && flow-copy-source -v src dist",
"build:clean": "cd ./parcel_sourcemap_node && rm -rf artifacts && mkdir artifacts",
"build:node": "yarn build:clean && node parcel_sourcemap_node/build.js",
"build:node-release": "yarn build:clean && node parcel_sourcemap_node/build.js --release",
"build:wasm-node": "wasm-pack build parcel_sourcemap_wasm --target nodejs --no-typescript --dev --out-dir dist-node",
"build:wasm-node-release": "wasm-pack build parcel_sourcemap_wasm --target nodejs --no-typescript --release --out-dir dist-node",
"build:wasm-web": "wasm-pack build parcel_sourcemap_wasm --no-typescript --target web --dev --out-dir dist-web",
"build:wasm-web-release": "wasm-pack build parcel_sourcemap_wasm --no-typescript --target web --release --out-dir dist-web",
"rebuild": "shx rm -rf build && yarn build:node",
"rebuild-all": "yarn transpile && yarn rebuild",
"prepublish": "npm run transpile",
"typecheck": "flow",
"format": "prettier --write \"./**/*.{js,md,mdx}\"",
"clean": "shx rm -rf dist build",
"tag-release": "node ./tag-release"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,json,md}": [
"prettier --write"
]
},
"files": [
"dist",
"index.d.ts",
"package.json",
"parcel_sourcemap_node/**/*",
"parcel_sourcemap_wasm/dist-node/**/*",
"parcel_sourcemap_wasm/dist-web/**/*",
"README.md",
"!.gitignore"
],
"binary": {
"napi_versions": [
4
]
},
"engines": {
"node": "^12.18.3 || >=14"
},
"devDependencies": {
"@babel/cli": "^7.14.3",
"@babel/core": "^7.14.3",
"@babel/preset-env": "^7.14.2",
"@babel/preset-flow": "^7.13.13",
"@babel/register": "^7.13.16",
"@napi-rs/cli": "^2.14.8",
"cross-env": "^7.0.3",
"flow-bin": "^0.151.0",
"flow-copy-source": "^2.0.9",
"fs-extra": "^10.0.0",
"globby": "^11.0.3",
"husky": "6.0.0",
"lint-staged": "^11.0.0",
"mocha": "^8.4.0",
"prettier": "^2.3.0",
"shx": "^0.3.3",
"source-map": "^0.7.3",
"tiny-benchy": "^2.1.0"
},
"browser": {
"./dist/node.js": "./dist/wasm.js",
"./dist/wasm-bindings.js": "./dist/wasm-bindings-web.js"
}
}