-
Notifications
You must be signed in to change notification settings - Fork 4
/
package.json
34 lines (34 loc) · 1.4 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
{
"name": "@gyron/router",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/index.d.ts",
"version": "0.0.37",
"license": "MIT",
"publishConfig": {
"access": "public"
},
"files": [
"dist",
"README.md"
],
"scripts": {
"build": "yarn build:dts && yarn build:esm && yarn build:cjs && yarn build:browser",
"build:esm": "esbuild src/index.ts --bundle --sourcemap --outfile=dist/esm/index.js --format=esm --platform=node --external:@gyron/* --external:history --external:path-to-regexp --define:__DEV__=false --define:__WARN__=true",
"build:cjs": "esbuild src/index.ts --bundle --sourcemap --outfile=dist/cjs/index.js --format=cjs --platform=node --external:@gyron/* --external:history --external:path-to-regexp --define:__DEV__=false --define:__WARN__=true",
"build:browser": "esbuild src/index.ts --bundle --sourcemap --outfile=dist/browser/index.js --format=esm --platform=browser --external:@gyron/* --define:__DEV__=false --define:__WARN__=true --minify",
"build:dts": "rollup -c ../../rollup.config.js",
"test": "cross-env PACKAGES=router jest --config=../../jest.config.js"
},
"dependencies": {
"@gyron/logger": "^0.0.37",
"@gyron/runtime": "^0.0.37",
"@gyron/shared": "^0.0.37",
"@gyron/sync": "^0.0.37",
"history": "^5.3.0",
"path-to-regexp": "^6.2.0"
},
"devDependencies": {
"@gyron/dom-server": "^0.0.37"
}
}