-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
42 lines (42 loc) · 1.32 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
{
"name": "easy-react-lib",
"version": "1.0.0",
"repository": "[email protected]:jeff-pal/easy-react-lib.git",
"author": "jeffpal <[email protected]>",
"license": "MIT",
"bin": {
"hello": "./bin/cli.js"
},
"devDependencies": {
"@babel/core": "^7.15.5",
"@storybook/addon-actions": "^6.3.9",
"@storybook/addon-essentials": "^6.3.9",
"@storybook/addon-links": "^6.3.9",
"@storybook/react": "^6.3.9",
"@types/react": "^17.0.27",
"babel-loader": "^8.2.2",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"typescript": "^4.4.3"
},
"peerDependencies": {
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"dependencies": {},
"scripts": {
"storybook": "start-storybook -p 6006",
"build-storybook": "build-storybook",
"build": "npm run build:esm && npm run build:cjs",
"build:esm": "npx tsc",
"build:cjs": "npx tsc --module commonjs --outDir lib/cjs",
"copy-files": "npm run copy-files:css",
"copy-files:css": "npx copyfiles -u 1 src/**/*.css lib/esm && npx copyfiles -u 1 src/**/*.css lib/cjs",
"postbuild": "npm run copy-files && npm run remove-files",
"postinstall": "npm run build",
"remove-files": "npx rimraf src .gitignore tsconfig"
},
"main": "lib/cjs/index.js",
"module": "lib/esm/index.js",
"types": "lib/esm/index.d.ts"
}