|
16 | 16 | },
|
17 | 17 | "author": "shilman",
|
18 | 18 | "license": "MIT",
|
19 |
| - "main": "dist/cjs/index.js", |
20 |
| - "module": "dist/esm/index.js", |
21 |
| - "types": "dist/ts/index.d.ts", |
| 19 | + "main": "dist/index.js", |
| 20 | + "module": "dist/index.mjs", |
| 21 | + "types": "dist/index.d.ts", |
22 | 22 | "bin": {
|
23 |
| - "test-storybook": "./bin/test-storybook.js" |
| 23 | + "test-storybook": "./dist/test-storybook.js" |
24 | 24 | },
|
25 | 25 | "files": [
|
26 |
| - "bin", |
27 |
| - "dist/**/*", |
| 26 | + "dist", |
28 | 27 | "README.md",
|
29 | 28 | "playwright",
|
30 |
| - "*.js", |
31 | 29 | "*.d.ts"
|
32 | 30 | ],
|
33 | 31 | "scripts": {
|
34 |
| - "clean": "rimraf ./dist", |
35 |
| - "buildBabel": "concurrently \"yarn buildBabel:cjs\" \"yarn buildBabel:esm\"", |
36 |
| - "buildBabel:cjs": "babel ./src -d ./dist/cjs --extensions \".js,.jsx,.ts,.tsx\"", |
37 |
| - "buildBabel:esm": "babel ./src -d ./dist/esm --env-name esm --extensions \".js,.jsx,.ts,.tsx\"", |
38 |
| - "buildTsc": "tsc --declaration --emitDeclarationOnly --outDir ./dist/ts", |
39 |
| - "prebuild": "yarn clean", |
40 |
| - "build": "concurrently \"yarn buildBabel\" \"yarn buildTsc\"", |
41 |
| - "build:watch": "concurrently \"yarn buildBabel:cjs -- --watch\" \"yarn buildTsc -- --watch\"", |
| 32 | + "build": "tsup", |
| 33 | + "build:watch": "tsup --watch", |
42 | 34 | "test": "jest",
|
43 | 35 | "storybook": "storybook dev -p 6006",
|
44 | 36 | "start": "concurrently \"yarn build:watch\" \"yarn storybook -- --no-manager-cache --quiet\"",
|
45 | 37 | "build-storybook": "storybook build",
|
46 | 38 | "release": "yarn build && auto shipit",
|
47 |
| - "test-storybook": "node bin/test-storybook.js", |
| 39 | + "test-storybook": "node dist/test-storybook", |
48 | 40 | "test-storybook:failures": "SKIP_SNAPSHOTS=true TEST_FAILURES=1 yarn test-storybook --json --outputFile test-results.json",
|
49 | 41 | "test-storybook:no-cache": "yarn test-storybook --no-cache",
|
50 | 42 | "test-storybook:json": "yarn test-storybook --stories-json",
|
51 |
| - "test-storybook:ci": "concurrently -k -s first -n \"SB,TEST\" -c \"magenta,blue\" \"yarn build-storybook --quiet && npx http-server storybook-static --port 6006 --silent\" \"wait-on tcp:6006 && yarn test-storybook\"", |
52 |
| - "test-storybook:ci-failures": "concurrently -k -s first -n \"SB,TEST\" -c \"magenta,blue\" \"TEST_FAILURES=1 yarn build-storybook --quiet && npx http-server storybook-static --port 6006 --silent\" \"wait-on tcp:6006 && yarn test-storybook:failures\"", |
53 |
| - "test-storybook:ci-coverage": "concurrently -k -s first -n \"SB,TEST\" -c \"magenta,blue\" \"yarn build-storybook --quiet && npx http-server storybook-static --port 6006 --silent\" \"wait-on tcp:6006 && yarn test-storybook --coverage\"", |
54 |
| - "test-storybook:ci-json": "concurrently -k -s first -n \"SB,TEST\" -c \"magenta,blue\" \"yarn build-storybook --quiet && npx http-server storybook-static --port 6006 --silent\" \"wait-on tcp:6006 && SKIP_SNAPSHOTS=true yarn test-storybook:json\"", |
| 43 | + "test-storybook:ci": "concurrently -k -s first -n \"SB,TEST\" -c \"magenta,blue\" \"yarn build-storybook --quiet && npx serve storybook-static -l 6006\" \"wait-on tcp:6006 && yarn test-storybook\"", |
| 44 | + "test-storybook:ci-failures": "concurrently -k -s first -n \"SB,TEST\" -c \"magenta,blue\" \"TEST_FAILURES=1 yarn build-storybook --quiet && npx serve storybook-static -l 6006\" \"wait-on tcp:6006 && yarn test-storybook:failures\"", |
| 45 | + "test-storybook:ci-coverage": "concurrently -k -s first -n \"SB,TEST\" -c \"magenta,blue\" \"yarn build-storybook --quiet && npx serve storybook-static -l 6006\" \"wait-on tcp:6006 && yarn test-storybook --coverage\"", |
| 46 | + "test-storybook:ci-json": "concurrently -k -s first -n \"SB,TEST\" -c \"magenta,blue\" \"yarn build-storybook --quiet && npx serve storybook-static -l 6006\" \"wait-on tcp:6006 && SKIP_SNAPSHOTS=true yarn test-storybook:json\"", |
55 | 47 | "generate-dynamic-stories": "node scripts/generate-dynamic-stories.js",
|
56 | 48 | "prepare": "husky install"
|
57 | 49 | },
|
58 | 50 | "devDependencies": {
|
59 | 51 | "@auto-it/released": "^10.37.1",
|
60 |
| - "@babel/cli": "^7.20.7", |
| 52 | + "@babel/cli": "^7.12.1", |
| 53 | + "@babel/preset-env": "^7.19.4", |
| 54 | + "@babel/preset-react": "^7.18.6", |
| 55 | + "@babel/preset-typescript": "^7.18.6", |
61 | 56 | "@jest/types": "^28.1.3",
|
62 | 57 | "@storybook/addon-coverage": "^0.0.7",
|
63 | 58 | "@storybook/addon-essentials": "^7.0.0",
|
|
82 | 77 | "react": "^17.0.1",
|
83 | 78 | "react-dom": "^17.0.1",
|
84 | 79 | "rimraf": "^3.0.2",
|
| 80 | + "semver": "^7.3.7", |
85 | 81 | "storybook": "^7.0.0",
|
86 | 82 | "ts-jest": "^28.0.8",
|
| 83 | + "tsup": "^6.5.0", |
87 | 84 | "typescript": "~4.9.4",
|
88 | 85 | "wait-on": "^6.0.0"
|
89 | 86 | },
|
|
102 | 99 | },
|
103 | 100 | "dependencies": {
|
104 | 101 | "@babel/core": "^7.20.7",
|
105 |
| - "@babel/generator": "^7.20.7", |
106 |
| - "@babel/preset-env": "^7.20.2", |
107 |
| - "@babel/preset-react": "^7.18.6", |
108 |
| - "@babel/preset-typescript": "^7.18.6", |
109 |
| - "@babel/template": "^7.20.7", |
110 |
| - "@babel/types": "^7.20.7", |
| 102 | + "@babel/generator": "^7.18.13", |
| 103 | + "@babel/types": "^7.14.8", |
| 104 | + "@babel/template": "^7.14.5", |
111 | 105 | "@storybook/core-common": "^7.0.0-beta.0 || ^7.0.0-rc.0 || ^7.0.0",
|
112 | 106 | "@storybook/csf": "^0.1.0",
|
113 | 107 | "@storybook/csf-tools": "^7.0.0-beta.0 || ^7.0.0-rc.0 || ^7.0.0",
|
114 | 108 | "@storybook/preview-api": "^7.0.0-beta.0 || ^7.0.0-rc.0 || ^7.0.0",
|
| 109 | + "@swc/core": "^1.3.18", |
| 110 | + "@swc/jest": "^0.2.23", |
115 | 111 | "can-bind-to-host": "^1.1.1",
|
116 | 112 | "commander": "^9.0.0",
|
117 | 113 | "expect-playwright": "^0.8.0",
|
|
127 | 123 | "node-fetch": "^2",
|
128 | 124 | "playwright": "^1.14.0",
|
129 | 125 | "read-pkg-up": "^7.0.1",
|
130 |
| - "regenerator-runtime": "^0.13.9", |
131 |
| - "semver": "^7.3.7", |
132 | 126 | "tempy": "^1.0.1",
|
133 | 127 | "ts-dedent": "^2.0.0"
|
134 | 128 | },
|
|
0 commit comments