Skip to content

Commit

Permalink
build: Set version field on resolve-workspace-deps #552
Browse files Browse the repository at this point in the history
  • Loading branch information
dougfabris authored and Rocket.Chat committed Oct 6, 2021
2 parents e3cc5f7 + e2b5582 commit e0e6c30
Show file tree
Hide file tree
Showing 26 changed files with 179 additions and 173 deletions.
10 changes: 5 additions & 5 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": "workspace:packages/eslint-config-alt",
"@rocket.chat/prettier-config": "workspace:packages/prettier-config",
"@rocket.chat/eslint-config-alt": "^0.29.0",
"@rocket.chat/prettier-config": "^0.29.0",
"@rollup/plugin-commonjs": "^19.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.0.0",
Expand All @@ -62,9 +62,9 @@
},
"dependencies": {
"@emotion/hash": "^0.8.0",
"@rocket.chat/css-supports": "workspace:packages/css-supports",
"@rocket.chat/memo": "workspace:packages/memo",
"@rocket.chat/stylis-logical-props-middleware": "workspace:packages/stylis-logical-props-middleware",
"@rocket.chat/css-supports": "^0.29.0",
"@rocket.chat/memo": "^0.29.0",
"@rocket.chat/stylis-logical-props-middleware": "^0.29.0",
"stylis": "^4.0.10"
}
}
6 changes: 3 additions & 3 deletions packages/css-supports/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
"docs": "typedoc"
},
"devDependencies": {
"@rocket.chat/eslint-config-alt": "workspace:packages/eslint-config-alt",
"@rocket.chat/prettier-config": "workspace:packages/prettier-config",
"@rocket.chat/eslint-config-alt": "^0.29.0",
"@rocket.chat/prettier-config": "^0.29.0",
"@types/jest": "^27.0.2",
"eslint": "^7.32.0",
"jest": "^27.2.1",
Expand All @@ -51,7 +51,7 @@
"typescript": "^4.3.4"
},
"dependencies": {
"@rocket.chat/memo": "workspace:packages/memo",
"@rocket.chat/memo": "^0.29.0",
"tslib": "^2.3.1"
}
}
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": "workspace:packages/eslint-config-alt",
"@rocket.chat/prettier-config": "workspace:packages/prettier-config",
"@rocket.chat/eslint-config-alt": "^0.29.0",
"@rocket.chat/prettier-config": "^0.29.0",
"@rollup/plugin-commonjs": "^19.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.0.0",
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": "workspace:packages/eslint-config-alt",
"@rocket.chat/fuselage-tokens": "workspace:packages/fuselage-tokens",
"@rocket.chat/prettier-config": "workspace:packages/prettier-config",
"@rocket.chat/eslint-config-alt": "^0.29.0",
"@rocket.chat/fuselage-tokens": "^0.29.0",
"@rocket.chat/prettier-config": "^0.29.0",
"@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": "workspace:packages/eslint-config-alt",
"@rocket.chat/prettier-config": "workspace:packages/prettier-config",
"@rocket.chat/eslint-config-alt": "^0.29.0",
"@rocket.chat/prettier-config": "^0.29.0",
"eslint": "^7.32.0",
"lint-staged": "^11.0.0",
"prettier": "^2.3.2"
Expand Down
6 changes: 3 additions & 3 deletions packages/fuselage-tokens/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@
"lint-staged": "lint-staged"
},
"devDependencies": {
"@rocket.chat/eslint-config-alt": "workspace:packages/eslint-config-alt",
"@rocket.chat/prettier-config": "workspace:packages/prettier-config",
"build-design-tokens": "workspace:tools/build-design-tokens",
"@rocket.chat/eslint-config-alt": "^0.29.0",
"@rocket.chat/prettier-config": "^0.29.0",
"build-design-tokens": "^0.29.0",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.24.2",
Expand Down
18 changes: 9 additions & 9 deletions packages/fuselage-ui-kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@
},
"devDependencies": {
"@rocket.chat/apps-engine": "^1.27.1",
"@rocket.chat/eslint-config-alt": "workspace:packages/eslint-config-alt",
"@rocket.chat/fuselage-polyfills": "workspace:packages/fuselage-polyfills",
"@rocket.chat/icons": "workspace:packages/icons",
"@rocket.chat/prettier-config": "workspace:packages/prettier-config",
"@rocket.chat/eslint-config-alt": "^0.29.0",
"@rocket.chat/fuselage-polyfills": "^0.29.0",
"@rocket.chat/icons": "^0.29.0",
"@rocket.chat/prettier-config": "^0.29.0",
"@storybook/addon-essentials": "^6.3.4",
"@storybook/addons": "^6.3.4",
"@storybook/builder-webpack5": "^6.3.4",
Expand All @@ -77,13 +77,13 @@
"rimraf": "^3.0.2",
"typescript": "^4.4.3",
"webpack": "^5.41.1",
"write-version-module": "workspace:tools/write-version-module"
"write-version-module": "^0.29.0"
},
"dependencies": {
"@rocket.chat/fuselage": "workspace:packages/fuselage",
"@rocket.chat/fuselage-hooks": "workspace:packages/fuselage-hooks",
"@rocket.chat/styled": "workspace:packages/styled",
"@rocket.chat/ui-kit": "workspace:packages/ui-kit",
"@rocket.chat/fuselage": "^0.29.0",
"@rocket.chat/fuselage-hooks": "^0.29.0",
"@rocket.chat/styled": "^0.29.0",
"@rocket.chat/ui-kit": "^0.29.0",
"tslib": "^2.3.1"
},
"loki": {
Expand Down
18 changes: 9 additions & 9 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": "workspace:packages/css-in-js",
"@rocket.chat/css-supports": "workspace:packages/css-supports",
"@rocket.chat/fuselage-tokens": "workspace:packages/fuselage-tokens",
"@rocket.chat/memo": "workspace:packages/memo",
"@rocket.chat/css-in-js": "^0.29.0",
"@rocket.chat/css-supports": "^0.29.0",
"@rocket.chat/fuselage-tokens": "^0.29.0",
"@rocket.chat/memo": "^0.29.0",
"invariant": "^2.2.4",
"react-keyed-flatten-children": "^1.3.0"
},
Expand All @@ -79,11 +79,11 @@
"@babel/preset-env": "^7.15.6",
"@babel/preset-react": "^7.14.5",
"@rocket.chat/eslint-config": "^0.4.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",
"@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",
"@storybook/addon-essentials": "^6.3.4",
"@storybook/addon-jest": "^6.3.4",
"@storybook/addon-links": "^6.3.4",
Expand Down
6 changes: 3 additions & 3 deletions packages/icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
"lint-staged": "lint-staged"
},
"devDependencies": {
"@rocket.chat/eslint-config-alt": "workspace:packages/eslint-config-alt",
"@rocket.chat/prettier-config": "workspace:packages/prettier-config",
"build-icons": "workspace:tools/build-icons",
"@rocket.chat/eslint-config-alt": "^0.29.0",
"@rocket.chat/prettier-config": "^0.29.0",
"build-icons": "^0.29.0",
"eslint": "^7.32.0",
"lint-staged": "^11.0.0",
"npm-run-all": "^4.1.5",
Expand Down
8 changes: 4 additions & 4 deletions packages/logo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
"docs": "typedoc"
},
"devDependencies": {
"@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",
"@rocket.chat/eslint-config-alt": "^0.29.0",
"@rocket.chat/fuselage-tokens": "^0.29.0",
"@rocket.chat/prettier-config": "^0.29.0",
"@types/jest": "^27.0.1",
"@types/react": "^17.0.14",
"@types/react-dom": "^17.0.9",
Expand All @@ -62,7 +62,7 @@
"typescript": "^4.4.3"
},
"dependencies": {
"@rocket.chat/fuselage-hooks": "workspace:packages/fuselage-hooks",
"@rocket.chat/fuselage-hooks": "^0.29.0",
"tslib": "^2.3.1"
},
"peerDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/memo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
"docs": "typedoc"
},
"devDependencies": {
"@rocket.chat/eslint-config-alt": "workspace:packages/eslint-config-alt",
"@rocket.chat/prettier-config": "workspace:packages/prettier-config",
"@rocket.chat/eslint-config-alt": "^0.29.0",
"@rocket.chat/prettier-config": "^0.29.0",
"eslint": "^7.32.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.15.5",
"@babel/eslint-parser": "^7.15.7",
"@babel/preset-env": "^7.15.6",
"@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",
"@rocket.chat/eslint-config-alt": "^0.29.0",
"@rocket.chat/peggy-loader": "^0.29.0",
"@rocket.chat/prettier-config": "^0.29.0",
"@types/jest": "^27.0.2",
"@types/node": "^15.14.1",
"@typescript-eslint/parser": "^4.31.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.15.0",
"@babel/preset-env": "^7.15.6",
"@babel/preset-typescript": "^7.15.0",
"@rocket.chat/eslint-config-alt": "workspace:packages/eslint-config-alt",
"@rocket.chat/prettier-config": "workspace:packages/prettier-config",
"@rocket.chat/eslint-config-alt": "^0.29.0",
"@rocket.chat/prettier-config": "^0.29.0",
"@rollup/plugin-commonjs": "^19.0.0",
"@rollup/plugin-node-resolve": "^13.0.0",
"@rollup/plugin-typescript": "^8.2.1",
Expand Down
18 changes: 9 additions & 9 deletions packages/onboarding-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@
"url": "https://github.com/RocketChat/Rocket.Chat.Fuselage/issues"
},
"devDependencies": {
"@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",
"@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",
"@storybook/addon-essentials": "^6.3.4",
"@storybook/addons": "^6.3.4",
"@storybook/react": "^6.3.4",
Expand All @@ -75,11 +75,11 @@
"typescript": "^4.3.4"
},
"dependencies": {
"@rocket.chat/fuselage": "workspace:packages/fuselage",
"@rocket.chat/fuselage-hooks": "workspace:packages/fuselage-hooks",
"@rocket.chat/icons": "workspace:packages/icons",
"@rocket.chat/logo": "workspace:packages/logo",
"@rocket.chat/styled": "workspace:packages/styled",
"@rocket.chat/fuselage": "^0.29.0",
"@rocket.chat/fuselage-hooks": "^0.29.0",
"@rocket.chat/icons": "^0.29.0",
"@rocket.chat/logo": "^0.29.0",
"@rocket.chat/styled": "^0.29.0",
"i18next": "^20.3.2",
"react-hook-form": "^7.10.1",
"react-i18next": "^11.11.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/peggy-loader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
"webpack": "*"
},
"devDependencies": {
"@rocket.chat/eslint-config-alt": "workspace:packages/eslint-config-alt",
"@rocket.chat/prettier-config": "workspace:packages/prettier-config",
"@rocket.chat/eslint-config-alt": "^0.29.0",
"@rocket.chat/prettier-config": "^0.29.0",
"@types/loader-utils": "^2.0.3",
"@types/node": "^15.14.1",
"eslint": "^7.32.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/string-helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
"url": "https://github.com/RocketChat/Rocket.Chat.Fuselage/issues"
},
"devDependencies": {
"@rocket.chat/eslint-config-alt": "workspace:packages/eslint-config-alt",
"@rocket.chat/prettier-config": "workspace:packages/prettier-config",
"@rocket.chat/eslint-config-alt": "^0.29.0",
"@rocket.chat/prettier-config": "^0.29.0",
"@types/jest": "^27.0.2",
"eslint": "^7.32.0",
"jest": "^27.2.1",
Expand Down
6 changes: 3 additions & 3 deletions packages/styled/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
"docs": "typedoc"
},
"devDependencies": {
"@rocket.chat/eslint-config-alt": "workspace:packages/eslint-config-alt",
"@rocket.chat/prettier-config": "workspace:packages/prettier-config",
"@rocket.chat/eslint-config-alt": "^0.29.0",
"@rocket.chat/prettier-config": "^0.29.0",
"@types/jest": "^27.0.2",
"eslint": "^7.32.0",
"jest": "^27.2.1",
Expand All @@ -51,7 +51,7 @@
"typescript": "^4.3.4"
},
"dependencies": {
"@rocket.chat/css-in-js": "workspace:packages/css-in-js",
"@rocket.chat/css-in-js": "^0.29.0",
"tslib": "^2.3.0"
}
}
6 changes: 3 additions & 3 deletions packages/stylis-logical-props-middleware/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
"docs": "typedoc"
},
"devDependencies": {
"@rocket.chat/eslint-config-alt": "workspace:packages/eslint-config-alt",
"@rocket.chat/prettier-config": "workspace:packages/prettier-config",
"@rocket.chat/eslint-config-alt": "^0.29.0",
"@rocket.chat/prettier-config": "^0.29.0",
"@types/jest": "^27.0.2",
"eslint": "^7.32.0",
"jest": "^27.2.1",
Expand All @@ -52,7 +52,7 @@
"typescript": "^4.3.4"
},
"dependencies": {
"@rocket.chat/css-supports": "workspace:packages/css-supports",
"@rocket.chat/css-supports": "^0.29.0",
"tslib": "^2.2.0"
},
"peerDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/ui-kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
"@babel/eslint-parser": "^7.15.7",
"@babel/plugin-transform-runtime": "^7.15.0",
"@babel/preset-env": "^7.15.6",
"@rocket.chat/eslint-config-alt": "workspace:packages/eslint-config-alt",
"@rocket.chat/prettier-config": "workspace:packages/prettier-config",
"@rocket.chat/eslint-config-alt": "^0.29.0",
"@rocket.chat/prettier-config": "^0.29.0",
"@types/jest": "^27.0.2",
"babel-loader": "^8.2.2",
"eslint": "^7.32.0",
Expand Down
5 changes: 3 additions & 2 deletions tools/build-design-tokens/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
},
"dependencies": {
"stylelint": "^13.13.1",
"tools-utils": "workspace:tools/tools-utils"
}
"tools-utils": "^0.29.0"
},
"version": "0.29.0"
}
5 changes: 3 additions & 2 deletions tools/build-icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
"dependencies": {
"svg2ttf": "^6.0.3",
"svgicons2svgfont": "^10.0.5",
"tools-utils": "workspace:tools/tools-utils",
"tools-utils": "^0.29.0",
"ttf2eot": "^3.0.0",
"ttf2woff": "^3.0.0",
"ttf2woff2": "^4.0.4",
"unicode": "^13.0.0",
"xml2js": "^0.4.23"
}
},
"version": "0.29.0"
}
4 changes: 2 additions & 2 deletions tools/scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"lint-fix": "eslint --fix ."
},
"devDependencies": {
"@rocket.chat/eslint-config-alt": "workspace:packages/eslint-config-alt",
"@rocket.chat/prettier-config": "workspace:packages/prettier-config",
"@rocket.chat/eslint-config-alt": "^0.29.0",
"@rocket.chat/prettier-config": "^0.29.0",
"@types/node": "^15.14.1",
"@typescript-eslint/parser": "^4.31.2",
"cross-env": "^7.0.3",
Expand Down
2 changes: 2 additions & 0 deletions tools/scripts/src/resolve-workspace-deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ type PackageList = {
};

type PackageManifest = {
version?: string;
dependencies?: PackageList;
devDependencies?: PackageList;
peerDependencies?: PackageList;
Expand Down Expand Up @@ -41,6 +42,7 @@ const patchPackageManifest = async (
await readFile(packageManifestsPath, { encoding: 'utf-8' })
) as PackageManifest;

packageManifest.version = version;
patchPackageList(packageManifest.dependencies, version);
patchPackageList(packageManifest.devDependencies, version);
patchPackageList(packageManifest.peerDependencies, version);
Expand Down
3 changes: 2 additions & 1 deletion tools/tools-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
"fast-glob": "^3.2.7",
"json5": "^2.2.0",
"rimraf": "^3.0.2"
}
},
"version": "0.29.0"
}
Loading

0 comments on commit e0e6c30

Please sign in to comment.