@nx/storybook 24.0.6 → 24.1.0-beta.1
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.
|
@@ -78,12 +78,12 @@ function handlePropertiesFromTargetOptions(tree, options, defaultConfigDir, proj
|
|
|
78
78
|
}
|
|
79
79
|
if ('docsMode' in options) {
|
|
80
80
|
configValues.docsMode = options.docsMode;
|
|
81
|
-
moveDocsModeToConfigFile(tree, configDir, projectName, migrationLogs
|
|
81
|
+
moveDocsModeToConfigFile(tree, configDir, projectName, migrationLogs);
|
|
82
82
|
delete options.docsMode;
|
|
83
83
|
}
|
|
84
84
|
if ('staticDir' in options) {
|
|
85
85
|
configValues.staticDir = options.staticDir;
|
|
86
|
-
moveStaticDirToConfigFile(tree, configDir, projectName, migrationLogs
|
|
86
|
+
moveStaticDirToConfigFile(tree, configDir, projectName, migrationLogs);
|
|
87
87
|
delete options.staticDir;
|
|
88
88
|
}
|
|
89
89
|
const storybookPropMappings = (0, utils_1.getStorybookPropMappings)(tree);
|
|
@@ -95,7 +95,7 @@ function handlePropertiesFromTargetOptions(tree, options, defaultConfigDir, proj
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
function moveDocsModeToConfigFile(tree, configDir, projectName, migrationLogs
|
|
98
|
+
function moveDocsModeToConfigFile(tree, configDir, projectName, migrationLogs) {
|
|
99
99
|
const configFilePath = (0, utils_1.getConfigFilePath)(tree, configDir);
|
|
100
100
|
const configFileContents = tree.read(configFilePath, 'utf-8');
|
|
101
101
|
const sourceFile = (0, tsquery_1.ast)(configFileContents);
|
|
@@ -130,7 +130,7 @@ function moveDocsModeToConfigFile(tree, configDir, projectName, migrationLogs, u
|
|
|
130
130
|
: `docsMode: ${docsModeInsert},`;
|
|
131
131
|
tree.write(configFilePath, `${configFileContents.slice(0, startPosition)}${nodeToInsert}${configFileContents.slice(startPosition)}`);
|
|
132
132
|
}
|
|
133
|
-
function moveStaticDirToConfigFile(tree, configDir, projectName, migrationLogs
|
|
133
|
+
function moveStaticDirToConfigFile(tree, configDir, projectName, migrationLogs) {
|
|
134
134
|
const configFilePath = (0, utils_1.getConfigFilePath)(tree, configDir);
|
|
135
135
|
const configFileContents = tree.read(configFilePath, 'utf-8');
|
|
136
136
|
const sourceFile = (0, tsquery_1.ast)(configFileContents);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/storybook",
|
|
3
|
-
"version": "24.0.
|
|
3
|
+
"version": "24.1.0-beta.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"files": [
|
|
@@ -97,23 +97,26 @@
|
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
99
|
"dependencies": {
|
|
100
|
-
"@nx/devkit": "24.0.
|
|
100
|
+
"@nx/devkit": "24.1.0-beta.1",
|
|
101
101
|
"@phenomnomnominal/tsquery": "~6.2.0",
|
|
102
102
|
"semver": "^7.6.3",
|
|
103
103
|
"tslib": "^2.3.0",
|
|
104
|
-
"@nx/
|
|
105
|
-
"@nx/
|
|
106
|
-
"@nx/eslint": "24.0.6"
|
|
104
|
+
"@nx/js": "24.1.0-beta.1",
|
|
105
|
+
"@nx/eslint": "24.1.0-beta.1"
|
|
107
106
|
},
|
|
108
107
|
"devDependencies": {
|
|
109
|
-
"nx": "24.0.
|
|
110
|
-
"storybook": "9.
|
|
108
|
+
"nx": "24.1.0-beta.1",
|
|
109
|
+
"storybook": "9.1.21"
|
|
111
110
|
},
|
|
112
111
|
"peerDependencies": {
|
|
113
|
-
"@nx/
|
|
112
|
+
"@nx/cypress": "24.1.0-beta.1",
|
|
113
|
+
"@nx/web": "24.1.0-beta.1",
|
|
114
114
|
"storybook": ">=8.0.0 <11.0.0"
|
|
115
115
|
},
|
|
116
116
|
"peerDependenciesMeta": {
|
|
117
|
+
"@nx/cypress": {
|
|
118
|
+
"optional": true
|
|
119
|
+
},
|
|
117
120
|
"@nx/web": {
|
|
118
121
|
"optional": true
|
|
119
122
|
}
|