@nx/storybook 24.0.0-beta.2 → 24.0.0-beta.4

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.
Files changed (31) hide show
  1. package/dist/src/generators/configuration/configuration.js +14 -32
  2. package/dist/src/generators/configuration/files/v10/project-files/.storybook/main.js__tmpl__ +8 -12
  3. package/dist/src/generators/configuration/files/v10/project-files-ts/.storybook/main.ts__tmpl__ +8 -11
  4. package/dist/src/generators/configuration/files/v9/project-files/.storybook/main.js__tmpl__ +8 -12
  5. package/dist/src/generators/configuration/files/v9/project-files-ts/.storybook/main.ts__tmpl__ +8 -11
  6. package/dist/src/generators/configuration/lib/util-functions.d.ts +1 -3
  7. package/dist/src/generators/configuration/lib/util-functions.js +8 -79
  8. package/dist/src/generators/configuration/schema.d.ts +0 -2
  9. package/dist/src/generators/convert-to-inferred/convert-to-inferred.js +4 -3
  10. package/dist/src/generators/init/init.js +36 -54
  11. package/dist/src/generators/init/schema.d.ts +0 -1
  12. package/dist/src/generators/migrate-10/files/ai-instructions-for-cjs-esm.md +2 -2
  13. package/dist/src/migrations/update-24-0-0/finish-inferred-conversion.md +12 -0
  14. package/dist/src/migrations/update-24-0-0/remove-deprecated-executors.d.ts +6 -0
  15. package/dist/src/migrations/update-24-0-0/remove-deprecated-executors.js +15 -0
  16. package/dist/src/migrations/update-24-0-0/remove-deprecated-executors.md +88 -0
  17. package/dist/src/utils/utilities.d.ts +0 -2
  18. package/dist/src/utils/utilities.js +2 -24
  19. package/dist/src/utils/versions.d.ts +1 -0
  20. package/dist/src/utils/versions.js +2 -1
  21. package/executors.json +1 -12
  22. package/migrations.json +7 -0
  23. package/package.json +8 -8
  24. package/dist/src/executors/build-storybook/build-storybook.impl.d.ts +0 -5
  25. package/dist/src/executors/build-storybook/build-storybook.impl.js +0 -32
  26. package/dist/src/executors/build-storybook/schema.json +0 -114
  27. package/dist/src/executors/storybook/schema.json +0 -119
  28. package/dist/src/executors/storybook/storybook.impl.d.ts +0 -9
  29. package/dist/src/executors/storybook/storybook.impl.js +0 -35
  30. package/dist/src/utils/deprecation.d.ts +0 -5
  31. package/dist/src/utils/deprecation.js +0 -21
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.STORYBOOK_BUILD_EXECUTOR_DEPRECATION_MESSAGE = exports.STORYBOOK_EXECUTOR_DEPRECATION_MESSAGE = void 0;
4
- exports.warnStorybookExecutorDeprecation = warnStorybookExecutorDeprecation;
5
- exports.warnStorybookBuildExecutorDeprecation = warnStorybookBuildExecutorDeprecation;
6
- exports.warnStorybookExecutorGenerating = warnStorybookExecutorGenerating;
7
- const devkit_1 = require("@nx/devkit");
8
- // TODO(v24): Remove the @nx/storybook:storybook and @nx/storybook:build
9
- // executors. The inferred plugin (@nx/storybook/plugin) and the
10
- // convert-to-inferred generator stay supported.
11
- exports.STORYBOOK_EXECUTOR_DEPRECATION_MESSAGE = 'The `@nx/storybook:storybook` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/storybook:convert-to-inferred` to migrate to the `@nx/storybook/plugin` inferred targets. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.';
12
- exports.STORYBOOK_BUILD_EXECUTOR_DEPRECATION_MESSAGE = 'The `@nx/storybook:build` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/storybook:convert-to-inferred` to migrate to the `@nx/storybook/plugin` inferred targets. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.';
13
- function warnStorybookExecutorDeprecation() {
14
- devkit_1.logger.warn(exports.STORYBOOK_EXECUTOR_DEPRECATION_MESSAGE);
15
- }
16
- function warnStorybookBuildExecutorDeprecation() {
17
- devkit_1.logger.warn(exports.STORYBOOK_BUILD_EXECUTOR_DEPRECATION_MESSAGE);
18
- }
19
- function warnStorybookExecutorGenerating() {
20
- devkit_1.logger.warn('Generating targets that use the deprecated `@nx/storybook:storybook` and `@nx/storybook:build` executors. These executors will be removed in Nx v24. Run `nx g @nx/storybook:convert-to-inferred` next to migrate these targets to the `@nx/storybook/plugin` inferred plugin and prevent future generators from emitting executor targets. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.');
21
- }