|
7 | 7 | "types": "dist/types/src/index.d.ts",
|
8 | 8 | "sideEffects": false,
|
9 | 9 | "scripts": {
|
10 |
| - "bootstrap": "yarn && cd demo && yarn", |
11 |
| - "build": "yarn rollup --configPlugin @rollup/plugin-typescript", |
12 |
| - "build:all": "yarn clean && yarn build:worker && yarn build:core", |
| 10 | + "bootstrap": "yarn && cd demo && yarn #TODO: change after migration", |
| 11 | + "build": "NODE_ENV=production yarn build:all", |
13 | 12 | "build:dev": "NODE_ENV=development yarn build:all",
|
14 |
| - "build:prod": "NODE_ENV=production yarn build:all", |
15 |
| - "build:core": "yarn build --config config/rollup.config.core.ts", |
16 |
| - "build:worker": "yarn build --config config/rollup.config.worker.ts", |
17 |
| - "clean": "yarn rimraf dist", |
18 |
| - "dev": "yarn build:dev --watch", |
19 |
| - "lint": "yarn eslint . --ext .js,.jsx,.ts,.tsx", |
20 |
| - "prepack": "yarn build:prod", |
| 13 | + "build:all": "run-s clean build:worker build:core", |
| 14 | + "build:core": "yarn build:rollup --config config/rollup.config.core.ts", |
| 15 | + "build:worker": "yarn build:rollup --config config/rollup.config.worker.ts", |
| 16 | + "build:rollup": "rollup --configPlugin @rollup/plugin-typescript", |
| 17 | + "build:watch": "NODE_ENV=production yarn build:all:watch", |
| 18 | + "build:dev:watch": "NODE_ENV=development yarn build:all:watch", |
| 19 | + "build:all:watch": "yarn clean && run-p \"build:worker --watch\" \"build:core --watch\"", |
| 20 | + "build:npm": "yarn pack #TODO: use JS sdk prepack script after migration", |
| 21 | + "circularDepCheck": "#TODO comment in after migration: madge --circular src/index.ts", |
| 22 | + "clean": "rimraf dist sentry-replay-*.tgz", |
| 23 | + "fix": "run-s fix:eslint fix:prettier", |
| 24 | + "fix:eslint": "eslint . --format stylish --fix", |
| 25 | + "fix:prettier": "prettier --write \"{src,test,scripts,worker}/**/*.ts\"", |
| 26 | + "lint": "run-s lint:prettier lint:eslint", |
| 27 | + "lint:eslint": "eslint . --ext .js,.jsx,.ts,.tsx #TODO: we might want to use eslintcache after migration", |
| 28 | + "lint:prettier": "prettier --check \"{src,test,scripts,worker}/**/*.ts\"", |
| 29 | + "test": "jest", |
| 30 | + "test:watch": "jest --watch", |
21 | 31 | "start:demo": "yarn build:dev && cd demo && yarn start",
|
22 |
| - "test": "yarn jest" |
| 32 | + "prepack": "yarn build #TODO: remove after migration", |
| 33 | + "build:prod": "yarn build #TODO remove, we don't need this anymore after migration", |
| 34 | + "dev": "yarn build:dev:watch #TODO remove, we don't need this anymore after migration" |
23 | 35 | },
|
24 | 36 | "files": [
|
25 | 37 | "dist"
|
|
56 | 68 | "jest": "27.5.1",
|
57 | 69 | "jest-environment-jsdom": "27.5.1",
|
58 | 70 | "jsdom-worker": "^0.2.1",
|
| 71 | + "npm-run-all": "^4.1.5", |
59 | 72 | "pako": "^2.0.4",
|
60 | 73 | "prettier": "^2.5.1",
|
61 | 74 | "rimraf": "^3.0.2",
|
|
0 commit comments