@storybook/angular 6.4.4 → 6.4.5
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/ts3.9/server/__mocks-ng-workspace__/minimal-config/angular.json +1 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/some-config/angular.json +1 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/with-angularBrowserTarget/angular.json +4 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/with-nx/angular.json +1 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/with-nx-workspace/workspace.json +1 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/with-options-styles/angular.json +1 -0
- package/dist/ts3.9/server/angular-cli-webpack-12.2.x.js +7 -1
- package/dist/ts3.9/server/angular-cli-webpack-13.x.x.js +7 -1
- package/dist/ts3.9/server/angular-devkit-build-webpack.js +1 -1
- package/package.json +9 -9
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
"projects": {
|
|
4
4
|
"foo-project": {
|
|
5
5
|
"root": "",
|
|
6
|
+
"sourceRoot": "src",
|
|
6
7
|
"architect": {
|
|
7
8
|
"build": {
|
|
8
9
|
"options": {
|
|
@@ -14,6 +15,7 @@
|
|
|
14
15
|
},
|
|
15
16
|
"no-confs-project": {
|
|
16
17
|
"root": "",
|
|
18
|
+
"sourceRoot": "src",
|
|
17
19
|
"architect": {
|
|
18
20
|
"target-build": {
|
|
19
21
|
"options": {
|
|
@@ -25,6 +27,7 @@
|
|
|
25
27
|
},
|
|
26
28
|
"no-target-conf-project": {
|
|
27
29
|
"root": "",
|
|
30
|
+
"sourceRoot": "src",
|
|
28
31
|
"architect": {
|
|
29
32
|
"target-build": {
|
|
30
33
|
"options": {
|
|
@@ -41,6 +44,7 @@
|
|
|
41
44
|
},
|
|
42
45
|
"target-project": {
|
|
43
46
|
"root": "",
|
|
47
|
+
"sourceRoot": "src",
|
|
44
48
|
"architect": {
|
|
45
49
|
"target-build": {
|
|
46
50
|
"options": {
|
|
@@ -55,6 +55,7 @@ var __spreadArrays = (this && this.__spreadArrays) || function () {
|
|
|
55
55
|
// Private angular devkit stuff
|
|
56
56
|
var generateI18nBrowserWebpackConfigFromContext = require('@angular-devkit/build-angular/src/utils/webpack-browser-config').generateI18nBrowserWebpackConfigFromContext;
|
|
57
57
|
var _a = require('@angular-devkit/build-angular/src/webpack/configs'), getCommonConfig = _a.getCommonConfig, getStylesConfig = _a.getStylesConfig, getTypeScriptConfig = _a.getTypeScriptConfig;
|
|
58
|
+
var TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
|
|
58
59
|
var filterOutStylingRules = require('./utils/filter-out-styling-rules').filterOutStylingRules;
|
|
59
60
|
/**
|
|
60
61
|
* Extract webpack config from angular-cli 12.2.x
|
|
@@ -82,7 +83,12 @@ exports.getWebpackConfig = function (baseConfig, _a) {
|
|
|
82
83
|
rulesExcludingStyles = filterOutStylingRules(baseConfig);
|
|
83
84
|
module = __assign(__assign({}, baseConfig.module), { rules: __spreadArrays(cliConfig.module.rules, rulesExcludingStyles) });
|
|
84
85
|
plugins = __spreadArrays(((_d = cliConfig.plugins) !== null && _d !== void 0 ? _d : []), baseConfig.plugins);
|
|
85
|
-
resolve = __assign(__assign({}, baseConfig.resolve), { modules: Array.from(new Set(__spreadArrays(baseConfig.resolve.modules, cliConfig.resolve.modules)))
|
|
86
|
+
resolve = __assign(__assign({}, baseConfig.resolve), { modules: Array.from(new Set(__spreadArrays(baseConfig.resolve.modules, cliConfig.resolve.modules))), plugins: [
|
|
87
|
+
new TsconfigPathsPlugin({
|
|
88
|
+
configFile: builderOptions.tsConfig,
|
|
89
|
+
mainFields: ['browser', 'module', 'main'],
|
|
90
|
+
}),
|
|
91
|
+
] });
|
|
86
92
|
return [2 /*return*/, __assign(__assign({}, baseConfig), { entry: entry,
|
|
87
93
|
module: module,
|
|
88
94
|
plugins: plugins,
|
|
@@ -55,6 +55,7 @@ var __spreadArrays = (this && this.__spreadArrays) || function () {
|
|
|
55
55
|
// Private angular devkit stuff
|
|
56
56
|
var generateI18nBrowserWebpackConfigFromContext = require('@angular-devkit/build-angular/src/utils/webpack-browser-config').generateI18nBrowserWebpackConfigFromContext;
|
|
57
57
|
var _a = require('@angular-devkit/build-angular/src/webpack/configs'), getCommonConfig = _a.getCommonConfig, getStylesConfig = _a.getStylesConfig, getTypescriptWorkerPlugin = _a.getTypescriptWorkerPlugin;
|
|
58
|
+
var TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
|
|
58
59
|
var filterOutStylingRules = require('./utils/filter-out-styling-rules').filterOutStylingRules;
|
|
59
60
|
/**
|
|
60
61
|
* Extract webpack config from angular-cli 13.x.x
|
|
@@ -82,7 +83,12 @@ exports.getWebpackConfig = function (baseConfig, _a) {
|
|
|
82
83
|
rulesExcludingStyles = filterOutStylingRules(baseConfig);
|
|
83
84
|
module = __assign(__assign({}, baseConfig.module), { rules: __spreadArrays(cliConfig.module.rules, rulesExcludingStyles) });
|
|
84
85
|
plugins = __spreadArrays(((_d = cliConfig.plugins) !== null && _d !== void 0 ? _d : []), baseConfig.plugins);
|
|
85
|
-
resolve = __assign(__assign({}, baseConfig.resolve), { modules: Array.from(new Set(__spreadArrays(baseConfig.resolve.modules, cliConfig.resolve.modules)))
|
|
86
|
+
resolve = __assign(__assign({}, baseConfig.resolve), { modules: Array.from(new Set(__spreadArrays(baseConfig.resolve.modules, cliConfig.resolve.modules))), plugins: [
|
|
87
|
+
new TsconfigPathsPlugin({
|
|
88
|
+
configFile: builderOptions.tsConfig,
|
|
89
|
+
mainFields: ['browser', 'module', 'main'],
|
|
90
|
+
}),
|
|
91
|
+
] });
|
|
86
92
|
return [2 /*return*/, __assign(__assign({}, baseConfig), { entry: entry,
|
|
87
93
|
module: module,
|
|
88
94
|
plugins: plugins,
|
|
@@ -163,7 +163,7 @@ var buildWebpackConfigOptions = function (dirToSearch, project, target, confName
|
|
|
163
163
|
// The dependency of `@angular-devkit/build-angular` to `@angular-devkit/core` is not exactly the same version as the one for storybook (node modules of node modules ^^)
|
|
164
164
|
logger: node_1.createConsoleLogger(),
|
|
165
165
|
projectRoot: core_1.getSystemPath(projectRootNormalized),
|
|
166
|
-
sourceRoot: core_1.getSystemPath(sourceRootNormalized),
|
|
166
|
+
sourceRoot: sourceRootNormalized ? core_1.getSystemPath(sourceRootNormalized) : undefined,
|
|
167
167
|
buildOptions: buildOptions,
|
|
168
168
|
tsConfig: tsConfig,
|
|
169
169
|
tsConfigPath: tsConfigPath,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/angular",
|
|
3
|
-
"version": "6.4.
|
|
3
|
+
"version": "6.4.5",
|
|
4
4
|
"description": "Storybook for Angular: Develop Angular Components in isolation with Hot Reloading.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook"
|
|
@@ -45,15 +45,15 @@
|
|
|
45
45
|
"prepare": "node ../../scripts/prepare.js"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@storybook/addons": "6.4.
|
|
49
|
-
"@storybook/api": "6.4.
|
|
50
|
-
"@storybook/core": "6.4.
|
|
51
|
-
"@storybook/core-common": "6.4.
|
|
52
|
-
"@storybook/core-events": "6.4.
|
|
48
|
+
"@storybook/addons": "6.4.5",
|
|
49
|
+
"@storybook/api": "6.4.5",
|
|
50
|
+
"@storybook/core": "6.4.5",
|
|
51
|
+
"@storybook/core-common": "6.4.5",
|
|
52
|
+
"@storybook/core-events": "6.4.5",
|
|
53
53
|
"@storybook/csf": "0.0.2--canary.87bc651.0",
|
|
54
|
-
"@storybook/node-logger": "6.4.
|
|
54
|
+
"@storybook/node-logger": "6.4.5",
|
|
55
55
|
"@storybook/semver": "^7.3.2",
|
|
56
|
-
"@storybook/store": "6.4.
|
|
56
|
+
"@storybook/store": "6.4.5",
|
|
57
57
|
"@types/webpack-env": "^1.16.0",
|
|
58
58
|
"autoprefixer": "^9.8.6",
|
|
59
59
|
"core-js": "^3.8.2",
|
|
@@ -138,5 +138,5 @@
|
|
|
138
138
|
"access": "public"
|
|
139
139
|
},
|
|
140
140
|
"builders": "dist/ts3.9/builders/builders.json",
|
|
141
|
-
"gitHead": "
|
|
141
|
+
"gitHead": "21b21f32a1d9486d957b16061dd5fc113f222b8a"
|
|
142
142
|
}
|