@nx/react 23.0.0-beta.23 → 23.0.0-beta.25
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/{ast-utils.d.ts → dist/ast-utils.d.ts} +0 -1
- package/dist/babel.d.ts +1 -0
- package/{babel.js → dist/babel.js} +2 -0
- package/{index.d.ts → dist/index.d.ts} +0 -1
- package/dist/internal.d.ts +7 -0
- package/dist/internal.js +26 -0
- package/{mf → dist/mf}/dynamic-federation.d.ts +0 -1
- package/{mf → dist/mf}/index.d.ts +0 -1
- package/{module-federation.d.ts → dist/module-federation.d.ts} +0 -1
- package/dist/plugins/bundle-rollup.d.ts +1 -0
- package/{plugins → dist/plugins}/component-testing/index.d.ts +0 -1
- package/{plugins → dist/plugins}/component-testing/index.js +2 -5
- package/{plugins → dist/plugins}/component-testing/webpack-fallback.d.ts +0 -1
- package/dist/plugins/jest.d.ts +1 -0
- package/{plugins → dist/plugins}/nx-react-webpack-plugin/lib/apply-react-config.d.ts +0 -1
- package/{plugins → dist/plugins}/nx-react-webpack-plugin/nx-react-webpack-plugin.d.ts +0 -1
- package/{plugins → dist/plugins}/storybook/index.d.ts +0 -1
- package/{plugins → dist/plugins}/storybook/index.js +15 -9
- package/{plugins → dist/plugins}/storybook/merge-plugins.d.ts +0 -1
- package/dist/plugins/webpack.d.ts +1 -0
- package/{plugins → dist/plugins}/with-react.d.ts +4 -1
- package/{plugins → dist/plugins}/with-react.js +6 -0
- package/{router-plugin.d.ts → dist/router-plugin.d.ts} +0 -1
- package/{src → dist/src}/executors/module-federation-dev-server/lib/index.d.ts +0 -1
- package/{src → dist/src}/executors/module-federation-dev-server/lib/normalize-options.d.ts +0 -1
- package/{src → dist/src}/executors/module-federation-dev-server/lib/start-remotes.d.ts +0 -1
- package/{src → dist/src}/executors/module-federation-dev-server/module-federation-dev-server.impl.d.ts +0 -1
- package/{src → dist/src}/executors/module-federation-dev-server/module-federation-dev-server.impl.js +7 -9
- package/{src → dist/src}/executors/module-federation-dev-server/schema.d.ts +1 -1
- package/{src → dist/src}/executors/module-federation-ssr-dev-server/lib/index.d.ts +0 -1
- package/{src → dist/src}/executors/module-federation-ssr-dev-server/lib/normalize-options.d.ts +0 -1
- package/{src → dist/src}/executors/module-federation-ssr-dev-server/lib/start-remotes.d.ts +0 -1
- package/{src → dist/src}/executors/module-federation-ssr-dev-server/module-federation-ssr-dev-server.impl.d.ts +0 -1
- package/{src → dist/src}/executors/module-federation-ssr-dev-server/module-federation-ssr-dev-server.impl.js +6 -7
- package/{src → dist/src}/executors/module-federation-ssr-dev-server/schema.d.ts +2 -2
- package/{src → dist/src}/executors/module-federation-static-server/module-federation-static-server.impl.d.ts +1 -2
- package/{src → dist/src}/executors/module-federation-static-server/module-federation-static-server.impl.js +9 -12
- package/{src → dist/src}/generators/_utils/mf-dependencies.d.ts +0 -1
- package/{src → dist/src}/generators/_utils/mf-versions.d.ts +0 -1
- package/{src → dist/src}/generators/_utils/normalize.d.ts +0 -1
- package/{src → dist/src}/generators/application/application.d.ts +0 -1
- package/{src → dist/src}/generators/application/application.js +2 -0
- package/{src → dist/src}/generators/application/lib/add-e2e.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/add-e2e.js +1 -34
- package/{src → dist/src}/generators/application/lib/add-jest.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/add-linting.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/add-linting.js +2 -36
- package/{src → dist/src}/generators/application/lib/add-project.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/add-routing.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/add-routing.js +1 -1
- package/{src → dist/src}/generators/application/lib/bundlers/add-rsbuild.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/bundlers/add-rsbuild.js +4 -37
- package/{src → dist/src}/generators/application/lib/bundlers/add-rspack.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/bundlers/add-vite.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/bundlers/add-vite.js +1 -34
- package/{src → dist/src}/generators/application/lib/bundlers/add-webpack.d.ts +0 -1
- package/dist/src/generators/application/lib/bundlers/add-webpack.js +18 -0
- package/{src → dist/src}/generators/application/lib/create-application-files.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/find-free-port.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/get-app-tests.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/install-common-dependencies.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/install-common-dependencies.js +5 -5
- package/{src → dist/src}/generators/application/lib/normalize-options.d.ts +0 -1
- package/{src/generators/library → dist/src/generators/application}/lib/set-defaults.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/update-jest-config.d.ts +0 -1
- package/{src → dist/src}/generators/component/component.d.ts +0 -1
- package/{src → dist/src}/generators/component/component.js +4 -2
- package/{src → dist/src}/generators/component/lib/get-component-tests.d.ts +0 -1
- package/{src → dist/src}/generators/component/lib/normalize-options.d.ts +0 -1
- package/{src → dist/src}/generators/component-story/component-story.d.ts +0 -1
- package/{src → dist/src}/generators/component-story/component-story.js +2 -0
- package/{src → dist/src}/generators/component-test/component-test.d.ts +0 -1
- package/{src → dist/src}/generators/component-test/component-test.js +2 -0
- package/{src → dist/src}/generators/component-test/schema.d.ts +0 -1
- package/{src → dist/src}/generators/consumer/consumer.d.ts +0 -1
- package/{src → dist/src}/generators/consumer/consumer.js +3 -1
- package/{src → dist/src}/generators/cypress-component-configuration/cypress-component-configuration.d.ts +0 -1
- package/{src → dist/src}/generators/cypress-component-configuration/cypress-component-configuration.js +2 -0
- package/{src → dist/src}/generators/cypress-component-configuration/lib/add-files.d.ts +0 -1
- package/{src → dist/src}/generators/cypress-component-configuration/lib/add-files.js +3 -37
- package/{src → dist/src}/generators/federate-module/federate-module.d.ts +0 -1
- package/{src → dist/src}/generators/federate-module/federate-module.js +2 -0
- package/{src → dist/src}/generators/federate-module/lib/utils.d.ts +0 -1
- package/{src → dist/src}/generators/hook/hook.d.ts +0 -1
- package/{src → dist/src}/generators/hook/hook.js +2 -0
- package/{src → dist/src}/generators/host/host.d.ts +0 -1
- package/{src → dist/src}/generators/host/host.js +3 -1
- package/{src → dist/src}/generators/host/lib/add-module-federation-files.d.ts +0 -1
- package/{src → dist/src}/generators/host/lib/normalize-host-name.d.ts +0 -1
- package/{src → dist/src}/generators/host/lib/setup-ssr-for-host.d.ts +0 -1
- package/{src → dist/src}/generators/host/lib/setup-ssr-for-host.js +1 -1
- package/{src → dist/src}/generators/host/lib/update-module-federation-e2e-project.d.ts +0 -1
- package/{src → dist/src}/generators/host/lib/update-module-federation-tsconfig.d.ts +0 -1
- package/{src → dist/src}/generators/init/init.d.ts +0 -1
- package/{src → dist/src}/generators/init/init.js +3 -1
- package/{src → dist/src}/generators/init/schema.json +1 -1
- package/{src → dist/src}/generators/library/lib/add-linting.d.ts +0 -1
- package/{src → dist/src}/generators/library/lib/add-linting.js +1 -1
- package/{src → dist/src}/generators/library/lib/add-rollup-build-target.d.ts +0 -1
- package/{src → dist/src}/generators/library/lib/add-rollup-build-target.js +1 -1
- package/{src → dist/src}/generators/library/lib/create-files.d.ts +0 -1
- package/{src → dist/src}/generators/library/lib/determine-entry-fields.d.ts +0 -1
- package/{src → dist/src}/generators/library/lib/install-common-dependencies.d.ts +0 -1
- package/{src → dist/src}/generators/library/lib/install-common-dependencies.js +2 -2
- package/{src → dist/src}/generators/library/lib/normalize-options.d.ts +0 -1
- package/{src/generators/application → dist/src/generators/library}/lib/set-defaults.d.ts +0 -1
- package/{src → dist/src}/generators/library/lib/update-app-routes.d.ts +0 -1
- package/{src → dist/src}/generators/library/lib/update-app-routes.js +1 -1
- package/{src → dist/src}/generators/library/library.d.ts +0 -1
- package/{src → dist/src}/generators/library/library.js +3 -1
- package/{src → dist/src}/generators/provider/provider.d.ts +0 -1
- package/{src → dist/src}/generators/provider/provider.js +3 -1
- package/{src → dist/src}/generators/redux/redux.d.ts +0 -1
- package/{src → dist/src}/generators/redux/redux.js +3 -1
- package/{src → dist/src}/generators/remote/lib/add-remote-to-dynamic-host.d.ts +0 -1
- package/{src → dist/src}/generators/remote/lib/setup-package-json-exports-for-remote.d.ts +0 -1
- package/{src → dist/src}/generators/remote/lib/setup-ssr-for-remote.d.ts +0 -1
- package/{src → dist/src}/generators/remote/lib/setup-ssr-for-remote.js +1 -1
- package/{src → dist/src}/generators/remote/lib/setup-tspath-for-remote.d.ts +0 -1
- package/{src → dist/src}/generators/remote/lib/update-host-with-remote.d.ts +0 -1
- package/{src → dist/src}/generators/remote/remote.d.ts +0 -1
- package/{src → dist/src}/generators/remote/remote.js +3 -1
- package/{src → dist/src}/generators/setup-ssr/setup-ssr.d.ts +0 -1
- package/{src → dist/src}/generators/setup-ssr/setup-ssr.js +3 -1
- package/{src → dist/src}/generators/stories/stories.d.ts +0 -1
- package/{src → dist/src}/generators/stories/stories.js +4 -2
- package/{src → dist/src}/generators/storybook-configuration/configuration.d.ts +0 -1
- package/{src → dist/src}/generators/storybook-configuration/configuration.js +3 -1
- package/{src → dist/src}/migrations/update-21-0-0/update-babel-loose.d.ts +0 -1
- package/{src → dist/src}/migrations/update-22-0-0/add-svgr-to-webpack-config.d.ts +0 -1
- package/dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.d.ts +9 -0
- package/dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.js +136 -0
- package/dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.md +25 -0
- package/{src → dist/src}/migrations/update-23-0-0/remove-nx-react-webpack-plugin-import.d.ts +0 -1
- package/dist/src/migrations/update-23-0-0/rewrite-internal-subpath-imports.d.ts +3 -0
- package/dist/src/migrations/update-23-0-0/rewrite-internal-subpath-imports.js +215 -0
- package/{src → dist/src}/module-federation/ast-utils.d.ts +0 -1
- package/{src → dist/src}/plugins/router-plugin.d.ts +0 -1
- package/{src → dist/src}/rules/update-module-federation-project.d.ts +0 -1
- package/{src → dist/src}/utils/add-mf-env-to-inputs.d.ts +0 -1
- package/dist/src/utils/assert-supported-react-version.d.ts +2 -0
- package/dist/src/utils/assert-supported-react-version.js +8 -0
- package/{src → dist/src}/utils/assertion.d.ts +0 -1
- package/{src → dist/src}/utils/ast-utils.d.ts +0 -1
- package/{src → dist/src}/utils/component-props.d.ts +0 -1
- package/{src → dist/src}/utils/create-ts-config.d.ts +0 -1
- package/{src → dist/src}/utils/ct-utils.d.ts +0 -1
- package/{src → dist/src}/utils/ct-utils.js +2 -35
- package/{src → dist/src}/utils/dependencies.d.ts +0 -1
- package/dist/src/utils/deprecation.d.ts +3 -0
- package/dist/src/utils/deprecation.js +33 -0
- package/{src → dist/src}/utils/framework.d.ts +0 -1
- package/{src → dist/src}/utils/get-in-source-vitest-tests-template.d.ts +0 -1
- package/{src → dist/src}/utils/has-rsbuild-plugin.d.ts +0 -1
- package/dist/src/utils/has-rsbuild-plugin.js +12 -0
- package/{src → dist/src}/utils/has-rspack-plugin.d.ts +0 -1
- package/{src → dist/src}/utils/has-vite-plugin.d.ts +0 -1
- package/{src → dist/src}/utils/has-webpack-plugin.d.ts +0 -1
- package/{src → dist/src}/utils/jest-utils.d.ts +0 -1
- package/{src → dist/src}/utils/lint.d.ts +0 -1
- package/{src → dist/src}/utils/maybe-js.d.ts +0 -1
- package/{src → dist/src}/utils/module-federation-deprecation.d.ts +0 -1
- package/{src → dist/src}/utils/normalize-remote.d.ts +0 -1
- package/{src → dist/src}/utils/testing-generators.d.ts +0 -1
- package/{src → dist/src}/utils/version-utils.d.ts +1 -1
- package/{src → dist/src}/utils/version-utils.js +3 -0
- package/{src → dist/src}/utils/versions.d.ts +3 -3
- package/{src → dist/src}/utils/versions.js +8 -4
- package/{tailwind.d.ts → dist/tailwind.d.ts} +0 -1
- package/dist/typings/cssmodule.d.ts +19 -0
- package/dist/typings/image.d.ts +48 -0
- package/dist/typings/style.d.ts +1 -0
- package/dist/typings/styled-jsx.d.ts +8 -0
- package/{webpack-plugin.d.ts → dist/webpack-plugin.d.ts} +0 -1
- package/executors.json +6 -6
- package/generators.json +34 -34
- package/migrations.json +40 -86
- package/package.json +143 -139
- package/ast-utils.d.ts.map +0 -1
- package/babel.d.ts +0 -25
- package/babel.d.ts.map +0 -1
- package/index.d.ts.map +0 -1
- package/mf/dynamic-federation.d.ts.map +0 -1
- package/mf/index.d.ts.map +0 -1
- package/module-federation.d.ts.map +0 -1
- package/plugins/bundle-rollup.d.ts +0 -2
- package/plugins/bundle-rollup.d.ts.map +0 -1
- package/plugins/component-testing/index.d.ts.map +0 -1
- package/plugins/component-testing/webpack-fallback.d.ts.map +0 -1
- package/plugins/jest.d.ts +0 -2
- package/plugins/jest.d.ts.map +0 -1
- package/plugins/nx-react-webpack-plugin/lib/apply-react-config.d.ts.map +0 -1
- package/plugins/nx-react-webpack-plugin/nx-react-webpack-plugin.d.ts.map +0 -1
- package/plugins/storybook/index.d.ts.map +0 -1
- package/plugins/storybook/merge-plugins.d.ts.map +0 -1
- package/plugins/webpack.d.ts +0 -2
- package/plugins/webpack.d.ts.map +0 -1
- package/plugins/with-react.d.ts.map +0 -1
- package/router-plugin.d.ts.map +0 -1
- package/src/executors/module-federation-dev-server/lib/index.d.ts.map +0 -1
- package/src/executors/module-federation-dev-server/lib/normalize-options.d.ts.map +0 -1
- package/src/executors/module-federation-dev-server/lib/start-remotes.d.ts.map +0 -1
- package/src/executors/module-federation-dev-server/module-federation-dev-server.impl.d.ts.map +0 -1
- package/src/executors/module-federation-ssr-dev-server/lib/index.d.ts.map +0 -1
- package/src/executors/module-federation-ssr-dev-server/lib/normalize-options.d.ts.map +0 -1
- package/src/executors/module-federation-ssr-dev-server/lib/start-remotes.d.ts.map +0 -1
- package/src/executors/module-federation-ssr-dev-server/module-federation-ssr-dev-server.impl.d.ts.map +0 -1
- package/src/executors/module-federation-static-server/module-federation-static-server.impl.d.ts.map +0 -1
- package/src/generators/_utils/mf-dependencies.d.ts.map +0 -1
- package/src/generators/_utils/mf-versions.d.ts.map +0 -1
- package/src/generators/_utils/normalize.d.ts.map +0 -1
- package/src/generators/application/application.d.ts.map +0 -1
- package/src/generators/application/lib/add-e2e.d.ts.map +0 -1
- package/src/generators/application/lib/add-jest.d.ts.map +0 -1
- package/src/generators/application/lib/add-linting.d.ts.map +0 -1
- package/src/generators/application/lib/add-project.d.ts.map +0 -1
- package/src/generators/application/lib/add-routing.d.ts.map +0 -1
- package/src/generators/application/lib/bundlers/add-rsbuild.d.ts.map +0 -1
- package/src/generators/application/lib/bundlers/add-rspack.d.ts.map +0 -1
- package/src/generators/application/lib/bundlers/add-vite.d.ts.map +0 -1
- package/src/generators/application/lib/bundlers/add-webpack.d.ts.map +0 -1
- package/src/generators/application/lib/bundlers/add-webpack.js +0 -51
- package/src/generators/application/lib/create-application-files.d.ts.map +0 -1
- package/src/generators/application/lib/find-free-port.d.ts.map +0 -1
- package/src/generators/application/lib/get-app-tests.d.ts.map +0 -1
- package/src/generators/application/lib/install-common-dependencies.d.ts.map +0 -1
- package/src/generators/application/lib/normalize-options.d.ts.map +0 -1
- package/src/generators/application/lib/set-defaults.d.ts.map +0 -1
- package/src/generators/application/lib/update-jest-config.d.ts.map +0 -1
- package/src/generators/component/component.d.ts.map +0 -1
- package/src/generators/component/lib/get-component-tests.d.ts.map +0 -1
- package/src/generators/component/lib/normalize-options.d.ts.map +0 -1
- package/src/generators/component-story/component-story.d.ts.map +0 -1
- package/src/generators/component-test/component-test.d.ts.map +0 -1
- package/src/generators/component-test/schema.d.ts.map +0 -1
- package/src/generators/consumer/consumer.d.ts.map +0 -1
- package/src/generators/cypress-component-configuration/cypress-component-configuration.d.ts.map +0 -1
- package/src/generators/cypress-component-configuration/lib/add-files.d.ts.map +0 -1
- package/src/generators/federate-module/federate-module.d.ts.map +0 -1
- package/src/generators/federate-module/lib/utils.d.ts.map +0 -1
- package/src/generators/hook/hook.d.ts.map +0 -1
- package/src/generators/host/host.d.ts.map +0 -1
- package/src/generators/host/lib/add-module-federation-files.d.ts.map +0 -1
- package/src/generators/host/lib/normalize-host-name.d.ts.map +0 -1
- package/src/generators/host/lib/setup-ssr-for-host.d.ts.map +0 -1
- package/src/generators/host/lib/update-module-federation-e2e-project.d.ts.map +0 -1
- package/src/generators/host/lib/update-module-federation-tsconfig.d.ts.map +0 -1
- package/src/generators/init/init.d.ts.map +0 -1
- package/src/generators/library/lib/add-linting.d.ts.map +0 -1
- package/src/generators/library/lib/add-rollup-build-target.d.ts.map +0 -1
- package/src/generators/library/lib/create-files.d.ts.map +0 -1
- package/src/generators/library/lib/determine-entry-fields.d.ts.map +0 -1
- package/src/generators/library/lib/install-common-dependencies.d.ts.map +0 -1
- package/src/generators/library/lib/normalize-options.d.ts.map +0 -1
- package/src/generators/library/lib/set-defaults.d.ts.map +0 -1
- package/src/generators/library/lib/update-app-routes.d.ts.map +0 -1
- package/src/generators/library/library.d.ts.map +0 -1
- package/src/generators/provider/provider.d.ts.map +0 -1
- package/src/generators/redux/redux.d.ts.map +0 -1
- package/src/generators/remote/lib/add-remote-to-dynamic-host.d.ts.map +0 -1
- package/src/generators/remote/lib/setup-package-json-exports-for-remote.d.ts.map +0 -1
- package/src/generators/remote/lib/setup-ssr-for-remote.d.ts.map +0 -1
- package/src/generators/remote/lib/setup-tspath-for-remote.d.ts.map +0 -1
- package/src/generators/remote/lib/update-host-with-remote.d.ts.map +0 -1
- package/src/generators/remote/remote.d.ts.map +0 -1
- package/src/generators/setup-ssr/setup-ssr.d.ts.map +0 -1
- package/src/generators/stories/stories.d.ts.map +0 -1
- package/src/generators/storybook-configuration/configuration.d.ts.map +0 -1
- package/src/migrations/update-18-0-0/add-mf-env-var-to-target-defaults.d.ts +0 -3
- package/src/migrations/update-18-0-0/add-mf-env-var-to-target-defaults.d.ts.map +0 -1
- package/src/migrations/update-18-0-0/add-mf-env-var-to-target-defaults.js +0 -31
- package/src/migrations/update-18-0-0/add-mf-env-var-to-target-defaults.md +0 -36
- package/src/migrations/update-20-2-0/migrate-mf-imports-to-new-package.d.ts +0 -3
- package/src/migrations/update-20-2-0/migrate-mf-imports-to-new-package.d.ts.map +0 -1
- package/src/migrations/update-20-2-0/migrate-mf-imports-to-new-package.js +0 -66
- package/src/migrations/update-20-2-0/migrate-mf-imports-to-new-package.md +0 -27
- package/src/migrations/update-20-2-0/migrate-with-mf-import-to-new-package.d.ts +0 -3
- package/src/migrations/update-20-2-0/migrate-with-mf-import-to-new-package.d.ts.map +0 -1
- package/src/migrations/update-20-2-0/migrate-with-mf-import-to-new-package.js +0 -41
- package/src/migrations/update-20-2-0/migrate-with-mf-import-to-new-package.md +0 -25
- package/src/migrations/update-20-3-0/ensure-nx-module-federation-package.d.ts +0 -3
- package/src/migrations/update-20-3-0/ensure-nx-module-federation-package.d.ts.map +0 -1
- package/src/migrations/update-20-3-0/ensure-nx-module-federation-package.js +0 -18
- package/src/migrations/update-20-3-0/ensure-nx-module-federation-package.md +0 -23
- package/src/migrations/update-21-0-0/update-babel-loose.d.ts.map +0 -1
- package/src/migrations/update-22-0-0/add-svgr-to-webpack-config.d.ts.map +0 -1
- package/src/migrations/update-23-0-0/remove-nx-react-webpack-plugin-import.d.ts.map +0 -1
- package/src/module-federation/ast-utils.d.ts.map +0 -1
- package/src/plugins/router-plugin.d.ts.map +0 -1
- package/src/rules/update-module-federation-project.d.ts.map +0 -1
- package/src/utils/add-mf-env-to-inputs.d.ts.map +0 -1
- package/src/utils/assertion.d.ts.map +0 -1
- package/src/utils/ast-utils.d.ts.map +0 -1
- package/src/utils/component-props.d.ts.map +0 -1
- package/src/utils/create-ts-config.d.ts.map +0 -1
- package/src/utils/ct-utils.d.ts.map +0 -1
- package/src/utils/dependencies.d.ts.map +0 -1
- package/src/utils/framework.d.ts.map +0 -1
- package/src/utils/get-in-source-vitest-tests-template.d.ts.map +0 -1
- package/src/utils/has-rsbuild-plugin.d.ts.map +0 -1
- package/src/utils/has-rsbuild-plugin.js +0 -43
- package/src/utils/has-rspack-plugin.d.ts.map +0 -1
- package/src/utils/has-vite-plugin.d.ts.map +0 -1
- package/src/utils/has-webpack-plugin.d.ts.map +0 -1
- package/src/utils/jest-utils.d.ts.map +0 -1
- package/src/utils/lint.d.ts.map +0 -1
- package/src/utils/maybe-js.d.ts.map +0 -1
- package/src/utils/module-federation-deprecation.d.ts.map +0 -1
- package/src/utils/normalize-remote.d.ts.map +0 -1
- package/src/utils/testing-generators.d.ts.map +0 -1
- package/src/utils/version-utils.d.ts.map +0 -1
- package/src/utils/versions.d.ts.map +0 -1
- package/tailwind.d.ts.map +0 -1
- package/webpack-plugin.d.ts.map +0 -1
- /package/{LICENSE → dist/LICENSE} +0 -0
- /package/{ast-utils.js → dist/ast-utils.js} +0 -0
- /package/{index.js → dist/index.js} +0 -0
- /package/{mf → dist/mf}/dynamic-federation.js +0 -0
- /package/{mf → dist/mf}/index.js +0 -0
- /package/{module-federation.js → dist/module-federation.js} +0 -0
- /package/{plugins → dist/plugins}/bundle-rollup.js +0 -0
- /package/{plugins → dist/plugins}/component-testing/webpack-fallback.js +0 -0
- /package/{plugins → dist/plugins}/jest.js +0 -0
- /package/{plugins → dist/plugins}/nx-react-webpack-plugin/lib/apply-react-config.js +0 -0
- /package/{plugins → dist/plugins}/nx-react-webpack-plugin/nx-react-webpack-plugin.js +0 -0
- /package/{plugins → dist/plugins}/storybook/merge-plugins.js +0 -0
- /package/{plugins → dist/plugins}/webpack.js +0 -0
- /package/{router-plugin.js → dist/router-plugin.js} +0 -0
- /package/{src → dist/src}/executors/module-federation-dev-server/lib/index.js +0 -0
- /package/{src → dist/src}/executors/module-federation-dev-server/lib/normalize-options.js +0 -0
- /package/{src → dist/src}/executors/module-federation-dev-server/lib/start-remotes.js +0 -0
- /package/{src → dist/src}/executors/module-federation-dev-server/schema.json +0 -0
- /package/{src → dist/src}/executors/module-federation-ssr-dev-server/lib/index.js +0 -0
- /package/{src → dist/src}/executors/module-federation-ssr-dev-server/lib/normalize-options.js +0 -0
- /package/{src → dist/src}/executors/module-federation-ssr-dev-server/lib/start-remotes.js +0 -0
- /package/{src → dist/src}/executors/module-federation-ssr-dev-server/schema.json +0 -0
- /package/{src → dist/src}/executors/module-federation-static-server/schema.d.ts +0 -0
- /package/{src → dist/src}/executors/module-federation-static-server/schema.json +0 -0
- /package/{src → dist/src}/generators/_utils/mf-dependencies.js +0 -0
- /package/{src → dist/src}/generators/_utils/mf-versions.js +0 -0
- /package/{src → dist/src}/generators/_utils/normalize.js +0 -0
- /package/{src → dist/src}/generators/application/files/base-rsbuild/src/app/__fileName__.spec.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/base-rsbuild/src/assets/.gitkeep +0 -0
- /package/{src → dist/src}/generators/application/files/base-rsbuild/src/favicon.ico +0 -0
- /package/{src → dist/src}/generators/application/files/base-rsbuild/src/index.html +0 -0
- /package/{src → dist/src}/generators/application/files/base-rsbuild/src/main.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/base-rsbuild/tsconfig.app.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/base-rspack/rspack.config.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/base-rspack/src/app/__fileName__.spec.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/base-rspack/src/assets/.gitkeep +0 -0
- /package/{src → dist/src}/generators/application/files/base-rspack/src/favicon.ico +0 -0
- /package/{src → dist/src}/generators/application/files/base-rspack/src/index.html +0 -0
- /package/{src → dist/src}/generators/application/files/base-rspack/src/main.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/base-rspack/tsconfig.app.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/base-vite/index.html__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/base-vite/public/favicon.ico +0 -0
- /package/{src → dist/src}/generators/application/files/base-vite/src/app/__fileName__.spec.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/base-vite/src/assets/.gitkeep +0 -0
- /package/{src → dist/src}/generators/application/files/base-vite/src/environments/environment.prod.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/base-vite/src/environments/environment.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/base-vite/src/main.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/base-vite/tsconfig.app.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/base-webpack/src/app/__fileName__.spec.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/base-webpack/src/assets/.gitkeep +0 -0
- /package/{src → dist/src}/generators/application/files/base-webpack/src/favicon.ico +0 -0
- /package/{src → dist/src}/generators/application/files/base-webpack/src/index.html +0 -0
- /package/{src → dist/src}/generators/application/files/base-webpack/src/main.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/base-webpack/tsconfig.app.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/base-webpack/webpack.config.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/nx-welcome/claimed/src/app/nx-welcome.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/nx-welcome/not-configured/src/app/nx-welcome.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/nx-welcome/unclaimed/src/app/nx-welcome.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/react-router-ssr/common/app/app-nav.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/react-router-ssr/common/app/entry.client.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/react-router-ssr/common/app/entry.server.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/react-router-ssr/common/app/root.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/react-router-ssr/common/app/routes/about.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/react-router-ssr/common/app/routes.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/react-router-ssr/common/public/favicon.ico +0 -0
- /package/{src → dist/src}/generators/application/files/react-router-ssr/common/react-router.config.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/react-router-ssr/common/tests/routes/_index.spec.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/react-router-ssr/common/tsconfig.app.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/react-router-ssr/common/tsconfig.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/react-router-ssr/non-root/.gitignore__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/react-router-ssr/non-root/package.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/react-router-ssr/nx-welcome/claimed/app/nx-welcome.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/react-router-ssr/nx-welcome/not-configured/app/nx-welcome.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/react-router-ssr/nx-welcome/unclaimed/app/nx-welcome.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/react-router-ssr/ts-solution/package.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/react-router-ssr/ts-solution/tsconfig.app.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/style-css-module/src/app/__fileName__.module.__style__ +0 -0
- /package/{src → dist/src}/generators/application/files/style-css-module/src/app/__fileName__.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/style-css-module/src/styles.__style__ +0 -0
- /package/{src → dist/src}/generators/application/files/style-global-css/src/app/__fileName__.__style__ +0 -0
- /package/{src → dist/src}/generators/application/files/style-global-css/src/app/__fileName__.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/style-global-css/src/styles.__style__ +0 -0
- /package/{src → dist/src}/generators/application/files/style-none/src/app/__fileName__.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/lib/add-jest.js +0 -0
- /package/{src → dist/src}/generators/application/lib/add-project.js +0 -0
- /package/{src → dist/src}/generators/application/lib/bundlers/add-rspack.js +0 -0
- /package/{src → dist/src}/generators/application/lib/create-application-files.js +0 -0
- /package/{src → dist/src}/generators/application/lib/find-free-port.js +0 -0
- /package/{src → dist/src}/generators/application/lib/get-app-tests.js +0 -0
- /package/{src → dist/src}/generators/application/lib/normalize-options.js +0 -0
- /package/{src → dist/src}/generators/application/lib/set-defaults.js +0 -0
- /package/{src → dist/src}/generators/application/lib/update-jest-config.js +0 -0
- /package/{src → dist/src}/generators/application/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/application/schema.json +0 -0
- /package/{src → dist/src}/generators/component/files/__fileName__.__ext__ +0 -0
- /package/{src → dist/src}/generators/component/files/__fileName__.__style__ +0 -0
- /package/{src → dist/src}/generators/component/files/__fileName__.module.__style__ +0 -0
- /package/{src → dist/src}/generators/component/files/__fileName__.spec.__ext__ +0 -0
- /package/{src → dist/src}/generators/component/lib/get-component-tests.js +0 -0
- /package/{src → dist/src}/generators/component/lib/normalize-options.js +0 -0
- /package/{src → dist/src}/generators/component/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/component/schema.json +0 -0
- /package/{src → dist/src}/generators/component-story/files/jsx/__componentFileName__.stories.jsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/component-story/files/tsx/__componentFileName__.stories.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/component-story/schema.json +0 -0
- /package/{src → dist/src}/generators/component-test/files/__fileName__.cy__ext__ +0 -0
- /package/{src → dist/src}/generators/component-test/schema.js +0 -0
- /package/{src → dist/src}/generators/component-test/schema.json +0 -0
- /package/{src → dist/src}/generators/consumer/files/_common/src/App.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/consumer/files/_common/src/bootstrap.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/consumer/files/_common/src/index.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/consumer/files/_common/src/mf.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/consumer/files/_common/tsconfig.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/consumer/files/rsbuild/index.html__tmpl__ +0 -0
- /package/{src → dist/src}/generators/consumer/files/rsbuild/package.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/consumer/files/rsbuild/rsbuild.config.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/consumer/files/rspack/index.html__tmpl__ +0 -0
- /package/{src → dist/src}/generators/consumer/files/rspack/package.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/consumer/files/rspack/rspack.config.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/consumer/files/vite/index.html__tmpl__ +0 -0
- /package/{src → dist/src}/generators/consumer/files/vite/package.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/consumer/files/vite/vite.config.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/consumer/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/consumer/schema.json +0 -0
- /package/{src → dist/src}/generators/cypress-component-configuration/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/cypress-component-configuration/schema.json +0 -0
- /package/{src → dist/src}/generators/federate-module/lib/utils.js +0 -0
- /package/{src → dist/src}/generators/federate-module/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/federate-module/schema.json +0 -0
- /package/{src → dist/src}/generators/hook/files/__fileName__.__ext__ +0 -0
- /package/{src → dist/src}/generators/hook/files/__fileName__.spec.__specExt__ +0 -0
- /package/{src → dist/src}/generators/hook/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/hook/schema.json +0 -0
- /package/{src → dist/src}/generators/host/files/common/src/app/__fileName__.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/common/src/main.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/common/tsconfig.lint.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/common-ts/src/app/__fileName__.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/common-ts/src/main.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/rspack-common/src/app/__fileName__.jsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/rspack-common/src/main.jsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/rspack-common/tsconfig.lint.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/rspack-module-federation/module-federation.config.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/rspack-module-federation/rspack.config.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/rspack-module-federation/rspack.config.prod.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/rspack-module-federation-ssr/module-federation.server.config.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/rspack-module-federation-ssr/rspack.config.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/rspack-module-federation-ssr/server.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/rspack-module-federation-ssr/src/main.server.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/rspack-module-federation-ssr/tsconfig.server.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/rspack-module-federation-ssr-ts/module-federation.server.config.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/rspack-module-federation-ssr-ts/rspack.config.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/rspack-module-federation-ssr-ts/server.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/rspack-module-federation-ssr-ts/src/main.server.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/rspack-module-federation-ssr-ts/tsconfig.server.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/rspack-module-federation-ts/module-federation.config.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/rspack-module-federation-ts/rspack.config.prod.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/rspack-module-federation-ts/rspack.config.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/webpack-module-federation/module-federation.config.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/webpack-module-federation/webpack.config.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/webpack-module-federation/webpack.config.prod.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/webpack-module-federation-ssr/module-federation.server.config.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/webpack-module-federation-ssr/server.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/webpack-module-federation-ssr/tsconfig.server.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/webpack-module-federation-ssr/webpack.server.config.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/webpack-module-federation-ssr-ts/module-federation.server.config.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/webpack-module-federation-ssr-ts/server.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/webpack-module-federation-ssr-ts/tsconfig.server.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/webpack-module-federation-ssr-ts/webpack.server.config.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/webpack-module-federation-ts/module-federation.config.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/webpack-module-federation-ts/webpack.config.prod.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/webpack-module-federation-ts/webpack.config.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/lib/add-module-federation-files.js +0 -0
- /package/{src → dist/src}/generators/host/lib/normalize-host-name.js +0 -0
- /package/{src → dist/src}/generators/host/lib/update-module-federation-e2e-project.js +0 -0
- /package/{src → dist/src}/generators/host/lib/update-module-federation-tsconfig.js +0 -0
- /package/{src → dist/src}/generators/host/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/host/schema.json +0 -0
- /package/{src → dist/src}/generators/init/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/library/files/common/README.md +0 -0
- /package/{src → dist/src}/generators/library/files/common/src/index.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/library/files/common/tsconfig.lib.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/library/files/vite/README.md +0 -0
- /package/{src → dist/src}/generators/library/files/vite/tsconfig.lib.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/library/lib/create-files.js +0 -0
- /package/{src → dist/src}/generators/library/lib/determine-entry-fields.js +0 -0
- /package/{src → dist/src}/generators/library/lib/normalize-options.js +0 -0
- /package/{src → dist/src}/generators/library/lib/set-defaults.js +0 -0
- /package/{src → dist/src}/generators/library/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/library/schema.json +0 -0
- /package/{src → dist/src}/generators/provider/files/_common/src/__componentName__.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/provider/files/_common/src/bootstrap.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/provider/files/_common/src/index.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/provider/files/_common/tsconfig.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/provider/files/rsbuild/index.html__tmpl__ +0 -0
- /package/{src → dist/src}/generators/provider/files/rsbuild/package.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/provider/files/rsbuild/rsbuild.config.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/provider/files/rspack/index.html__tmpl__ +0 -0
- /package/{src → dist/src}/generators/provider/files/rspack/package.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/provider/files/rspack/rspack.config.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/provider/files/vite/index.html__tmpl__ +0 -0
- /package/{src → dist/src}/generators/provider/files/vite/package.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/provider/files/vite/vite.config.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/provider/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/provider/schema.json +0 -0
- /package/{src → dist/src}/generators/redux/files/js/__fileName__.__ext__ +0 -0
- /package/{src → dist/src}/generators/redux/files/js/__fileName__.spec.__ext__ +0 -0
- /package/{src → dist/src}/generators/redux/files/ts/__fileName__.__ext__ +0 -0
- /package/{src → dist/src}/generators/redux/files/ts/__fileName__.spec.__ext__ +0 -0
- /package/{src → dist/src}/generators/redux/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/redux/schema.json +0 -0
- /package/{src → dist/src}/generators/remote/files/common/src/main.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/common/src/remote-entry.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/common-ts/src/main.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/common-ts/src/remote-entry.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/rspack-common/src/main.jsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/rspack-common/src/remote-entry.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/rspack-module-federation/module-federation.config.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/rspack-module-federation/rspack.config.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/rspack-module-federation/rspack.config.prod.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/rspack-module-federation-ssr/module-federation.server.config.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/rspack-module-federation-ssr/rspack.config.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/rspack-module-federation-ssr/server.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/rspack-module-federation-ssr/src/main.server.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/rspack-module-federation-ssr-ts/module-federation.server.config.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/rspack-module-federation-ssr-ts/rspack.config.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/rspack-module-federation-ssr-ts/server.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/rspack-module-federation-ssr-ts/src/main.server.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/rspack-module-federation-ssr-ts/tsconfig.lint.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/rspack-module-federation-ts/module-federation.config.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/rspack-module-federation-ts/rspack.config.prod.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/rspack-module-federation-ts/rspack.config.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/rspack-module-federation-ts/tsconfig.lint.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/webpack-module-federation/module-federation.config.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/webpack-module-federation/webpack.config.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/webpack-module-federation/webpack.config.prod.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/webpack-module-federation-ssr/module-federation.server.config.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/webpack-module-federation-ssr/server.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/webpack-module-federation-ssr/webpack.server.config.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/webpack-module-federation-ssr-ts/module-federation.server.config.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/webpack-module-federation-ssr-ts/server.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/webpack-module-federation-ssr-ts/tsconfig.lint.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/webpack-module-federation-ssr-ts/webpack.server.config.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/webpack-module-federation-ts/module-federation.config.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/webpack-module-federation-ts/tsconfig.lint.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/webpack-module-federation-ts/webpack.config.prod.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/webpack-module-federation-ts/webpack.config.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/lib/add-remote-to-dynamic-host.js +0 -0
- /package/{src → dist/src}/generators/remote/lib/setup-package-json-exports-for-remote.js +0 -0
- /package/{src → dist/src}/generators/remote/lib/setup-tspath-for-remote.js +0 -0
- /package/{src → dist/src}/generators/remote/lib/update-host-with-remote.js +0 -0
- /package/{src → dist/src}/generators/remote/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/remote/schema.json +0 -0
- /package/{src → dist/src}/generators/setup-ssr/files/server.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/setup-ssr/files/src/main.server.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/setup-ssr/files/tsconfig.server.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/setup-ssr/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/setup-ssr/schema.json +0 -0
- /package/{src → dist/src}/generators/stories/schema.json +0 -0
- /package/{src → dist/src}/generators/storybook-configuration/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/storybook-configuration/schema.json +0 -0
- /package/{src → dist/src}/migrations/update-21-0-0/update-babel-loose.js +0 -0
- /package/{src → dist/src}/migrations/update-21-0-0/update-babel-loose.md +0 -0
- /package/{src → dist/src}/migrations/update-22-0-0/add-svgr-to-webpack-config.js +0 -0
- /package/{src → dist/src}/migrations/update-23-0-0/remove-nx-react-webpack-plugin-import.js +0 -0
- /package/{src → dist/src}/migrations/update-23-0-0/remove-nx-react-webpack-plugin-import.md +0 -0
- /package/{src → dist/src}/module-federation/ast-utils.js +0 -0
- /package/{src → dist/src}/plugins/router-plugin.js +0 -0
- /package/{src → dist/src}/rules/update-module-federation-project.js +0 -0
- /package/{src → dist/src}/utils/add-mf-env-to-inputs.js +0 -0
- /package/{src → dist/src}/utils/assertion.js +0 -0
- /package/{src → dist/src}/utils/ast-utils.js +0 -0
- /package/{src → dist/src}/utils/component-props.js +0 -0
- /package/{src → dist/src}/utils/create-ts-config.js +0 -0
- /package/{src → dist/src}/utils/dependencies.js +0 -0
- /package/{src → dist/src}/utils/framework.js +0 -0
- /package/{src → dist/src}/utils/get-in-source-vitest-tests-template.js +0 -0
- /package/{src → dist/src}/utils/has-rspack-plugin.js +0 -0
- /package/{src → dist/src}/utils/has-vite-plugin.js +0 -0
- /package/{src → dist/src}/utils/has-webpack-plugin.js +0 -0
- /package/{src → dist/src}/utils/jest-utils.js +0 -0
- /package/{src → dist/src}/utils/lint.js +0 -0
- /package/{src → dist/src}/utils/maybe-js.js +0 -0
- /package/{src → dist/src}/utils/module-federation-deprecation.js +0 -0
- /package/{src → dist/src}/utils/normalize-remote.js +0 -0
- /package/{src → dist/src}/utils/testing-generators.js +0 -0
- /package/{tailwind.js → dist/tailwind.js} +0 -0
- /package/{webpack-plugin.js → dist/webpack-plugin.js} +0 -0
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = rewriteInternalSubpathImports;
|
|
4
|
+
exports.rewriteSubpathImports = rewriteSubpathImports;
|
|
5
|
+
const devkit_1 = require("@nx/devkit");
|
|
6
|
+
const TS_EXTENSIONS = ['.ts', '.tsx', '.cts', '.mts'];
|
|
7
|
+
const FROM_PREFIX = '@nx/react/src/';
|
|
8
|
+
const TO_PUBLIC = '@nx/react';
|
|
9
|
+
const TO_INTERNAL = '@nx/react/internal';
|
|
10
|
+
// Symbols exported from `@nx/react`'s public entry (packages/react/index.ts).
|
|
11
|
+
// A named import/export of one of these from `@nx/react/src/*` is routed to
|
|
12
|
+
// the public `@nx/react` entry; everything else goes to `@nx/react/internal`.
|
|
13
|
+
const PUBLIC_SYMBOLS = new Set([
|
|
14
|
+
'SupportedStyles',
|
|
15
|
+
'WithReactOptions',
|
|
16
|
+
'applicationGenerator',
|
|
17
|
+
'assertValidStyle',
|
|
18
|
+
'componentGenerator',
|
|
19
|
+
'componentStoryGenerator',
|
|
20
|
+
'componentTestGenerator',
|
|
21
|
+
'cypressComponentConfigGenerator',
|
|
22
|
+
'extendReactEslintJson',
|
|
23
|
+
'extraEslintDependencies',
|
|
24
|
+
'hookGenerator',
|
|
25
|
+
'hostGenerator',
|
|
26
|
+
'libraryGenerator',
|
|
27
|
+
'reactDomVersion',
|
|
28
|
+
'reactInitGenerator',
|
|
29
|
+
'reactVersion',
|
|
30
|
+
'reduxGenerator',
|
|
31
|
+
'remoteGenerator',
|
|
32
|
+
'storiesGenerator',
|
|
33
|
+
'storybookConfigurationGenerator',
|
|
34
|
+
'withReact',
|
|
35
|
+
]);
|
|
36
|
+
// Methods on `jest` and `vi` that take a module specifier as their first arg.
|
|
37
|
+
const MOCK_HELPER_METHODS = new Set([
|
|
38
|
+
'mock',
|
|
39
|
+
'unmock',
|
|
40
|
+
'doMock',
|
|
41
|
+
'dontMock',
|
|
42
|
+
'requireActual',
|
|
43
|
+
'requireMock',
|
|
44
|
+
'importActual',
|
|
45
|
+
'importMock',
|
|
46
|
+
]);
|
|
47
|
+
let ts;
|
|
48
|
+
async function rewriteInternalSubpathImports(tree) {
|
|
49
|
+
let touchedCount = 0;
|
|
50
|
+
(0, devkit_1.visitNotIgnoredFiles)(tree, '.', (filePath) => {
|
|
51
|
+
if (!TS_EXTENSIONS.some((ext) => filePath.endsWith(ext))) {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
const original = tree.read(filePath, 'utf-8');
|
|
55
|
+
if (!original || !original.includes(FROM_PREFIX)) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
const updated = rewriteSubpathImports(original);
|
|
59
|
+
if (updated !== original) {
|
|
60
|
+
tree.write(filePath, updated);
|
|
61
|
+
touchedCount += 1;
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
if (touchedCount > 0) {
|
|
65
|
+
devkit_1.logger.info(`Rewrote @nx/react/src/* imports in ${touchedCount} file(s) ` +
|
|
66
|
+
`(public symbols to @nx/react, internals to @nx/react/internal).`);
|
|
67
|
+
}
|
|
68
|
+
await (0, devkit_1.formatFiles)(tree);
|
|
69
|
+
}
|
|
70
|
+
function rewriteSubpathImports(source) {
|
|
71
|
+
ts ??= (0, devkit_1.ensurePackage)('typescript', '*');
|
|
72
|
+
const sourceFile = ts.createSourceFile('tmp.ts', source, ts.ScriptTarget.Latest,
|
|
73
|
+
/* setParentNodes */ true, ts.ScriptKind.TSX);
|
|
74
|
+
const changes = [];
|
|
75
|
+
for (const stmt of sourceFile.statements) {
|
|
76
|
+
if (ts.isImportDeclaration(stmt)) {
|
|
77
|
+
collectImportRewrite(sourceFile, stmt, changes);
|
|
78
|
+
}
|
|
79
|
+
else if (ts.isExportDeclaration(stmt)) {
|
|
80
|
+
collectExportRewrite(sourceFile, stmt, changes);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
collectCallExpressionRewrites(sourceFile, changes);
|
|
84
|
+
return changes.length > 0 ? (0, devkit_1.applyChangesToString)(source, changes) : source;
|
|
85
|
+
}
|
|
86
|
+
function isSubpathSpecifier(node) {
|
|
87
|
+
return ts.isStringLiteral(node) && node.text.startsWith(FROM_PREFIX);
|
|
88
|
+
}
|
|
89
|
+
function collectImportRewrite(sourceFile, stmt, changes) {
|
|
90
|
+
if (!isSubpathSpecifier(stmt.moduleSpecifier)) {
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
const clause = stmt.importClause;
|
|
94
|
+
// Pure named imports (`import { a, b } from '...'`) can be split by symbol.
|
|
95
|
+
// A default or namespace import grabs the whole module, so it can't be
|
|
96
|
+
// split — route it wholesale to the internal entry.
|
|
97
|
+
if (clause &&
|
|
98
|
+
!clause.name &&
|
|
99
|
+
clause.namedBindings &&
|
|
100
|
+
ts.isNamedImports(clause.namedBindings)) {
|
|
101
|
+
rewriteNamedDeclaration(sourceFile, stmt, stmt.moduleSpecifier, clause.isTypeOnly, clause.namedBindings.elements, 'import', changes);
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
replaceSpecifier(sourceFile, stmt.moduleSpecifier, TO_INTERNAL, changes);
|
|
105
|
+
}
|
|
106
|
+
function collectExportRewrite(sourceFile, stmt, changes) {
|
|
107
|
+
if (!stmt.moduleSpecifier || !isSubpathSpecifier(stmt.moduleSpecifier)) {
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
// `export { a, b } from '...'` can be split; `export * from '...'` cannot.
|
|
111
|
+
if (stmt.exportClause && ts.isNamedExports(stmt.exportClause)) {
|
|
112
|
+
rewriteNamedDeclaration(sourceFile, stmt, stmt.moduleSpecifier, stmt.isTypeOnly, stmt.exportClause.elements, 'export', changes);
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
replaceSpecifier(sourceFile, stmt.moduleSpecifier, TO_INTERNAL, changes);
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Partition the named bindings of an import/export declaration into the ones
|
|
119
|
+
* that resolve to `@nx/react`'s public entry and the ones that don't. If both
|
|
120
|
+
* groups are non-empty, the single declaration is split into two.
|
|
121
|
+
*/
|
|
122
|
+
function rewriteNamedDeclaration(sourceFile, decl, specifier, isTypeOnly, elements, keyword, changes) {
|
|
123
|
+
const publicEls = [];
|
|
124
|
+
const internalEls = [];
|
|
125
|
+
for (const el of elements) {
|
|
126
|
+
// `propertyName` is the original name in `orig as alias`; fall back to
|
|
127
|
+
// `name` for the plain `orig` form.
|
|
128
|
+
const importedName = (el.propertyName ?? el.name).text;
|
|
129
|
+
(PUBLIC_SYMBOLS.has(importedName) ? publicEls : internalEls).push(el);
|
|
130
|
+
}
|
|
131
|
+
if (publicEls.length === 0) {
|
|
132
|
+
replaceSpecifier(sourceFile, specifier, TO_INTERNAL, changes);
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
if (internalEls.length === 0) {
|
|
136
|
+
replaceSpecifier(sourceFile, specifier, TO_PUBLIC, changes);
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
// Mixed — replace the whole declaration with one statement per target.
|
|
140
|
+
const quote = sourceFile.text.charAt(specifier.getStart(sourceFile));
|
|
141
|
+
const start = decl.getStart(sourceFile);
|
|
142
|
+
const end = decl.getEnd();
|
|
143
|
+
const semicolon = sourceFile.text.charAt(end - 1) === ';' ? ';' : '';
|
|
144
|
+
const prefix = isTypeOnly ? `${keyword} type` : keyword;
|
|
145
|
+
const render = (els, target) => `${prefix} { ${els
|
|
146
|
+
.map((el) => el.getText(sourceFile))
|
|
147
|
+
.join(', ')} } from ${quote}${target}${quote}${semicolon}`;
|
|
148
|
+
changes.push({ type: devkit_1.ChangeType.Delete, start, length: end - start }, {
|
|
149
|
+
type: devkit_1.ChangeType.Insert,
|
|
150
|
+
index: start,
|
|
151
|
+
text: `${render(publicEls, TO_PUBLIC)}\n${render(internalEls, TO_INTERNAL)}`,
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
function collectCallExpressionRewrites(sourceFile, changes) {
|
|
155
|
+
const visit = (node) => {
|
|
156
|
+
if (ts.isCallExpression(node) &&
|
|
157
|
+
shouldRewriteCallExpression(node) &&
|
|
158
|
+
node.arguments.length >= 1 &&
|
|
159
|
+
isSubpathSpecifier(node.arguments[0])) {
|
|
160
|
+
// `require(...)`, dynamic `import(...)` and `jest.mock(...)` reference
|
|
161
|
+
// the module as a whole and can't be symbol-split, so they go to the
|
|
162
|
+
// internal entry.
|
|
163
|
+
replaceSpecifier(sourceFile, node.arguments[0], TO_INTERNAL, changes);
|
|
164
|
+
}
|
|
165
|
+
else if (ts.isImportTypeNode(node)) {
|
|
166
|
+
// `typeof import('...')` parses as an `ImportTypeNode`, not a
|
|
167
|
+
// CallExpression — its argument is `LiteralTypeNode<StringLiteral>`.
|
|
168
|
+
// The whole module is referenced, so it can't be symbol-split.
|
|
169
|
+
const literal = getImportTypeStringLiteral(node);
|
|
170
|
+
if (literal && literal.text.startsWith(FROM_PREFIX)) {
|
|
171
|
+
replaceSpecifier(sourceFile, literal, TO_INTERNAL, changes);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
ts.forEachChild(node, visit);
|
|
175
|
+
};
|
|
176
|
+
visit(sourceFile);
|
|
177
|
+
}
|
|
178
|
+
function getImportTypeStringLiteral(node) {
|
|
179
|
+
const arg = node.argument;
|
|
180
|
+
if (arg && ts.isLiteralTypeNode(arg) && ts.isStringLiteral(arg.literal)) {
|
|
181
|
+
return arg.literal;
|
|
182
|
+
}
|
|
183
|
+
return undefined;
|
|
184
|
+
}
|
|
185
|
+
function shouldRewriteCallExpression(call) {
|
|
186
|
+
const callee = call.expression;
|
|
187
|
+
// `require('...')`
|
|
188
|
+
if (ts.isIdentifier(callee) && callee.text === 'require')
|
|
189
|
+
return true;
|
|
190
|
+
// dynamic `import('...')` (runtime form parses as a CallExpression whose
|
|
191
|
+
// callee is the `import` keyword). The `typeof import('...')` type-position
|
|
192
|
+
// form is an `ImportTypeNode` (handled in `collectCallExpressionRewrites`).
|
|
193
|
+
if (callee.kind === ts.SyntaxKind.ImportKeyword)
|
|
194
|
+
return true;
|
|
195
|
+
// `jest.mock(...)` / `vi.mock(...)` and friends.
|
|
196
|
+
if (ts.isPropertyAccessExpression(callee)) {
|
|
197
|
+
const obj = callee.expression;
|
|
198
|
+
if (ts.isIdentifier(obj) &&
|
|
199
|
+
(obj.text === 'jest' || obj.text === 'vi') &&
|
|
200
|
+
MOCK_HELPER_METHODS.has(callee.name.text)) {
|
|
201
|
+
return true;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
return false;
|
|
205
|
+
}
|
|
206
|
+
function replaceSpecifier(sourceFile, literal, target, changes) {
|
|
207
|
+
const start = literal.getStart(sourceFile);
|
|
208
|
+
const end = literal.getEnd();
|
|
209
|
+
const quote = sourceFile.text.charAt(start);
|
|
210
|
+
changes.push({ type: devkit_1.ChangeType.Delete, start, length: end - start }, {
|
|
211
|
+
type: devkit_1.ChangeType.Insert,
|
|
212
|
+
index: start,
|
|
213
|
+
text: `${quote}${target}${quote}`,
|
|
214
|
+
});
|
|
215
|
+
}
|
|
@@ -12,4 +12,3 @@ export declare const createNodes: CreateNodes<ReactRouterPluginOptions>;
|
|
|
12
12
|
* @deprecated Use {@link createNodes} instead. This will be removed in Nx 24.
|
|
13
13
|
*/
|
|
14
14
|
export declare const createNodesV2: CreateNodes<ReactRouterPluginOptions>;
|
|
15
|
-
//# sourceMappingURL=router-plugin.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.assertSupportedReactVersion = assertSupportedReactVersion;
|
|
4
|
+
const internal_1 = require("@nx/devkit/internal");
|
|
5
|
+
const versions_1 = require("./versions");
|
|
6
|
+
function assertSupportedReactVersion(tree) {
|
|
7
|
+
(0, internal_1.assertSupportedPackageVersion)(tree, 'react', versions_1.minSupportedReactVersion);
|
|
8
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { type Schema } from '../generators/application/schema';
|
|
2
2
|
export declare function assertValidStyle(style: string): void;
|
|
3
3
|
export declare function assertValidReactRouter(reactRouter: boolean, bundler: Schema['bundler']): void;
|
|
4
|
-
//# sourceMappingURL=assertion.d.ts.map
|
|
@@ -12,4 +12,3 @@ export declare function getActualBundler(tree: Tree, options: {
|
|
|
12
12
|
bundler?: 'vite' | 'webpack';
|
|
13
13
|
}, found: FoundTarget): Promise<"webpack" | "vite">;
|
|
14
14
|
export declare function isComponent(tree: Tree, filePath: string): boolean;
|
|
15
|
-
//# sourceMappingURL=ct-utils.d.ts.map
|
|
@@ -1,37 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
3
|
exports.configureCypressCT = configureCypressCT;
|
|
37
4
|
exports.getBundlerFromTarget = getBundlerFromTarget;
|
|
@@ -48,7 +15,7 @@ async function configureCypressCT(tree, options) {
|
|
|
48
15
|
const projectConfig = (0, devkit_1.readProjectConfiguration)(tree, options.project);
|
|
49
16
|
// Specifically undefined as a workaround for Remix to pass an empty string as the buildTarget
|
|
50
17
|
if (options.buildTarget === undefined) {
|
|
51
|
-
const { findBuildConfig } =
|
|
18
|
+
const { findBuildConfig, } = require('@nx/cypress/internal');
|
|
52
19
|
found = await findBuildConfig(tree, {
|
|
53
20
|
project: options.project,
|
|
54
21
|
buildTarget: options.buildTarget,
|
|
@@ -65,7 +32,7 @@ async function configureCypressCT(tree, options) {
|
|
|
65
32
|
throw new Error(`Cypress Component Testing is not currently supported for this project. Either 'executer' is not defined in '${target} target' of '${project} project.json' or executer present is not valid one. Valid ones are ${JSON.stringify([...options.validExecutorNames])}. Please check https://github.com/nrwl/nx/issues/21546 for more information.`);
|
|
66
33
|
}
|
|
67
34
|
}
|
|
68
|
-
const { addDefaultCTConfig, getProjectCypressConfigPath } =
|
|
35
|
+
const { addDefaultCTConfig, getProjectCypressConfigPath, } = require('@nx/cypress/internal');
|
|
69
36
|
const ctConfigOptions = {
|
|
70
37
|
bundler: options.bundler ?? (await getActualBundler(tree, options, found)),
|
|
71
38
|
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const REACT_WITH_REACT_DEPRECATION_MESSAGE = "The `withReact` config helper from `@nx/react` is deprecated and will be removed in Nx v24. It produces an Nx-specific webpack config function that only runs under the `@nx/webpack:webpack` executor. Migrate to a standard webpack config that uses `NxReactWebpackPlugin` (from `@nx/react/webpack-plugin`) under the inferred `@nx/webpack/plugin` by running `nx g @nx/webpack:convert-to-inferred`. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.";
|
|
2
|
+
export declare function suppressReactComposeHelperWarnings<T>(fn: () => T): T;
|
|
3
|
+
export declare function warnReactWithReactDeprecation(): void;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.REACT_WITH_REACT_DEPRECATION_MESSAGE = void 0;
|
|
4
|
+
exports.suppressReactComposeHelperWarnings = suppressReactComposeHelperWarnings;
|
|
5
|
+
exports.warnReactWithReactDeprecation = warnReactWithReactDeprecation;
|
|
6
|
+
const devkit_1 = require("@nx/devkit");
|
|
7
|
+
// TODO(v24): Remove the webpack `withReact` config helper. It emits an
|
|
8
|
+
// Nx-specific webpack config function that only runs under the
|
|
9
|
+
// @nx/webpack:webpack executor; the inferred @nx/webpack/plugin works with
|
|
10
|
+
// standard webpack configs built around NxReactWebpackPlugin instead.
|
|
11
|
+
exports.REACT_WITH_REACT_DEPRECATION_MESSAGE = 'The `withReact` config helper from `@nx/react` is deprecated and will be removed in Nx v24. It produces an Nx-specific webpack config function that only runs under the `@nx/webpack:webpack` executor. Migrate to a standard webpack config that uses `NxReactWebpackPlugin` (from `@nx/react/webpack-plugin`) under the inferred `@nx/webpack/plugin` by running `nx g @nx/webpack:convert-to-inferred`. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.';
|
|
12
|
+
let withReactWarned = false;
|
|
13
|
+
let suppressDepth = 0;
|
|
14
|
+
// Nx-internal entry points compose `withReact` themselves (e.g. the storybook
|
|
15
|
+
// and component-testing presets). They wrap their synchronous composition in
|
|
16
|
+
// this so the warning fires only for user-authored configs.
|
|
17
|
+
function suppressReactComposeHelperWarnings(fn) {
|
|
18
|
+
suppressDepth++;
|
|
19
|
+
try {
|
|
20
|
+
return fn();
|
|
21
|
+
}
|
|
22
|
+
finally {
|
|
23
|
+
suppressDepth--;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
// Warn once per process so HMR reloads and repeated config evaluation don't
|
|
27
|
+
// repeat the message.
|
|
28
|
+
function warnReactWithReactDeprecation() {
|
|
29
|
+
if (suppressDepth > 0 || withReactWarned)
|
|
30
|
+
return;
|
|
31
|
+
withReactWarned = true;
|
|
32
|
+
devkit_1.logger.warn(exports.REACT_WITH_REACT_DEPRECATION_MESSAGE);
|
|
33
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.hasRsbuildPlugin = hasRsbuildPlugin;
|
|
4
|
+
const devkit_1 = require("@nx/devkit");
|
|
5
|
+
const versions_1 = require("./versions");
|
|
6
|
+
async function hasRsbuildPlugin(tree, projectPath) {
|
|
7
|
+
(0, devkit_1.ensurePackage)('@nx/rsbuild', versions_1.nxVersion);
|
|
8
|
+
// `require()` honors Module._initPaths (which ensurePackage updates); ESM
|
|
9
|
+
// dynamic `import()` doesn't, so it can't see the on-demand temp install.
|
|
10
|
+
const { hasRsbuildPlugin, } = require('@nx/rsbuild/config-utils');
|
|
11
|
+
return hasRsbuildPlugin(tree, projectPath);
|
|
12
|
+
}
|
|
@@ -10,4 +10,3 @@ export declare function warnReactFederateModuleGeneratorDeprecation(): void;
|
|
|
10
10
|
export declare function warnReactMfDevServerExecutorDeprecation(): void;
|
|
11
11
|
export declare function warnReactMfSsrDevServerExecutorDeprecation(): void;
|
|
12
12
|
export declare function warnReactMfStaticServerExecutorDeprecation(): void;
|
|
13
|
-
//# sourceMappingURL=module-federation-deprecation.d.ts.map
|
|
@@ -6,6 +6,7 @@ type ReactDependenciesVersions = {
|
|
|
6
6
|
'@types/react': string;
|
|
7
7
|
'@types/react-dom': string;
|
|
8
8
|
'@types/react-is': string;
|
|
9
|
+
'react-router': string;
|
|
9
10
|
};
|
|
10
11
|
export declare function getReactDependenciesVersionsToInstall(tree: Tree): Promise<ReactDependenciesVersions>;
|
|
11
12
|
export declare function isReact18(tree: Tree): Promise<boolean>;
|
|
@@ -14,4 +15,3 @@ export declare function getInstalledReactVersionFromGraph(): Promise<string>;
|
|
|
14
15
|
export declare function getInstalledReactRouterDevVersion(tree: Tree): string | undefined;
|
|
15
16
|
export declare function reactRouterSupportsVite8(tree: Tree): boolean;
|
|
16
17
|
export {};
|
|
17
|
-
//# sourceMappingURL=version-utils.d.ts.map
|
|
@@ -18,6 +18,8 @@ async function getReactDependenciesVersionsToInstall(tree) {
|
|
|
18
18
|
'@types/react': versions_1.typesReactV18Version,
|
|
19
19
|
'@types/react-dom': versions_1.typesReactDomV18Version,
|
|
20
20
|
'@types/react-is': versions_1.typesReactIsV18Version,
|
|
21
|
+
// react-router v7 is the SSR package regardless of React version
|
|
22
|
+
'react-router': versions_1.reactRouterVersion,
|
|
21
23
|
};
|
|
22
24
|
}
|
|
23
25
|
else {
|
|
@@ -28,6 +30,7 @@ async function getReactDependenciesVersionsToInstall(tree) {
|
|
|
28
30
|
'@types/react': versions_1.typesReactVersion,
|
|
29
31
|
'@types/react-dom': versions_1.typesReactDomVersion,
|
|
30
32
|
'@types/react-is': versions_1.typesReactIsVersion,
|
|
33
|
+
'react-router': versions_1.reactRouterVersion,
|
|
31
34
|
};
|
|
32
35
|
}
|
|
33
36
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const nxVersion: any;
|
|
2
|
+
export declare const minSupportedReactVersion = "18.0.0";
|
|
2
3
|
export declare const reactVersion = "^19.0.0";
|
|
3
4
|
export declare const reactV18Version = "18.3.1";
|
|
4
5
|
export declare const reactDomVersion = "^19.0.0";
|
|
@@ -21,8 +22,8 @@ export declare const reactRouterVersion = "^7.14.2";
|
|
|
21
22
|
export declare const reactRouterIsBotVersion = "^4.4.0";
|
|
22
23
|
export declare const testingLibraryReactVersion = "16.3.0";
|
|
23
24
|
export declare const testingLibraryDomVersion = "10.4.0";
|
|
24
|
-
export declare const reduxjsToolkitVersion = "
|
|
25
|
-
export declare const reactReduxVersion = "
|
|
25
|
+
export declare const reduxjsToolkitVersion = "^2.5.0";
|
|
26
|
+
export declare const reactReduxVersion = "^9.2.0";
|
|
26
27
|
export declare const eslintPluginImportVersion = "2.31.0";
|
|
27
28
|
export declare const eslintPluginJsxA11yVersion = "6.10.1";
|
|
28
29
|
export declare const eslintPluginReactVersion = "7.35.0";
|
|
@@ -40,4 +41,3 @@ export declare const moduleFederationEnhancedVersion = "^2.1.0";
|
|
|
40
41
|
export declare const sassVersion = "^1.97.2";
|
|
41
42
|
export declare const rollupPluginUrlVersion = "^8.0.2";
|
|
42
43
|
export declare const svgrRollupVersion = "^8.1.0";
|
|
43
|
-
//# sourceMappingURL=versions.d.ts.map
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.svgrRollupVersion = exports.rollupPluginUrlVersion = exports.sassVersion = exports.moduleFederationEnhancedVersion = exports.moduleFederationNodeVersion = exports.typesCorsVersion = exports.corsVersion = exports.isbotVersion = exports.typesExpressVersion = exports.expressVersion = exports.autoprefixerVersion = exports.postcssVersion = exports.tsLibVersion = exports.eslintPluginReactHooksVersion = exports.eslintPluginReactVersion = exports.eslintPluginJsxA11yVersion = exports.eslintPluginImportVersion = exports.reactReduxVersion = exports.reduxjsToolkitVersion = exports.testingLibraryDomVersion = exports.testingLibraryReactVersion = exports.reactRouterIsBotVersion = exports.reactRouterVersion = exports.reactRouterDomVersion = exports.babelCoreVersion = exports.babelPresetReactVersion = exports.typesNodeVersion = exports.reactViteVersion = exports.typesReactIsVersion = exports.typesReactIsV18Version = exports.typesReactDomVersion = exports.typesReactDomV18Version = exports.typesReactVersion = exports.typesReactV18Version = exports.swcLoaderVersion = exports.reactIsV18Version = exports.reactIsVersion = exports.reactDomV18Version = exports.reactDomVersion = exports.reactV18Version = exports.reactVersion = exports.nxVersion = void 0;
|
|
4
|
-
|
|
3
|
+
exports.svgrRollupVersion = exports.rollupPluginUrlVersion = exports.sassVersion = exports.moduleFederationEnhancedVersion = exports.moduleFederationNodeVersion = exports.typesCorsVersion = exports.corsVersion = exports.isbotVersion = exports.typesExpressVersion = exports.expressVersion = exports.autoprefixerVersion = exports.postcssVersion = exports.tsLibVersion = exports.eslintPluginReactHooksVersion = exports.eslintPluginReactVersion = exports.eslintPluginJsxA11yVersion = exports.eslintPluginImportVersion = exports.reactReduxVersion = exports.reduxjsToolkitVersion = exports.testingLibraryDomVersion = exports.testingLibraryReactVersion = exports.reactRouterIsBotVersion = exports.reactRouterVersion = exports.reactRouterDomVersion = exports.babelCoreVersion = exports.babelPresetReactVersion = exports.typesNodeVersion = exports.reactViteVersion = exports.typesReactIsVersion = exports.typesReactIsV18Version = exports.typesReactDomVersion = exports.typesReactDomV18Version = exports.typesReactVersion = exports.typesReactV18Version = exports.swcLoaderVersion = exports.reactIsV18Version = exports.reactIsVersion = exports.reactDomV18Version = exports.reactDomVersion = exports.reactV18Version = exports.reactVersion = exports.minSupportedReactVersion = exports.nxVersion = void 0;
|
|
4
|
+
const path_1 = require("path");
|
|
5
|
+
exports.nxVersion = require((0, path_1.join)('@nx/react', 'package.json')).version;
|
|
6
|
+
exports.minSupportedReactVersion = '18.0.0';
|
|
5
7
|
exports.reactVersion = '^19.0.0';
|
|
6
8
|
exports.reactV18Version = '18.3.1';
|
|
7
9
|
exports.reactDomVersion = '^19.0.0';
|
|
@@ -25,8 +27,10 @@ exports.reactRouterVersion = '^7.14.2';
|
|
|
25
27
|
exports.reactRouterIsBotVersion = '^4.4.0';
|
|
26
28
|
exports.testingLibraryReactVersion = '16.3.0';
|
|
27
29
|
exports.testingLibraryDomVersion = '10.4.0';
|
|
28
|
-
|
|
29
|
-
|
|
30
|
+
// RTK 2 / react-redux 9 peer on react ^18 || ^19 — cover the full support window.
|
|
31
|
+
// react-redux 8.0.5 / RTK 1.9.3 peer-cap at react ^18, breaking `nx g redux` on React 19.
|
|
32
|
+
exports.reduxjsToolkitVersion = '^2.5.0';
|
|
33
|
+
exports.reactReduxVersion = '^9.2.0';
|
|
30
34
|
exports.eslintPluginImportVersion = '2.31.0';
|
|
31
35
|
exports.eslintPluginJsxA11yVersion = '6.10.1';
|
|
32
36
|
exports.eslintPluginReactVersion = '7.35.0';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare module '*.module.css' {
|
|
2
|
+
const classes: { readonly [key: string]: string };
|
|
3
|
+
export default classes;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
declare module '*.module.scss' {
|
|
7
|
+
const classes: { readonly [key: string]: string };
|
|
8
|
+
export default classes;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare module '*.module.sass' {
|
|
12
|
+
const classes: { readonly [key: string]: string };
|
|
13
|
+
export default classes;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
declare module '*.module.less' {
|
|
17
|
+
const classes: { readonly [key: string]: string };
|
|
18
|
+
export default classes;
|
|
19
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react-dom" />
|
|
3
|
+
|
|
4
|
+
declare module '*.svg' {
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
|
|
7
|
+
export const ReactComponent: React.FunctionComponent<
|
|
8
|
+
React.SVGProps<SVGSVGElement> & { title?: string }
|
|
9
|
+
>;
|
|
10
|
+
|
|
11
|
+
const src: string;
|
|
12
|
+
export default src;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare module '*.bmp' {
|
|
16
|
+
const src: string;
|
|
17
|
+
export default src;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
declare module '*.gif' {
|
|
21
|
+
const src: string;
|
|
22
|
+
export default src;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
declare module '*.jpg' {
|
|
26
|
+
const src: string;
|
|
27
|
+
export default src;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
declare module '*.jpeg' {
|
|
31
|
+
const src: string;
|
|
32
|
+
export default src;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
declare module '*.png' {
|
|
36
|
+
const src: string;
|
|
37
|
+
export default src;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
declare module '*.avif' {
|
|
41
|
+
const src: string;
|
|
42
|
+
export default src;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
declare module '*.webp' {
|
|
46
|
+
const src: string;
|
|
47
|
+
export default src;
|
|
48
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type SupportedStyles = 'css' | 'scss' | 'none';
|