@nx/storybook 17.0.0-beta.5 → 17.0.0-beta.8

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": "@nx/storybook",
3
- "version": "17.0.0-beta.5",
3
+ "version": "17.0.0-beta.8",
4
4
  "private": false,
5
5
  "description": "The Nx Plugin for Storybook contains executors and generators for allowing your workspace to use the powerful Storybook integration testing & documenting capabilities.",
6
6
  "repository": {
@@ -33,11 +33,11 @@
33
33
  "@phenomnomnominal/tsquery": "~5.0.1",
34
34
  "semver": "7.5.3",
35
35
  "tslib": "^2.3.0",
36
- "@nx/cypress": "17.0.0-beta.5",
37
- "@nx/devkit": "17.0.0-beta.5",
38
- "@nx/js": "17.0.0-beta.5",
39
- "@nx/linter": "17.0.0-beta.5",
40
- "@nrwl/storybook": "17.0.0-beta.5"
36
+ "@nx/cypress": "17.0.0-beta.8",
37
+ "@nx/devkit": "17.0.0-beta.8",
38
+ "@nx/js": "17.0.0-beta.8",
39
+ "@nx/eslint": "17.0.0-beta.8",
40
+ "@nrwl/storybook": "17.0.0-beta.8"
41
41
  },
42
42
  "publishConfig": {
43
43
  "access": "public"
@@ -5,7 +5,7 @@ const devkit_1 = require("@nx/devkit");
5
5
  const cypress_project_1 = require("../cypress-project/cypress-project");
6
6
  const init_1 = require("../init/init");
7
7
  const util_functions_1 = require("./lib/util-functions");
8
- const linter_1 = require("@nx/linter");
8
+ const eslint_1 = require("@nx/eslint");
9
9
  const utilities_1 = require("../../utils/utilities");
10
10
  const versions_1 = require("../../utils/versions");
11
11
  const interaction_testing_utils_1 = require("./lib/interaction-testing.utils");
@@ -23,12 +23,12 @@ async function configurationGenerator(tree, rawSchema) {
23
23
  }
24
24
  if (viteBuildTarget) {
25
25
  if (schema.uiFramework === '@storybook/react-webpack5') {
26
- devkit_1.logger.info(`Your project ${schema.name} uses Vite as a bundler.
26
+ devkit_1.logger.info(`Your project ${schema.name} uses Vite as a bundler.
27
27
  Nx will configure Storybook for this project to use Vite as well.`);
28
28
  schema.uiFramework = '@storybook/react-vite';
29
29
  }
30
30
  if (schema.uiFramework === '@storybook/web-components-webpack5') {
31
- devkit_1.logger.info(`Your project ${schema.name} uses Vite as a bundler.
31
+ devkit_1.logger.info(`Your project ${schema.name} uses Vite as a bundler.
32
32
  Nx will configure Storybook for this project to use Vite as well.`);
33
33
  schema.uiFramework = '@storybook/web-components-vite';
34
34
  }
@@ -117,7 +117,7 @@ exports.configurationGenerator = configurationGenerator;
117
117
  function normalizeSchema(schema) {
118
118
  const defaults = {
119
119
  interactionTests: true,
120
- linter: linter_1.Linter.EsLint,
120
+ linter: eslint_1.Linter.EsLint,
121
121
  js: false,
122
122
  tsConfiguration: true,
123
123
  };
@@ -3,12 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.renameAndMoveOldTsConfig = exports.getViteConfigFilePath = exports.getE2EProjectName = exports.rootFileIsTs = exports.workspaceHasRootProject = exports.projectIsRootProjectInStandaloneWorkspace = exports.addBuildStorybookToCacheableOperations = exports.getTsConfigPath = exports.createProjectStorybookDir = exports.addStorybookToNamedInputs = exports.normalizeSchema = exports.updateLintConfig = exports.configureTsSolutionConfig = exports.configureTsProjectConfig = exports.editTsconfigBaseJson = exports.createStorybookTsconfigFile = exports.addStaticTarget = exports.addAngularStorybookTask = exports.addStorybookTask = void 0;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const executor_options_utils_1 = require("@nx/devkit/src/generators/executor-options-utils");
6
- const linter_1 = require("@nx/linter");
6
+ const eslint_1 = require("@nx/eslint");
7
7
  const path_1 = require("path");
8
8
  const utilities_1 = require("../../../utils/utilities");
9
9
  const versions_1 = require("../../../utils/versions");
10
- const eslint_file_1 = require("@nx/linter/src/generators/utils/eslint-file");
11
- const flat_config_1 = require("@nx/linter/src/utils/flat-config");
10
+ const eslint_file_1 = require("@nx/eslint/src/generators/utils/eslint-file");
11
+ const flat_config_1 = require("@nx/eslint/src/utils/flat-config");
12
12
  const DEFAULT_PORT = 4400;
13
13
  function addStorybookTask(tree, projectName, uiFramework, interactionTests) {
14
14
  if (uiFramework === '@storybook/react-native') {
@@ -314,7 +314,7 @@ exports.updateLintConfig = updateLintConfig;
314
314
  function normalizeSchema(schema) {
315
315
  const defaults = {
316
316
  configureCypress: true,
317
- linter: linter_1.Linter.EsLint,
317
+ linter: eslint_1.Linter.EsLint,
318
318
  js: false,
319
319
  };
320
320
  return {
@@ -1,4 +1,4 @@
1
- import { Linter } from '@nx/linter';
1
+ import { Linter } from '@nx/eslint';
2
2
  import { UiFramework } from '../../utils/models';
3
3
 
4
4
  export interface StorybookConfigureSchema {
@@ -1,5 +1,5 @@
1
1
  import { GeneratorCallback, Tree } from '@nx/devkit';
2
- import { Linter } from '@nx/linter';
2
+ import { Linter } from '@nx/eslint';
3
3
  export interface CypressConfigureSchema {
4
4
  name: string;
5
5
  js?: boolean;
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.deleteNewConfigurationAndCreateNew = exports.createTestUILibNoNgDevkit = void 0;
4
4
  const js_1 = require("@nx/js");
5
- const linter_1 = require("@nx/linter");
5
+ const eslint_1 = require("@nx/eslint");
6
6
  async function createTestUILibNoNgDevkit(appTree, libName) {
7
7
  await (0, js_1.libraryGenerator)(appTree, {
8
- linter: linter_1.Linter.EsLint,
8
+ linter: eslint_1.Linter.EsLint,
9
9
  skipFormat: true,
10
10
  skipTsConfig: false,
11
11
  unitTestRunner: 'none',