|
26 | 26 | "node": ">=10" |
27 | 27 | }, |
28 | 28 | "scripts": { |
29 | | - "prepare": "dts build", |
30 | | - "link:lib": "yarn build && yarn unlink; yarn link", |
31 | | - "install:example": "yarn link:lib && cd example && yarn && yarn link react-sketch-canvas", |
32 | | - "lint": "dts lint src", |
33 | | - "watch:lib": "dts watch", |
34 | | - "watch:example": "yarn build && cd example && yarn start", |
35 | | - "watch": "concurrently \"yarn:watch:example\" \"yarn:watch:lib\"", |
36 | | - "start:example": "cross-env BROWSER=none start-server-and-test watch http://localhost:3000", |
37 | | - "start:example:ci": "cross-env BROWSER=none start-server-and-test watch:example http://localhost:3000", |
38 | | - "build": "dts build", |
39 | | - "build:prod": "cross-env NODE_ENV=production dts build", |
40 | | - "build:example": "cd example && cross-env NODE_ENV=production yarn build", |
41 | | - "size": "size-limit", |
42 | 29 | "analyze": "size-limit --why", |
43 | | - "unit-test": "dts test --passWithNoTests", |
44 | | - "unit-test:ci": "nyc --silent dts test --passWithNoTests --ci --coverage", |
45 | | - "cypress": "cypress open", |
46 | | - "e2e": " yarn start:example cypress", |
| 30 | + "build:example": "cd example && cross-env NODE_ENV=production yarn build", |
| 31 | + "build:prod": "rimraf clean && cross-env NODE_ENV=production dts build", |
| 32 | + "build": "dts build", |
| 33 | + "clean": "rimraf dist/", |
47 | 34 | "cypress:ci": "cypress run", |
| 35 | + "cypress": "cypress open", |
48 | 36 | "e2e:ci": "nyc --silent --no-clean yarn start:example:ci cypress:ci", |
49 | | - "test": "yarn e2e:ci", |
50 | | - "release": "yarn test && release-it", |
| 37 | + "e2e": " yarn start:example cypress", |
| 38 | + "install:example": "yarn link:lib && cd example && yarn && yarn link react-sketch-canvas", |
| 39 | + "link:lib": "yarn build && yarn unlink; yarn link", |
| 40 | + "lint": "dts lint src", |
| 41 | + "prepare": "dts build", |
| 42 | + "release:beta": "yarn test && release-it --preRelease=beta", |
51 | 43 | "release:notest": "release-it", |
52 | | - "release:beta": "yarn test && release-it --preRelease=beta" |
| 44 | + "release": "yarn test && release-it", |
| 45 | + "size": "size-limit", |
| 46 | + "start:example:ci": "cross-env BROWSER=none start-server-and-test watch:example http://localhost:3000", |
| 47 | + "start:example": "cross-env BROWSER=none start-server-and-test watch http://localhost:3000", |
| 48 | + "test": "yarn e2e:ci", |
| 49 | + "unit-test:ci": "nyc --silent dts test --passWithNoTests --ci --coverage", |
| 50 | + "unit-test": "dts test --passWithNoTests", |
| 51 | + "watch:example": "yarn build && cd example && yarn start", |
| 52 | + "watch:lib": "dts watch", |
| 53 | + "watch": "concurrently \"yarn:watch:example\" \"yarn:watch:lib\"" |
53 | 54 | }, |
54 | 55 | "husky": { |
55 | 56 | "hooks": { |
|
97 | 98 | "react-dom": "^17.0.2", |
98 | 99 | "react-is": "^17.0.2", |
99 | 100 | "release-it": "^14.11.6", |
| 101 | + "rimraf": "^3.0.2", |
100 | 102 | "size-limit": "^6.0.3", |
101 | 103 | "start-server-and-test": "^1.14.0", |
102 | 104 | "tslib": "^2.3.1", |
|
0 commit comments