|
26 | 26 | ],
|
27 | 27 | "scripts": {
|
28 | 28 | "emitDeclarations": "tsc --skipLibCheck --emitDeclarationOnly",
|
29 |
| - "build": "rollup -c & yarn emitDeclarations", |
30 |
| - "prepublishOnly": "yarn build", |
| 29 | + "build": "rollup -c & pnpm emitDeclarations", |
| 30 | + "prepublishOnly": "pnpm test && pnpm build && del ./package && clean-publish", |
| 31 | + "postpublish": "del ./package", |
31 | 32 | "start:storybook": "start-storybook -p 6006 --ci",
|
32 | 33 | "test:lint": "eslint 'src/**/*.{ts,tsx}' 'stories/**/*.{ts,tsx}' 'sandboxes/**/*.{ts,tsx}' 'test/**/*.{ts,tsx}'",
|
33 | 34 | "test:unit": "jest -c jest.config.json",
|
34 |
| - "test:build": "yarn build", |
| 35 | + "test:build": "pnpm build", |
35 | 36 | "test:size": "size-limit",
|
36 | 37 | "test:typings": "tsd",
|
37 |
| - "test": "yarn test:lint && yarn test:unit && yarn test:build", |
| 38 | + "test": "pnpm test:lint && pnpm test:unit && pnpm test:build", |
38 | 39 | "format": "prettier --write src",
|
39 | 40 | "commit": "cz",
|
40 | 41 | "release": "standard-version",
|
41 |
| - "cleanPublish": "yarn test && clean-publish", |
42 | 42 | "updateGitHooks": "simple-git-hooks"
|
43 | 43 | },
|
44 |
| - "dependencies": {}, |
45 | 44 | "peerDependencies": {
|
46 | 45 | "chart.js": "^3.5.0",
|
47 | 46 | "react": "^16.8.0 || ^17.0.0"
|
|
66 | 65 | "@types/faker": "^5.5.8",
|
67 | 66 | "@types/jest": "^27.0.2",
|
68 | 67 | "@types/lodash": "^4.14.150",
|
| 68 | + "@types/node": "^17.0.8", |
69 | 69 | "@types/react": "^17.0.28",
|
70 | 70 | "@types/react-dom": "^17.0.10",
|
71 | 71 | "@typescript-eslint/eslint-plugin": "^5.0.0",
|
|
76 | 76 | "clean-publish": "^3.4.1",
|
77 | 77 | "commitizen": "^4.2.4",
|
78 | 78 | "date-fns": "^2.25.0",
|
| 79 | + "del": "^6.0.0", |
79 | 80 | "eslint": "^7.32.0",
|
80 | 81 | "eslint-config-prettier": "^8.3.0",
|
81 | 82 | "eslint-config-standard": "^16.0.3",
|
|
86 | 87 | "eslint-plugin-promise": "^5.1.0",
|
87 | 88 | "eslint-plugin-react": "^7.17.0",
|
88 | 89 | "faker": "^5.5.3",
|
| 90 | + "inquirer": "^8.2.0", |
89 | 91 | "jest": "^27.2.5",
|
90 | 92 | "jest-canvas-mock": "^2.2.0",
|
91 | 93 | "nano-staged": "^0.5.0",
|
|
114 | 116 | },
|
115 | 117 | "files": [
|
116 | 118 | "dist"
|
117 |
| - ] |
| 119 | + ], |
| 120 | + "publishConfig": { |
| 121 | + "directory": "package" |
| 122 | + }, |
| 123 | + "readme": "" |
118 | 124 | }
|
0 commit comments