Skip to content

Commit

Permalink
feat: add changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
ZakaryCode committed Jun 29, 2022
1 parent 4a54254 commit 1b35452
Show file tree
Hide file tree
Showing 12 changed files with 551 additions and 22 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"@babel/preset-typescript": "^7.14.5",
"@babel/traverse": "^7.14.5",
"@babel/types": "^7.14.5",
"@changesets/cli": "^2.23.0",
"@commitlint/cli": "^16.2.1",
"@commitlint/config-conventional": "^16.2.1",
"@jest/globals": "^26.6.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test:dev": "cross-env NODE_ENV=test jest --watch",
"test:coverage": "cross-env NODE_ENV=test jest --coverage",
"updateSnapshot": "cross-env NODE_ENV=test jest --updateSnapshot",
"build": "npm run clean && npm run prod",
"build": "pnpm run clean && pnpm run prod",
"dev": "tsc -w",
"prod": "tsc",
"clean": "rimraf dist"
Expand Down
4 changes: 2 additions & 2 deletions packages/taro-components-rn/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"main": "./dist/index.js",
"scripts": {
"assets": "cpy 'src/**/*.png' '!src/__tests__/*' dist",
"build": "rimraf ./dist && tsc && yarn assets",
"dev": "yarn assets && tsc --watch",
"build": "rimraf ./dist && tsc && pnpm run assets",
"dev": "pnpm run assets && tsc --watch",
"lint": "eslint .",
"test": "jest --silent",
"test:dev": "jest --watch",
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"collection:main": "dist/collection/index.js",
"scripts": {
"build-h5": "babel -d dist-h5 h5",
"build": "npm run build-h5 & stencil build --config stencil.config.ts",
"build": "pnpm run build-h5 & stencil build --config stencil.config.ts",
"dev": "stencil build --config stencil.config.ts --watch",
"test": "karmatic --files '__tests__/setup.js,__tests__/**.spec.js' --coverage false",
"test:ci": "karmatic --files '__tests__/setup.js,__tests__/**.spec.js' --coverage false",
Expand Down
4 changes: 2 additions & 2 deletions packages/taro-h5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"sideEffects": false,
"scripts": {
"assets": "cpy 'src/**/*.css' dist",
"build": "rimraf ./dist && tsc && npm run assets && rollup -c",
"predev": "npm run assets",
"build": "rimraf ./dist && tsc && pnpm run assets && rollup -c",
"predev": "pnpm run assets",
"dev": "tsc -w",
"test": "jest",
"test:ci": "jest -i --coverage false",
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-helper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"dev": "tsc -w",
"prod": "tsc",
"clean": "rimraf dist",
"prepack": "npm run build",
"prepack": "pnpm run build",
"test": "jest",
"test:dev": "jest --watch"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/taro-mini-runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"description": "Mini app runner for taro",
"main": "index.js",
"scripts": {
"build": "npm run clean && npm run prod",
"dev": "npm run mv:comp && tsc -w",
"prod": "tsc && npm run mv:comp",
"build": "pnpm run clean && pnpm run prod",
"dev": "pnpm run mv:comp && tsc -w",
"prod": "tsc && pnpm run mv:comp",
"mv:comp": "node ./mv-comp.js",
"clean": "rimraf dist",
"test": "cross-env NODE_ENV=jest jest",
Expand Down
4 changes: 2 additions & 2 deletions packages/taro-rn/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
],
"scripts": {
"assets": "cpy 'src/**/*.png' '!src/__tests__/*' dist",
"build": "rimraf ./dist && tsc && yarn assets && yarn script",
"dev": "yarn assets && tsc --watch",
"build": "rimraf ./dist && tsc && pnpm run assets && pnpm run script",
"dev": "pnpm run assets && tsc --watch",
"lint": "eslint .",
"test": "jest --silent",
"test:dev": "jest --watch",
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"dev": "tsc -w",
"prod": "tsc",
"clean": "rimraf dist",
"prepack": "npm run build",
"prepack": "pnpm run build",
"test": "jest",
"test:dev": "jest --watch"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-webpack5-prebundle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Taro app webpack5 prebundle",
"main": "dist/index.js",
"scripts": {
"build": "npm run clean && npm run prod",
"build": "pnpm run clean && pnpm run prod",
"dev": "tsc -w",
"prod": "tsc",
"clean": "rimraf dist",
Expand Down
8 changes: 4 additions & 4 deletions packages/taro-webpack5-runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"description": "Taro app runner",
"main": "index.js",
"scripts": {
"build": "npm run clean && npm run prod",
"dev": "npm run mv:comp && tsc -w",
"prod": "tsc && npm run mv:comp",
"build": "pnpm run clean && pnpm run prod",
"dev": "pnpm run mv:comp && tsc -w",
"prod": "tsc && pnpm run mv:comp",
"mv:comp": "node ./mv-comp.js",
"clean": "rimraf dist",
"test": "cross-env NODE_ENV=jest jest",
Expand Down Expand Up @@ -76,7 +76,7 @@
"postcss-html-transform": "workspace:*",
"postcss-import": "12.0.1",
"postcss-loader": "6.2.1",
"postcss-plugin-constparse": "3.4.0",
"postcss-plugin-constparse": "workspace:*",
"postcss-pxtransform": "workspace:*",
"postcss-url": "8.0.0",
"regenerator-runtime": "0.11",
Expand Down
536 changes: 532 additions & 4 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

0 comments on commit 1b35452

Please sign in to comment.