Skip to content

Commit

Permalink
Merge pull request #17 from storybookjs/version-script
Browse files Browse the repository at this point in the history
Versioning script
  • Loading branch information
JReinhold authored May 17, 2023
2 parents df8ccea + cb612b8 commit 961bd01
Show file tree
Hide file tree
Showing 20 changed files with 907 additions and 911 deletions.
550 changes: 550 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-version.cjs

Large diffs are not rendered by default.

13 changes: 4 additions & 9 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,8 @@ installStatePath: ./.yarn/root-install-state.gz

nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-3.4.1.cjs








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

yarnPath: .yarn/releases/yarn-3.4.1.cjs
2 changes: 2 additions & 0 deletions code/__mocks__/fs-extra.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ function __setMockFiles(newMockFiles) {
const readFile = async (filePath) => mockFiles[filePath];
const readFileSync = (filePath = '') => mockFiles[filePath];
const existsSync = (filePath) => !!mockFiles[filePath];
const readJson = (filePath = '') => JSON.parse(mockFiles[filePath]);
const readJsonSync = (filePath = '') => JSON.parse(mockFiles[filePath]);
const lstatSync = (filePath) => ({
isFile: () => !!mockFiles[filePath],
Expand All @@ -24,6 +25,7 @@ const lstatSync = (filePath) => ({
fs.__setMockFiles = __setMockFiles;
fs.readFile = readFile;
fs.readFileSync = readFileSync;
fs.readJson = readJson;
fs.readJsonSync = readJsonSync;
fs.existsSync = existsSync;
fs.lstatSync = lstatSync;
Expand Down
4 changes: 2 additions & 2 deletions code/frameworks/angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@
"@types/node": "^16.0.0",
"@types/react": "^16.14.34",
"@types/react-dom": "^16.9.14",
"@types/semver": "^7.3.4",
"@types/semver": "^7.5.0",
"@types/webpack-env": "^1.18.0",
"find-up": "^5.0.0",
"read-pkg-up": "^7.0.1",
"semver": "^7.3.7",
"semver": "^7.5.1",
"telejson": "^7.0.3",
"ts-dedent": "^2.0.0",
"tsconfig-paths-webpack-plugin": "^3.5.2",
Expand Down
2 changes: 1 addition & 1 deletion code/frameworks/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"postcss-loader": "^7.0.2",
"resolve-url-loader": "^5.0.0",
"sass-loader": "^12.4.0",
"semver": "^7.3.5",
"semver": "^7.5.1",
"style-loader": "^3.3.1",
"styled-jsx": "5.1.1",
"ts-dedent": "^2.0.0",
Expand Down
4 changes: 2 additions & 2 deletions code/lib/builder-webpack5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"@junk-temporary-prototypes/theming": "7.0.7",
"@storybook/global": "^5.0.0",
"@types/node": "^16.0.0",
"@types/semver": "^7.3.4",
"@types/semver": "^7.5.0",
"babel-loader": "^9.0.0",
"babel-plugin-named-exports-order": "^0.0.2",
"browser-assert": "^1.2.1",
Expand All @@ -90,7 +90,7 @@
"html-webpack-plugin": "^5.5.0",
"path-browserify": "^1.0.1",
"process": "^0.11.10",
"semver": "^7.3.7",
"semver": "^7.5.1",
"style-loader": "^3.3.1",
"terser-webpack-plugin": "^5.3.1",
"ts-dedent": "^2.0.0",
Expand Down
6 changes: 3 additions & 3 deletions code/lib/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"@junk-temporary-prototypes/telemetry": "7.0.7",
"@junk-temporary-prototypes/types": "7.0.7",
"@ndelangen/get-tarball": "^3.0.7",
"@types/semver": "^7.3.4",
"@types/semver": "^7.5.0",
"boxen": "^5.1.2",
"chalk": "^4.1.0",
"commander": "^6.2.1",
Expand All @@ -85,7 +85,7 @@
"prompts": "^2.4.0",
"puppeteer-core": "^2.1.1",
"read-pkg-up": "^7.0.1",
"semver": "^7.3.7",
"semver": "^7.5.1",
"shelljs": "^0.8.5",
"simple-update-notifier": "^1.0.0",
"strip-json-comments": "^3.0.1",
Expand All @@ -98,7 +98,7 @@
"@types/cross-spawn": "^6.0.2",
"@types/prompts": "^2.0.9",
"@types/puppeteer-core": "^2.1.0",
"@types/semver": "^7.3.4",
"@types/semver": "^7.5.0",
"@types/shelljs": "^0.8.7",
"@types/util-deprecate": "^1.0.0",
"strip-json-comments": "^3.1.1",
Expand Down
4 changes: 2 additions & 2 deletions code/lib/cli/src/versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,6 @@ export default {
'@junk-temporary-prototypes/web-components': '7.0.7',
'@junk-temporary-prototypes/web-components-vite': '7.0.7',
'@junk-temporary-prototypes/web-components-webpack5': '7.0.7',
sb: '7.0.7',
storybook: '7.0.7',
'@junk-temporary-prototypes/sb': '7.0.7',
'@junk-temporary-prototypes/storybook': '7.0.7',
};
4 changes: 2 additions & 2 deletions code/lib/core-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"@types/node": "^16.0.0",
"@types/node-fetch": "^2.5.7",
"@types/pretty-hrtime": "^1.0.0",
"@types/semver": "^7.3.4",
"@types/semver": "^7.5.0",
"better-opn": "^2.1.1",
"boxen": "^5.1.2",
"chalk": "^4.1.0",
Expand All @@ -91,7 +91,7 @@
"pretty-hrtime": "^1.0.3",
"prompts": "^2.4.0",
"read-pkg-up": "^7.0.1",
"semver": "^7.3.7",
"semver": "^7.5.1",
"serve-favicon": "^2.5.0",
"telejson": "^7.0.3",
"ts-dedent": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion code/lib/manager-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"dequal": "^2.0.2",
"lodash": "^4.17.21",
"memoizerific": "^1.11.3",
"semver": "^7.3.7",
"semver": "^7.5.1",
"store2": "^2.14.2",
"telejson": "^7.0.3",
"ts-dedent": "^2.0.0"
Expand Down
4 changes: 2 additions & 2 deletions code/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@
"@types/node": "^16.0.0",
"@types/react": "^16.14.34",
"@types/react-dom": "^16.9.14",
"@types/semver": "^7.3.4",
"@types/semver": "^7.5.0",
"@types/serve-static": "^1.13.8",
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/experimental-utils": "^5.45.0",
Expand Down Expand Up @@ -250,7 +250,7 @@
"process": "^0.11.10",
"raf": "^3.4.1",
"react": "^16.14.0",
"semver": "^7.3.7",
"semver": "^7.5.1",
"serve-static": "^1.14.1",
"trash": "^7.0.0",
"ts-dedent": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion code/presets/create-react-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@types/babel__core": "^7.1.7",
"babel-plugin-react-docgen": "^4.1.0",
"pnp-webpack-plugin": "^1.7.0",
"semver": "^7.3.5"
"semver": "^7.5.1"
},
"devDependencies": {
"@junk-temporary-prototypes/node-logger": "7.0.7",
Expand Down
4 changes: 2 additions & 2 deletions code/presets/react-webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.5",
"@storybook/react-docgen-typescript-plugin": "1.0.6--canary.9.0c3f3b7.0",
"@types/node": "^16.0.0",
"@types/semver": "^7.3.4",
"@types/semver": "^7.5.0",
"babel-plugin-add-react-displayname": "^0.0.5",
"babel-plugin-react-docgen": "^4.2.1",
"fs-extra": "^11.1.0",
"react-refresh": "^0.11.0",
"semver": "^7.3.7",
"semver": "^7.5.1",
"webpack": "5"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions code/ui/manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"@junk-temporary-prototypes/types": "7.0.7",
"@storybook/global": "^5.0.0",
"@testing-library/react": "^11.2.2",
"@types/semver": "^7.3.4",
"@types/semver": "^7.5.0",
"copy-to-clipboard": "^3.3.1",
"downshift": "^6.0.15",
"fs-extra": "^11.1.0",
Expand All @@ -85,7 +85,7 @@
"react-helmet-async": "^1.0.7",
"react-resize-detector": "^7.1.2",
"resolve-from": "^5.0.0",
"semver": "^7.3.7",
"semver": "^7.5.1",
"store2": "^2.14.2",
"ts-dedent": "^2.0.0",
"typescript": "~4.9.3"
Expand Down
54 changes: 36 additions & 18 deletions code/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4193,7 +4193,7 @@ __metadata:
"@types/react": ^16.14.34
"@types/react-dom": ^16.9.14
"@types/rimraf": ^3.0.2
"@types/semver": ^7.3.4
"@types/semver": ^7.5.0
"@types/tmp": ^0.2.3
"@types/webpack-env": ^1.18.0
cross-spawn: ^7.0.3
Expand All @@ -4203,7 +4203,7 @@ __metadata:
jest-specific-snapshot: ^7.0.0
read-pkg-up: ^7.0.1
rimraf: ^3.0.2
semver: ^7.3.7
semver: ^7.5.1
telejson: ^7.0.3
tmp: ^0.2.1
ts-dedent: ^2.0.0
Expand Down Expand Up @@ -4382,7 +4382,7 @@ __metadata:
"@storybook/global": ^5.0.0
"@types/node": ^16.0.0
"@types/pretty-hrtime": ^1.0.0
"@types/semver": ^7.3.4
"@types/semver": ^7.5.0
"@types/terser-webpack-plugin": ^5.2.0
"@types/webpack-dev-middleware": ^5.3.0
"@types/webpack-hot-middleware": ^2.25.6
Expand All @@ -4399,7 +4399,7 @@ __metadata:
path-browserify: ^1.0.1
pretty-hrtime: ^1.0.3
process: ^0.11.10
semver: ^7.3.7
semver: ^7.5.1
slash: ^5.0.0
style-loader: ^3.3.1
terser-webpack-plugin: ^5.3.1
Expand Down Expand Up @@ -4472,7 +4472,7 @@ __metadata:
"@types/cross-spawn": ^6.0.2
"@types/prompts": ^2.0.9
"@types/puppeteer-core": ^2.1.0
"@types/semver": ^7.3.4
"@types/semver": ^7.5.0
"@types/shelljs": ^0.8.7
"@types/util-deprecate": ^1.0.0
boxen: ^5.1.2
Expand All @@ -4495,7 +4495,7 @@ __metadata:
prompts: ^2.4.0
puppeteer-core: ^2.1.1
read-pkg-up: ^7.0.1
semver: ^7.3.7
semver: ^7.5.1
shelljs: ^0.8.5
simple-update-notifier: ^1.0.0
strip-json-comments: ^3.1.1
Expand Down Expand Up @@ -4666,7 +4666,7 @@ __metadata:
"@types/node": ^16.0.0
"@types/node-fetch": ^2.5.7
"@types/pretty-hrtime": ^1.0.0
"@types/semver": ^7.3.4
"@types/semver": ^7.5.0
"@types/serve-favicon": ^2.5.2
"@types/ws": ^8
better-opn: ^2.1.1
Expand All @@ -4687,7 +4687,7 @@ __metadata:
pretty-hrtime: ^1.0.3
prompts: ^2.4.0
read-pkg-up: ^7.0.1
semver: ^7.3.7
semver: ^7.5.1
serve-favicon: ^2.5.0
slash: ^5.0.0
telejson: ^7.0.3
Expand Down Expand Up @@ -4870,7 +4870,7 @@ __metadata:
lodash: ^4.17.21
memoizerific: ^1.11.3
qs: ^6.10.0
semver: ^7.3.7
semver: ^7.5.1
store2: ^2.14.2
telejson: ^7.0.3
ts-dedent: ^2.0.0
Expand Down Expand Up @@ -4900,7 +4900,7 @@ __metadata:
"@junk-temporary-prototypes/types": 7.0.7
"@storybook/global": ^5.0.0
"@testing-library/react": ^11.2.2
"@types/semver": ^7.3.4
"@types/semver": ^7.5.0
copy-to-clipboard: ^3.3.1
downshift: ^6.0.15
fs-extra: ^11.1.0
Expand All @@ -4916,7 +4916,7 @@ __metadata:
react-helmet-async: ^1.0.7
react-resize-detector: ^7.1.2
resolve-from: ^5.0.0
semver: ^7.3.7
semver: ^7.5.1
store2: ^2.14.2
ts-dedent: ^2.0.0
typescript: ~4.9.3
Expand Down Expand Up @@ -4963,7 +4963,7 @@ __metadata:
postcss-loader: ^7.0.2
resolve-url-loader: ^5.0.0
sass-loader: ^12.4.0
semver: ^7.3.5
semver: ^7.5.1
style-loader: ^3.3.1
styled-jsx: 5.1.1
ts-dedent: ^2.0.0
Expand Down Expand Up @@ -5079,7 +5079,7 @@ __metadata:
"@types/node": ^16.0.0
babel-plugin-react-docgen: ^4.1.0
pnp-webpack-plugin: ^1.7.0
semver: ^7.3.5
semver: ^7.5.1
typescript: ~4.9.3
peerDependencies:
"@babel/core": "*"
Expand Down Expand Up @@ -5130,12 +5130,12 @@ __metadata:
"@pmmmwh/react-refresh-webpack-plugin": ^0.5.5
"@storybook/react-docgen-typescript-plugin": 1.0.6--canary.9.0c3f3b7.0
"@types/node": ^16.0.0
"@types/semver": ^7.3.4
"@types/semver": ^7.5.0
babel-plugin-add-react-displayname: ^0.0.5
babel-plugin-react-docgen: ^4.2.1
fs-extra: ^11.1.0
react-refresh: ^0.11.0
semver: ^7.3.7
semver: ^7.5.1
typescript: ~4.9.3
webpack: 5
peerDependencies:
Expand Down Expand Up @@ -5522,7 +5522,7 @@ __metadata:
"@types/node": ^16.0.0
"@types/react": ^16.14.34
"@types/react-dom": ^16.9.14
"@types/semver": ^7.3.4
"@types/semver": ^7.5.0
"@types/serve-static": ^1.13.8
"@typescript-eslint/eslint-plugin": ^5.45.0
"@typescript-eslint/experimental-utils": ^5.45.0
Expand Down Expand Up @@ -5565,7 +5565,7 @@ __metadata:
process: ^0.11.10
raf: ^3.4.1
react: ^16.14.0
semver: ^7.3.7
semver: ^7.5.1
serve-static: ^1.14.1
trash: ^7.0.0
ts-dedent: ^2.0.0
Expand Down Expand Up @@ -8709,13 +8709,20 @@ __metadata:
languageName: node
linkType: hard

"@types/semver@npm:^7.3.12, @types/semver@npm:^7.3.4":
"@types/semver@npm:^7.3.12":
version: 7.3.13
resolution: "@types/semver@npm:7.3.13"
checksum: 73295bb1fee46f8c76c7a759feeae5a3022f5bedfdc17d16982092e4b33af17560234fb94861560c20992a702a1e1b9a173bb623a96f95f80892105f5e7d25e3
languageName: node
linkType: hard

"@types/semver@npm:^7.5.0":
version: 7.5.0
resolution: "@types/semver@npm:7.5.0"
checksum: ca4ba4642b5972b6e88e73c5bc02bbaceb8d76bce71748d86e3e95042d4e5a44603113a1dcd2cb9b73ad6f91f6e4ab73185eb41bbfc9c73b11f0ed3db3b7443a
languageName: node
linkType: hard

"@types/send@npm:*":
version: 0.17.1
resolution: "@types/send@npm:0.17.1"
Expand Down Expand Up @@ -27199,6 +27206,17 @@ __metadata:
languageName: node
linkType: hard

"semver@npm:^7.5.1":
version: 7.5.1
resolution: "semver@npm:7.5.1"
dependencies:
lru-cache: ^6.0.0
bin:
semver: bin/semver.js
checksum: ae6aca3cfba9b4d0e0a8fa789c7fa4a8412e39f24ecc19500db291a0a31bb43c151021e4fdbb68a85dcd06c1297f6daeeb09647cea4253eba0ccc0106eb7cd67
languageName: node
linkType: hard

"semver@npm:~7.0.0":
version: 7.0.0
resolution: "semver@npm:7.0.0"
Expand Down
File renamed without changes.
Loading

0 comments on commit 961bd01

Please sign in to comment.