-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpackage.json
23 lines (23 loc) · 922 Bytes
/
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
{
"name": "@gyron/shared",
"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",
"build:cjs": "esbuild src/index.ts --bundle --sourcemap --outfile=dist/cjs/index.js --format=cjs --platform=node",
"build:browser": "esbuild src/index.ts --bundle --sourcemap --outfile=dist/browser/index.js --format=esm --platform=browser --define:__DEV__=false --define:__WARN__=true --minify",
"build:dts": "rollup -c ../../rollup.config.js",
"test": "cross-env PACKAGES=shared jest --config=../../jest.config.js"
}
}