Skip to content

Commit d0e0ed2

Browse files
committed
remove temporary npm org
1 parent 71bd67a commit d0e0ed2

File tree

3 files changed

+8
-13
lines changed

3 files changed

+8
-13
lines changed

scripts/release/__tests__/version.test.ts

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ describe('Version', () => {
3030
fsExtra.__setMockFiles({
3131
[CODE_PACKAGE_JSON_PATH]: JSON.stringify({ version: '1.0.0' }),
3232
[MANAGER_API_VERSION_PATH]: `export const version = "1.0.0";`,
33-
[VERSIONS_PATH]: `export default { "@junk-temporary-prototypes/addon-a11y": "1.0.0" };`,
33+
[VERSIONS_PATH]: `export default { "@storybook/addon-a11y": "1.0.0" };`,
3434
});
3535

3636
await expect(version({ releaseType: 'invalid' })).rejects.toThrowErrorMatchingInlineSnapshot(`
@@ -60,7 +60,7 @@ describe('Version', () => {
6060
fsExtra.__setMockFiles({
6161
[CODE_PACKAGE_JSON_PATH]: JSON.stringify({ version: '1.0.0' }),
6262
[MANAGER_API_VERSION_PATH]: `export const version = "1.0.0";`,
63-
[VERSIONS_PATH]: `export default { "@junk-temporary-prototypes/addon-a11y": "1.0.0" };`,
63+
[VERSIONS_PATH]: `export default { "@storybook/addon-a11y": "1.0.0" };`,
6464
});
6565

6666
await expect(version({ releaseType: 'major', preId: 'alpha' })).rejects
@@ -79,7 +79,7 @@ describe('Version', () => {
7979
fsExtra.__setMockFiles({
8080
[CODE_PACKAGE_JSON_PATH]: JSON.stringify({ version: '1.0.0' }),
8181
[MANAGER_API_VERSION_PATH]: `export const version = "1.0.0";`,
82-
[VERSIONS_PATH]: `export default { "@junk-temporary-prototypes/addon-a11y": "1.0.0" };`,
82+
[VERSIONS_PATH]: `export default { "@storybook/addon-a11y": "1.0.0" };`,
8383
});
8484

8585
await expect(version({ releaseType: 'major', exact: '1.0.0' })).rejects
@@ -98,7 +98,7 @@ describe('Version', () => {
9898
fsExtra.__setMockFiles({
9999
[CODE_PACKAGE_JSON_PATH]: JSON.stringify({ version: '1.0.0' }),
100100
[MANAGER_API_VERSION_PATH]: `export const version = "1.0.0";`,
101-
[VERSIONS_PATH]: `export default { "@junk-temporary-prototypes/addon-a11y": "1.0.0" };`,
101+
[VERSIONS_PATH]: `export default { "@storybook/addon-a11y": "1.0.0" };`,
102102
});
103103

104104
await expect(version({ exact: 'not-semver' })).rejects.toThrowErrorMatchingInlineSnapshot(`
@@ -147,7 +147,7 @@ describe('Version', () => {
147147
fsExtra.__setMockFiles({
148148
[CODE_PACKAGE_JSON_PATH]: JSON.stringify({ version: currentVersion }),
149149
[MANAGER_API_VERSION_PATH]: `export const version = "${currentVersion}";`,
150-
[VERSIONS_PATH]: `export default { "@junk-temporary-prototypes/addon-a11y": "${currentVersion}" };`,
150+
[VERSIONS_PATH]: `export default { "@storybook/addon-a11y": "${currentVersion}" };`,
151151
});
152152

153153
await version({ releaseType, preId, exact });
@@ -158,12 +158,7 @@ describe('Version', () => {
158158
{ spaces: 2 }
159159
);
160160
expect(fsExtra.writeFile).toHaveBeenCalledWith(
161-
path.join(
162-
CODE_DIR_PATH,
163-
'.yarn',
164-
'versions',
165-
'generated-by-versions-script.yml'
166-
),
161+
path.join(CODE_DIR_PATH, '.yarn', 'versions', 'generated-by-versions-script.yml'),
167162
expect.stringContaining(expectedVersion)
168163
);
169164
expect(execaCommand).toHaveBeenCalledWith('yarn version apply --all', { cwd: CODE_DIR_PATH });

scripts/release/is-version-published.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export const run = async (args: unknown[], options: unknown) => {
7070

7171
const isAlreadyPublished = await isVersionPublished({
7272
version,
73-
packageName: '@junk-temporary-prototypes/manager-api',
73+
packageName: '@storybook/manager-api',
7474
verbose,
7575
});
7676

scripts/release/publish.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ export const run = async (options: unknown) => {
182182
const currentVersion = await getCurrentVersion(verbose);
183183
const isAlreadyPublished = await isCurrentVersionPublished({
184184
currentVersion,
185-
packageName: '@junk-temporary-prototypes/manager-api',
185+
packageName: '@storybook/manager-api',
186186
verbose,
187187
});
188188
if (isAlreadyPublished) {

0 commit comments

Comments
 (0)