@nrwl/storybook 13.4.2 → 13.4.4-beta.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nrwl/storybook",
3
- "version": "13.4.2",
3
+ "version": "13.4.4-beta.2",
4
4
  "description": "Storybook plugin for Nx",
5
5
  "repository": {
6
6
  "type": "git",
@@ -29,10 +29,10 @@
29
29
  "migrations": "./migrations.json"
30
30
  },
31
31
  "dependencies": {
32
- "@nrwl/cypress": "13.4.2",
33
- "@nrwl/devkit": "13.4.2",
34
- "@nrwl/linter": "13.4.2",
35
- "@nrwl/workspace": "13.4.2",
32
+ "@nrwl/cypress": "13.4.4-beta.2",
33
+ "@nrwl/devkit": "13.4.4-beta.2",
34
+ "@nrwl/linter": "13.4.4-beta.2",
35
+ "@nrwl/workspace": "13.4.4-beta.2",
36
36
  "core-js": "^3.6.5",
37
37
  "semver": "7.3.4",
38
38
  "ts-loader": "^9.2.6",
@@ -17,13 +17,24 @@ module.exports = {
17
17
  if (rootMain.webpackFinal) {
18
18
  config = await rootMain.webpackFinal(config, { configType });
19
19
  }
20
-
20
+
21
21
  <% if (existsRootWebpackConfig) { %>// for backwards compatibility call the `rootWebpackConfig`
22
22
  // this can be removed once that one is migrated fully to
23
23
  // use the `webpackFinal` property in the `main.js` file
24
24
  config = rootWebpackConfig({ config });
25
25
  <% } %>
26
26
 
27
+ <% if (uiFramework === '@storybook/angular') { %>
28
+ // remove html raw-loader that breaks Jit compilation
29
+ const rules = (config.module.rules ?? []).filter(
30
+ (rule) =>
31
+ rule.test !== /\.html$/ &&
32
+ rule.exclude !== /\.async\.html$/ &&
33
+ !rule.loader?.includes('raw-loader')
34
+ );
35
+ config.module.rules = [...rules];
36
+ <% } %>
37
+
27
38
  // add your own webpack tweaks if needed
28
39
 
29
40
  return config;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.urlLoaderVersion = exports.svgrVersion = exports.babelPresetTypescriptVersion = exports.babelLoaderVersion = exports.babelCoreVersion = exports.storybookVersion = exports.nxVersion = void 0;
4
- exports.nxVersion = '13.4.2';
4
+ exports.nxVersion = '13.4.4-beta.2';
5
5
  exports.storybookVersion = '~6.4.5';
6
6
  exports.babelCoreVersion = '7.12.13';
7
7
  exports.babelLoaderVersion = '8.1.0';
package/jest.config.js DELETED
@@ -1,12 +0,0 @@
1
- module.exports = {
2
- preset: '../../jest.preset.js',
3
- transform: {
4
- '^.+\\.[tj]sx?$': 'ts-jest',
5
- },
6
- moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html', 'json'],
7
- globals: {
8
- 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' },
9
- },
10
- displayName: 'storybook',
11
- testEnvironment: 'node',
12
- };