Skip to content

Commit

Permalink
build: Ensure correct package versions before publishing (#530)
Browse files Browse the repository at this point in the history
  • Loading branch information
tassoevan authored Sep 8, 2021
1 parent 70a5b4c commit 877e217
Show file tree
Hide file tree
Showing 27 changed files with 4,093 additions and 2,988 deletions.
356 changes: 321 additions & 35 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

Large diffs are not rendered by default.

367 changes: 367 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-version.cjs

Large diffs are not rendered by default.

9 changes: 4 additions & 5 deletions .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

Large diffs are not rendered by default.

55 changes: 0 additions & 55 deletions .yarn/releases/yarn-2.4.2.cjs

This file was deleted.

631 changes: 631 additions & 0 deletions .yarn/releases/yarn-3.0.2.cjs

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
nodeLinker: node-modules
enableInlineHunks: true

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: "@yarnpkg/plugin-workspace-tools"
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"
- path: .yarn/plugins/@yarnpkg/plugin-version.cjs
spec: "@yarnpkg/plugin-version"

yarnPath: .yarn/releases/yarn-2.4.2.cjs
yarnPath: .yarn/releases/yarn-3.0.2.cjs
37 changes: 10 additions & 27 deletions _templates/create-package/library/files/package.json.t
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
---
to: packages/<%=package%>/package.json
sh: |
cd packages/<%=package%>
yarn add -D npm-run-all rimraf
yarn add -D prettier @rocket.chat/prettier-config
yarn add -D eslint @rocket.chat/eslint-config-alt
yarn add -D lint-staged
yarn add -D jest ts-jest @types/jest
yarn add -D typescript typedoc
yarn add tslib
---
{
"name": "@rocket.chat/<%=package%>",
Expand All @@ -25,44 +34,18 @@ to: packages/<%=package%>/package.json
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"typesVersions": {
"<4.1": {
"*": [
"dist/ts3.4/*"
]
}
},
"files": [
"/dist"
],
"scripts": {
"build": "run-s .:build:clean .:build:esm .:build:cjs .:build:ts3.4",
"build": "run-s .:build:clean .:build:esm .:build:cjs",
".:build:clean": "rimraf dist",
".:build:esm": "tsc -p tsconfig-esm.json",
".:build:cjs": "tsc -p tsconfig-cjs.json",
".:build:ts3.4": "downlevel-dts dist/esm/ dist/ts3.4/ --to=3.4",
"lint": "eslint src",
"lint-fix": "eslint --fix src",
"lint-staged": "lint-staged",
"test": "jest --runInBand",
"docs": "typedoc"
},
"devDependencies": {
"@rocket.chat/eslint-config-alt": "workspace:packages/eslint-config-alt",
"@rocket.chat/prettier-config": "workspace:packages/prettier-config",
"@types/jest": "^27.0.1",
"downlevel-dts": "^0.7.0",
"eslint": "^7.32.0",
"jest": "^27.1.0",
"lint-staged": "^11.1.2",
"npm-run-all": "^4.1.5",
"prettier": "^2.3.2",
"rimraf": "^3.0.2",
"ts-jest": "^27.0.5",
"typedoc": "^0.21.9",
"typescript": "^4.3.4"
},
"dependencies": {
"tslib": "^2.2.0"
}
}
6 changes: 3 additions & 3 deletions packages/css-in-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
"docs": "typedoc"
},
"devDependencies": {
"@rocket.chat/eslint-config-alt": "^0.29.0",
"@rocket.chat/prettier-config": "^0.29.0",
"@rocket.chat/eslint-config-alt": "workspace:packages/eslint-config-alt",
"@rocket.chat/prettier-config": "workspace:packages/prettier-config",
"@rollup/plugin-commonjs": "^19.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.0.0",
Expand All @@ -63,7 +63,7 @@
"dependencies": {
"@emotion/hash": "^0.8.0",
"@rocket.chat/css-supports": "workspace:packages/css-supports",
"@rocket.chat/memo": "^0.29.0",
"@rocket.chat/memo": "workspace:packages/memo",
"@rocket.chat/stylis-logical-props-middleware": "workspace:packages/stylis-logical-props-middleware",
"stylis": "^4.0.10"
}
Expand Down
13 changes: 2 additions & 11 deletions packages/css-supports/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rocket.chat/css-supports",
"version": "0.28.0",
"version": "0.29.0",
"description": "Memoized and SSR-compatible facade of CSS.supports API",
"author": {
"name": "Rocket.Chat",
Expand All @@ -22,22 +22,14 @@
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"typesVersions": {
"<4.1": {
"*": [
"dist/ts3.4/*"
]
}
},
"files": [
"/dist"
],
"scripts": {
"build": "run-s .:build:clean .:build:esm .:build:cjs .:build:ts3.4",
"build": "run-s .:build:clean .:build:esm .:build:cjs",
".:build:clean": "rimraf dist",
".:build:esm": "tsc -p tsconfig-esm.json",
".:build:cjs": "tsc -p tsconfig-cjs.json",
".:build:ts3.4": "downlevel-dts dist/esm/ dist/ts3.4/ --to=3.4",
"lint": "eslint src",
"lint-fix": "eslint --fix src",
"lint-staged": "lint-staged",
Expand All @@ -48,7 +40,6 @@
"@rocket.chat/eslint-config-alt": "workspace:packages/eslint-config-alt",
"@rocket.chat/prettier-config": "workspace:packages/prettier-config",
"@types/jest": "^27.0.1",
"downlevel-dts": "^0.7.0",
"eslint": "^7.32.0",
"jest": "^27.1.0",
"lint-staged": "^11.1.2",
Expand Down
4 changes: 2 additions & 2 deletions packages/emitter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
"docs": "typedoc"
},
"devDependencies": {
"@rocket.chat/eslint-config-alt": "^0.29.0",
"@rocket.chat/prettier-config": "^0.29.0",
"@rocket.chat/eslint-config-alt": "workspace:packages/eslint-config-alt",
"@rocket.chat/prettier-config": "workspace:packages/prettier-config",
"@rollup/plugin-commonjs": "^19.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.0.0",
Expand Down
5 changes: 2 additions & 3 deletions packages/eslint-config-alt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,11 @@
},
"peerDependencies": {
"@babel/eslint-parser": "^7.13.14",
"eslint": "^7.24.0",
"prettier": "^2.2.1"
"eslint": "^7.29.0",
"prettier": "^2.3.2"
},
"devDependencies": {
"@babel/eslint-parser": "^7.14.7",
"@rocket.chat/eslint-config": "^0.4.0",
"eslint": "^7.29.0",
"lint-staged": "^11.0.0",
"prettier": "^2.3.2"
Expand Down
6 changes: 3 additions & 3 deletions packages/fuselage-hooks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
"prettier-format": "prettier 'src/**/*.ts' --write"
},
"devDependencies": {
"@rocket.chat/eslint-config-alt": "^0.29.0",
"@rocket.chat/fuselage-tokens": "^0.29.0",
"@rocket.chat/prettier-config": "^0.29.0",
"@rocket.chat/eslint-config-alt": "workspace:packages/eslint-config-alt",
"@rocket.chat/fuselage-tokens": "workspace:packages/fuselage-tokens",
"@rocket.chat/prettier-config": "workspace:packages/prettier-config",
"@rollup/plugin-commonjs": "^19.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/fuselage-polyfills/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
"new-event-polyfill": "^1.0.1"
},
"devDependencies": {
"@rocket.chat/eslint-config-alt": "^0.29.0",
"@rocket.chat/prettier-config": "^0.29.0",
"@rocket.chat/eslint-config-alt": "workspace:packages/eslint-config-alt",
"@rocket.chat/prettier-config": "workspace:packages/prettier-config",
"eslint": "^7.29.0",
"lint-staged": "^11.0.0",
"prettier": "^2.3.2"
Expand Down
4 changes: 2 additions & 2 deletions packages/fuselage-tokens/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
"lint-staged": "lint-staged"
},
"devDependencies": {
"@rocket.chat/eslint-config-alt": "^0.29.0",
"@rocket.chat/prettier-config": "^0.29.0",
"@rocket.chat/eslint-config-alt": "workspace:packages/eslint-config-alt",
"@rocket.chat/prettier-config": "workspace:packages/prettier-config",
"eslint": "^7.29.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.23.4",
Expand Down
14 changes: 7 additions & 7 deletions packages/fuselage-ui-kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@
"@babel/preset-env": "^7.14.7",
"@babel/preset-react": "^7.14.5",
"@rocket.chat/apps-engine": "^1.27.1",
"@rocket.chat/eslint-config-alt": "^0.29.0",
"@rocket.chat/fuselage": "^0.29.0",
"@rocket.chat/fuselage-hooks": "^0.29.0",
"@rocket.chat/fuselage-polyfills": "^0.29.0",
"@rocket.chat/icons": "^0.29.0",
"@rocket.chat/prettier-config": "^0.29.0",
"@rocket.chat/ui-kit": "^0.29.0",
"@rocket.chat/eslint-config-alt": "workspace:packages/eslint-config-alt",
"@rocket.chat/fuselage": "workspace:packages/fuselage",
"@rocket.chat/fuselage-hooks": "workspace:packages/fuselage-hooks",
"@rocket.chat/fuselage-polyfills": "workspace:packages/fuselage-polyfills",
"@rocket.chat/icons": "workspace:packages/icons",
"@rocket.chat/prettier-config": "workspace:packages/prettier-config",
"@rocket.chat/ui-kit": "workspace:packages/ui-kit",
"@storybook/addon-essentials": "^6.3.4",
"@storybook/addons": "^6.3.4",
"@storybook/builder-webpack5": "^6.3.4",
Expand Down
16 changes: 8 additions & 8 deletions packages/fuselage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@
"react-virtuoso": "1.2.4"
},
"dependencies": {
"@rocket.chat/css-in-js": "^0.29.0",
"@rocket.chat/css-in-js": "workspace:packages/css-in-js",
"@rocket.chat/css-supports": "workspace:packages/css-supports",
"@rocket.chat/fuselage-tokens": "^0.29.0",
"@rocket.chat/memo": "^0.29.0",
"@rocket.chat/fuselage-tokens": "workspace:packages/fuselage-tokens",
"@rocket.chat/memo": "workspace:packages/memo",
"invariant": "^2.2.4",
"react-keyed-flatten-children": "^1.3.0"
},
Expand All @@ -79,11 +79,11 @@
"@babel/preset-env": "^7.14.7",
"@babel/preset-react": "^7.14.5",
"@rocket.chat/eslint-config": "^0.4.0",
"@rocket.chat/eslint-config-alt": "^0.29.0",
"@rocket.chat/fuselage-hooks": "^0.29.0",
"@rocket.chat/fuselage-polyfills": "^0.29.0",
"@rocket.chat/icons": "^0.29.0",
"@rocket.chat/prettier-config": "^0.29.0",
"@rocket.chat/eslint-config-alt": "workspace:packages/eslint-config-alt",
"@rocket.chat/fuselage-hooks": "workspace:packages/fuselage-hooks",
"@rocket.chat/fuselage-polyfills": "workspace:packages/fuselage-polyfills",
"@rocket.chat/icons": "workspace:packages/icons",
"@rocket.chat/prettier-config": "workspace:packages/prettier-config",
"@storybook/addon-essentials": "^6.3.4",
"@storybook/addon-jest": "^6.3.4",
"@storybook/addon-links": "^6.3.4",
Expand Down
4 changes: 2 additions & 2 deletions packages/icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
"lint-staged": "lint-staged"
},
"devDependencies": {
"@rocket.chat/eslint-config-alt": "^0.29.0",
"@rocket.chat/prettier-config": "^0.29.0",
"@rocket.chat/eslint-config-alt": "workspace:packages/eslint-config-alt",
"@rocket.chat/prettier-config": "workspace:packages/prettier-config",
"eslint": "^7.29.0",
"glob": "^7.1.7",
"lint-staged": "^11.0.0",
Expand Down
15 changes: 3 additions & 12 deletions packages/memo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,31 +25,22 @@
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"typesVersions": {
"<4.1": {
"*": [
"dist/ts3.4/*"
]
}
},
"files": [
"/dist"
],
"scripts": {
"build": "run-s .:build:clean .:build:esm .:build:cjs .:build:ts3.4",
"build": "run-s .:build:clean .:build:esm .:build:cjs",
".:build:clean": "rimraf dist",
".:build:esm": "tsc -p tsconfig-esm.json",
".:build:cjs": "tsc -p tsconfig-cjs.json",
".:build:ts3.4": "downlevel-dts dist/esm/ dist/ts3.4/ --to=3.4",
"lint": "eslint src",
"lint-fix": "eslint --fix src",
"lint-staged": "lint-staged",
"docs": "typedoc"
},
"devDependencies": {
"@rocket.chat/eslint-config-alt": "^0.29.0",
"@rocket.chat/prettier-config": "^0.29.0",
"downlevel-dts": "^0.7.0",
"@rocket.chat/eslint-config-alt": "workspace:packages/eslint-config-alt",
"@rocket.chat/prettier-config": "workspace:packages/prettier-config",
"eslint": "^7.29.0",
"lint-staged": "^11.0.0",
"npm-run-all": "^4.1.5",
Expand Down
6 changes: 3 additions & 3 deletions packages/message-parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@
"@babel/core": "^7.14.6",
"@babel/eslint-parser": "^7.14.7",
"@babel/preset-env": "^7.14.7",
"@rocket.chat/eslint-config-alt": "^0.29.0",
"@rocket.chat/peggy-loader": "^0.29.0",
"@rocket.chat/prettier-config": "^0.29.0",
"@rocket.chat/eslint-config-alt": "workspace:packages/eslint-config-alt",
"@rocket.chat/peggy-loader": "workspace:packages/peggy-loader",
"@rocket.chat/prettier-config": "workspace:packages/prettier-config",
"@types/jest": "^26.0.24",
"@types/node": "^15.14.1",
"@typescript-eslint/parser": "^4.28.2",
Expand Down
4 changes: 2 additions & 2 deletions packages/mp3-encoder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
"@babel/plugin-transform-runtime": "^7.14.5",
"@babel/preset-env": "^7.14.7",
"@babel/preset-typescript": "^7.14.5",
"@rocket.chat/eslint-config-alt": "^0.29.0",
"@rocket.chat/prettier-config": "^0.29.0",
"@rocket.chat/eslint-config-alt": "workspace:packages/eslint-config-alt",
"@rocket.chat/prettier-config": "workspace:packages/prettier-config",
"@rollup/plugin-commonjs": "^19.0.0",
"@rollup/plugin-node-resolve": "^13.0.0",
"@rollup/plugin-typescript": "^8.2.1",
Expand Down
24 changes: 11 additions & 13 deletions packages/onboarding-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,15 @@
},
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/ts3.4/index.d.ts",
"types": "dist/esm/index.d.ts",
"files": [
"/dist"
],
"scripts": {
"build": "run-s .:build:clean .:build:esm .:build:cjs .:build:ts3.4",
"build": "run-s .:build:clean .:build:esm .:build:cjs",
".:build:clean": "rimraf dist",
".:build:esm": "tsc -p tsconfig-esm.json",
".:build:cjs": "tsc -p tsconfig-cjs.json",
".:build:ts3.4": "downlevel-dts dist/esm/ dist/ts3.4/ --to=3.4",
"lint": "run-s .:lint:eslint .:lint:tsc",
".:lint:eslint": "eslint src",
".:lint:tsc": "tsc -p tsconfig.json --noEmit",
Expand All @@ -49,10 +48,10 @@
"url": "https://github.com/RocketChat/Rocket.Chat.Fuselage/issues"
},
"devDependencies": {
"@rocket.chat/eslint-config-alt": "^0.29.0",
"@rocket.chat/fuselage-polyfills": "^0.29.0",
"@rocket.chat/fuselage-tokens": "^0.29.0",
"@rocket.chat/prettier-config": "^0.29.0",
"@rocket.chat/eslint-config-alt": "workspace:packages/eslint-config-alt",
"@rocket.chat/fuselage-polyfills": "workspace:packages/fuselage-polyfills",
"@rocket.chat/fuselage-tokens": "workspace:packages/fuselage-tokens",
"@rocket.chat/prettier-config": "workspace:packages/prettier-config",
"@storybook/addon-essentials": "^6.3.4",
"@storybook/addons": "^6.3.4",
"@storybook/react": "^6.3.4",
Expand All @@ -62,7 +61,6 @@
"@types/react": "^17.0.14",
"@types/react-dom": "^17.0.9",
"countries-list": "^2.6.1",
"downlevel-dts": "^0.7.0",
"eslint": "^7.29.0",
"jest": "^27.0.6",
"lint-staged": "^11.0.0",
Expand All @@ -77,17 +75,17 @@
"typescript": "^4.3.4"
},
"dependencies": {
"@rocket.chat/fuselage": "^0.29.0",
"@rocket.chat/fuselage-hooks": "^0.29.0",
"@rocket.chat/icons": "^0.29.0",
"@rocket.chat/styled": "^0.29.0",
"@rocket.chat/fuselage": "workspace:packages/fuselage",
"@rocket.chat/fuselage-hooks": "workspace:packages/fuselage-hooks",
"@rocket.chat/icons": "workspace:packages/icons",
"@rocket.chat/styled": "workspace:packages/styled",
"i18next": "^20.3.2",
"react-hook-form": "^7.10.1",
"react-i18next": "^11.11.0",
"tslib": "^2.3.0"
},
"peerDependencies": {
"@rocket.chat/fuselage-polyfills": "^0.27.0",
"@rocket.chat/fuselage-polyfills": "*",
"react": "17.0.2",
"react-dom": "17.0.2"
},
Expand Down
Loading

0 comments on commit 877e217

Please sign in to comment.