@storybook/cli 7.0.0-alpha.20 → 7.0.0-alpha.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/automigrate/fixes/builder-vite.js +1 -3
- package/dist/cjs/detect.js +2 -18
- package/dist/cjs/generators/RAX/index.js +1 -3
- package/dist/cjs/generators/baseGenerator.js +17 -13
- package/dist/cjs/initiate.js +10 -3
- package/dist/cjs/js-package-manager/JsPackageManager.js +59 -10
- package/dist/cjs/js-package-manager/JsPackageManagerFactory.js +25 -11
- package/dist/cjs/js-package-manager/NPMProxy.js +6 -0
- package/dist/cjs/js-package-manager/Yarn1Proxy.js +6 -0
- package/dist/cjs/js-package-manager/Yarn2Proxy.js +6 -0
- package/dist/cjs/js-package-manager/index.js +0 -13
- package/dist/cjs/repro-generators/scripts.js +1 -1
- package/dist/cjs/versions.js +75 -75
- package/dist/esm/automigrate/fixes/builder-vite.js +1 -2
- package/dist/esm/detect.js +2 -17
- package/dist/esm/generators/RAX/index.js +1 -2
- package/dist/esm/generators/baseGenerator.js +17 -13
- package/dist/esm/initiate.js +10 -3
- package/dist/esm/js-package-manager/JsPackageManager.js +55 -9
- package/dist/esm/js-package-manager/JsPackageManagerFactory.js +25 -11
- package/dist/esm/js-package-manager/NPMProxy.js +6 -0
- package/dist/esm/js-package-manager/Yarn1Proxy.js +6 -0
- package/dist/esm/js-package-manager/Yarn2Proxy.js +6 -0
- package/dist/esm/js-package-manager/index.js +1 -2
- package/dist/esm/repro-generators/scripts.js +1 -1
- package/dist/esm/versions.js +75 -75
- package/dist/types/detect.d.ts +2 -2
- package/dist/types/js-package-manager/JsPackageManager.d.ts +13 -0
- package/dist/types/js-package-manager/JsPackageManagerFactory.d.ts +1 -1
- package/dist/types/js-package-manager/NPMProxy.d.ts +4 -0
- package/dist/types/js-package-manager/Yarn1Proxy.d.ts +6 -0
- package/dist/types/js-package-manager/Yarn2Proxy.d.ts +6 -0
- package/dist/types/js-package-manager/index.d.ts +0 -1
- package/package.json +9 -9
- package/dist/cjs/js-package-manager/PackageJsonHelper.js +0 -33
- package/dist/esm/js-package-manager/PackageJsonHelper.js +0 -17
- package/dist/types/js-package-manager/PackageJsonHelper.d.ts +0 -3
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { JsPackageManager } from './JsPackageManager';
|
|
2
|
+
import type { PackageJson } from './PackageJson';
|
|
2
3
|
export declare class Yarn1Proxy extends JsPackageManager {
|
|
3
4
|
readonly type = "yarn1";
|
|
4
5
|
initPackageJson(): string;
|
|
5
6
|
getRunStorybookCommand(): string;
|
|
6
7
|
getRunCommand(command: string): string;
|
|
8
|
+
protected getResolutions(packageJson: PackageJson, versions: Record<string, string>): {
|
|
9
|
+
resolutions: {
|
|
10
|
+
[x: string]: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
7
13
|
protected runInstall(): void;
|
|
8
14
|
protected runAddDeps(dependencies: string[], installAsDevDependencies: boolean): void;
|
|
9
15
|
protected runRemoveDeps(dependencies: string[]): void;
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { JsPackageManager } from './JsPackageManager';
|
|
2
|
+
import type { PackageJson } from './PackageJson';
|
|
2
3
|
export declare class Yarn2Proxy extends JsPackageManager {
|
|
3
4
|
readonly type = "yarn2";
|
|
4
5
|
initPackageJson(): string;
|
|
5
6
|
getRunStorybookCommand(): string;
|
|
6
7
|
getRunCommand(command: string): string;
|
|
8
|
+
protected getResolutions(packageJson: PackageJson, versions: Record<string, string>): {
|
|
9
|
+
resolutions: {
|
|
10
|
+
[x: string]: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
7
13
|
protected runInstall(): void;
|
|
8
14
|
protected runAddDeps(dependencies: string[], installAsDevDependencies: boolean): void;
|
|
9
15
|
protected runRemoveDeps(dependencies: string[]): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/cli",
|
|
3
|
-
"version": "7.0.0-alpha.
|
|
3
|
+
"version": "7.0.0-alpha.24",
|
|
4
4
|
"description": "Storybook's CLI - easiest method of adding storybook to your projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -48,13 +48,13 @@
|
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@babel/core": "^7.12.10",
|
|
50
50
|
"@babel/preset-env": "^7.12.11",
|
|
51
|
-
"@storybook/codemod": "7.0.0-alpha.
|
|
52
|
-
"@storybook/core-common": "7.0.0-alpha.
|
|
53
|
-
"@storybook/core-server": "7.0.0-alpha.
|
|
54
|
-
"@storybook/csf-tools": "7.0.0-alpha.
|
|
55
|
-
"@storybook/node-logger": "7.0.0-alpha.
|
|
51
|
+
"@storybook/codemod": "7.0.0-alpha.24",
|
|
52
|
+
"@storybook/core-common": "7.0.0-alpha.24",
|
|
53
|
+
"@storybook/core-server": "7.0.0-alpha.24",
|
|
54
|
+
"@storybook/csf-tools": "7.0.0-alpha.24",
|
|
55
|
+
"@storybook/node-logger": "7.0.0-alpha.24",
|
|
56
56
|
"@storybook/semver": "^7.3.2",
|
|
57
|
-
"@storybook/telemetry": "7.0.0-alpha.
|
|
57
|
+
"@storybook/telemetry": "7.0.0-alpha.24",
|
|
58
58
|
"boxen": "^5.1.2",
|
|
59
59
|
"chalk": "^4.1.0",
|
|
60
60
|
"commander": "^6.2.1",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"update-notifier": "^5.0.1"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
|
-
"@storybook/client-api": "7.0.0-alpha.
|
|
84
|
+
"@storybook/client-api": "7.0.0-alpha.24",
|
|
85
85
|
"@types/cross-spawn": "^6.0.2",
|
|
86
86
|
"@types/degit": "^2.8.3",
|
|
87
87
|
"@types/prompts": "^2.0.9",
|
|
@@ -96,5 +96,5 @@
|
|
|
96
96
|
"publishConfig": {
|
|
97
97
|
"access": "public"
|
|
98
98
|
},
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "e3232cb426b8381afa48f42e6baa45fd9af9bc3a"
|
|
100
100
|
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.readPackageJson = readPackageJson;
|
|
7
|
-
exports.writePackageJson = writePackageJson;
|
|
8
|
-
|
|
9
|
-
var _path = _interopRequireDefault(require("path"));
|
|
10
|
-
|
|
11
|
-
var _fs = _interopRequireDefault(require("fs"));
|
|
12
|
-
|
|
13
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
-
|
|
15
|
-
function readPackageJson() {
|
|
16
|
-
const packageJsonPath = _path.default.resolve('package.json');
|
|
17
|
-
|
|
18
|
-
if (!_fs.default.existsSync(packageJsonPath)) {
|
|
19
|
-
throw new Error(`Could not read package.json file at ${packageJsonPath}`);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
const jsonContent = _fs.default.readFileSync(packageJsonPath, 'utf8');
|
|
23
|
-
|
|
24
|
-
return JSON.parse(jsonContent);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
function writePackageJson(packageJson) {
|
|
28
|
-
const content = `${JSON.stringify(packageJson, null, 2)}\n`;
|
|
29
|
-
|
|
30
|
-
const packageJsonPath = _path.default.resolve('package.json');
|
|
31
|
-
|
|
32
|
-
_fs.default.writeFileSync(packageJsonPath, content, 'utf8');
|
|
33
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import path from 'path';
|
|
2
|
-
import fs from 'fs';
|
|
3
|
-
export function readPackageJson() {
|
|
4
|
-
const packageJsonPath = path.resolve('package.json');
|
|
5
|
-
|
|
6
|
-
if (!fs.existsSync(packageJsonPath)) {
|
|
7
|
-
throw new Error(`Could not read package.json file at ${packageJsonPath}`);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
const jsonContent = fs.readFileSync(packageJsonPath, 'utf8');
|
|
11
|
-
return JSON.parse(jsonContent);
|
|
12
|
-
}
|
|
13
|
-
export function writePackageJson(packageJson) {
|
|
14
|
-
const content = `${JSON.stringify(packageJson, null, 2)}\n`;
|
|
15
|
-
const packageJsonPath = path.resolve('package.json');
|
|
16
|
-
fs.writeFileSync(packageJsonPath, content, 'utf8');
|
|
17
|
-
}
|