@nx/react 23.0.0-beta.24 → 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/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/merge-plugins.d.ts +0 -1
- package/dist/plugins/webpack.d.ts +1 -0
- package/{plugins → dist/plugins}/with-react.d.ts +0 -1
- 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-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-static-server/module-federation-static-server.impl.d.ts +0 -1
- 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/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 +1 -35
- 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/bundlers/add-rsbuild.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/bundlers/add-rsbuild.js +3 -36
- 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/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/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-test/component-test.d.ts +0 -1
- 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/cypress-component-configuration/cypress-component-configuration.d.ts +0 -1
- 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 +1 -35
- package/{src → dist/src}/generators/federate-module/federate-module.d.ts +0 -1
- 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/host/host.d.ts +0 -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/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/library/lib/add-linting.d.ts +0 -1
- package/{src → dist/src}/generators/library/lib/add-rollup-build-target.d.ts +0 -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/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/library.d.ts +0 -1
- package/{src → dist/src}/generators/library/library.js +1 -1
- package/{src → dist/src}/generators/provider/provider.d.ts +0 -1
- package/{src → dist/src}/generators/redux/redux.d.ts +0 -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-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/setup-ssr/setup-ssr.d.ts +0 -1
- package/{src → dist/src}/generators/stories/stories.d.ts +0 -1
- package/{src → dist/src}/generators/stories/stories.js +2 -2
- package/{src → dist/src}/generators/storybook-configuration/configuration.d.ts +0 -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/{src → dist/src}/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.d.ts +0 -1
- 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/{src → dist/src}/utils/assert-supported-react-version.d.ts +0 -1
- 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/{src → dist/src}/utils/deprecation.d.ts +0 -1
- 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 +0 -1
- package/{src → dist/src}/utils/versions.d.ts +0 -1
- package/{src → dist/src}/utils/versions.js +2 -1
- 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 +12 -96
- package/package.json +139 -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/migrate-create-nodes-v2-to-create-nodes.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/assert-supported-react-version.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/deprecation.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/index.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/index.js +0 -0
- /package/{plugins → dist/plugins}/storybook/merge-plugins.js +0 -0
- /package/{plugins → dist/plugins}/webpack.js +0 -0
- /package/{plugins → dist/plugins}/with-react.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/module-federation-dev-server.impl.js +0 -0
- /package/{src → dist/src}/executors/module-federation-dev-server/schema.d.ts +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/module-federation-ssr-dev-server.impl.js +0 -0
- /package/{src → dist/src}/executors/module-federation-ssr-dev-server/schema.d.ts +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/module-federation-static-server.impl.js +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/application.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/add-routing.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/install-common-dependencies.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/component.js +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/component-story.js +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/component-test.js +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/consumer.js +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/cypress-component-configuration.js +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/federate-module.js +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/hook.js +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/host.js +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/setup-ssr-for-host.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/init.js +0 -0
- /package/{src → dist/src}/generators/init/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/init/schema.json +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/add-linting.js +0 -0
- /package/{src → dist/src}/generators/library/lib/add-rollup-build-target.js +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/install-common-dependencies.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/lib/update-app-routes.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/provider.js +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/redux.js +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-ssr-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/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/setup-ssr/setup-ssr.js +0 -0
- /package/{src → dist/src}/generators/stories/schema.json +0 -0
- /package/{src → dist/src}/generators/storybook-configuration/configuration.js +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/migrate-create-nodes-v2-to-create-nodes.js +0 -0
- /package/{src → dist/src}/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.md +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/assert-supported-react-version.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/deprecation.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/{src → dist/src}/utils/version-utils.js +0 -0
- /package/{tailwind.js → dist/tailwind.js} +0 -0
- /package/{webpack-plugin.js → dist/webpack-plugin.js} +0 -0
|
@@ -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.addFiles = addFiles;
|
|
37
4
|
const devkit_1 = require("@nx/devkit");
|
|
@@ -42,8 +9,7 @@ const component_test_1 = require("../../component-test/component-test");
|
|
|
42
9
|
async function addFiles(tree, projectConfig, options, found) {
|
|
43
10
|
// must dynamicaly import to prevent packages not using cypress from erroring out
|
|
44
11
|
// when importing react
|
|
45
|
-
const { addMountDefinition } =
|
|
46
|
-
const { getInstalledCypressMajorVersion } = await Promise.resolve().then(() => __importStar(require('@nx/cypress/internal')));
|
|
12
|
+
const { addMountDefinition, getInstalledCypressMajorVersion, } = require('@nx/cypress/internal');
|
|
47
13
|
const installedCypressMajorVersion = getInstalledCypressMajorVersion(tree);
|
|
48
14
|
// Specifically undefined to allow Remix workaround of passing an empty string
|
|
49
15
|
const actualBundler = await (0, ct_utils_1.getActualBundler)(tree, options, found);
|
|
@@ -2,4 +2,3 @@ import { GeneratorCallback, Tree } from '@nx/devkit';
|
|
|
2
2
|
import { Schema } from './schema';
|
|
3
3
|
export declare function federateModuleGenerator(tree: Tree, schema: Schema): Promise<GeneratorCallback>;
|
|
4
4
|
export default federateModuleGenerator;
|
|
5
|
-
//# sourceMappingURL=federate-module.d.ts.map
|
|
@@ -21,4 +21,3 @@ export declare function createObjectEntry(moduleName: string, modulePath: string
|
|
|
21
21
|
export declare function updateExposesPropertyinAST(source: SourceFile, exposesObject: ObjectLiteralExpression, newEntry: PropertyAssignment): SourceFile;
|
|
22
22
|
export declare function writeToConfig(tree: Tree, filename: string, source: SourceFile, updatedSourceFile: SourceFile): void;
|
|
23
23
|
export declare function updateExposesProperty(tree: Tree, filename: string, moduleName: string, modulePath: string): void;
|
|
24
|
-
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -2,4 +2,3 @@ import { type GeneratorCallback, type Tree } from '@nx/devkit';
|
|
|
2
2
|
import { InitSchema } from './schema';
|
|
3
3
|
export declare function reactInitGenerator(tree: Tree, schema: InitSchema): Promise<GeneratorCallback>;
|
|
4
4
|
export default reactInitGenerator;
|
|
5
|
-
//# sourceMappingURL=init.d.ts.map
|
|
@@ -2,4 +2,3 @@ import { Tree } from 'nx/src/generators/tree';
|
|
|
2
2
|
import { GeneratorCallback } from '@nx/devkit';
|
|
3
3
|
import { NormalizedSchema } from '../schema';
|
|
4
4
|
export declare function addLinting(host: Tree, options: NormalizedSchema): Promise<GeneratorCallback>;
|
|
5
|
-
//# sourceMappingURL=add-linting.d.ts.map
|
|
@@ -4,4 +4,3 @@ import { NormalizedSchema } from '../schema';
|
|
|
4
4
|
export declare function addRollupBuildTarget(host: Tree, options: NormalizedSchema & {
|
|
5
5
|
format?: Array<'esm' | 'cjs'>;
|
|
6
6
|
}, external?: Set<String>): Promise<GeneratorCallback>;
|
|
7
|
-
//# sourceMappingURL=add-rollup-build-target.d.ts.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import type { PackageJson } from 'nx/src/utils/package-json';
|
|
2
2
|
import type { NormalizedSchema } from '../schema';
|
|
3
3
|
export declare function determineEntryFields(options: NormalizedSchema): Pick<PackageJson, 'main' | 'types' | 'exports'>;
|
|
4
|
-
//# sourceMappingURL=determine-entry-fields.d.ts.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { GeneratorCallback, Tree } from '@nx/devkit';
|
|
2
2
|
import { NormalizedSchema } from '../schema';
|
|
3
3
|
export declare function installCommonDependencies(host: Tree, options: NormalizedSchema): Promise<GeneratorCallback>;
|
|
4
|
-
//# sourceMappingURL=install-common-dependencies.d.ts.map
|
|
@@ -3,4 +3,3 @@ import { Schema } from './schema';
|
|
|
3
3
|
export declare function libraryGenerator(host: Tree, schema: Schema): Promise<GeneratorCallback>;
|
|
4
4
|
export declare function libraryGeneratorInternal(host: Tree, schema: Schema): Promise<GeneratorCallback>;
|
|
5
5
|
export default libraryGenerator;
|
|
6
|
-
//# sourceMappingURL=library.d.ts.map
|
|
@@ -151,7 +151,7 @@ async function libraryGeneratorInternal(host, schema) {
|
|
|
151
151
|
) {
|
|
152
152
|
const { createOrEditViteConfig } = (0, devkit_1.ensurePackage)('@nx/vite', versions_1.nxVersion);
|
|
153
153
|
(0, devkit_1.ensurePackage)('@nx/vitest', versions_1.nxVersion);
|
|
154
|
-
const { configurationGenerator } =
|
|
154
|
+
const { configurationGenerator, } = require('@nx/vitest/generators');
|
|
155
155
|
const vitestTask = await configurationGenerator(host, {
|
|
156
156
|
uiFramework: 'react',
|
|
157
157
|
project: options.name,
|
|
@@ -2,4 +2,3 @@ import { GeneratorCallback, Tree } from '@nx/devkit';
|
|
|
2
2
|
import type { ProviderGeneratorSchema } from './schema';
|
|
3
3
|
export declare function providerGenerator(tree: Tree, schema: ProviderGeneratorSchema): Promise<GeneratorCallback>;
|
|
4
4
|
export default providerGenerator;
|
|
5
|
-
//# sourceMappingURL=provider.d.ts.map
|
|
@@ -2,4 +2,3 @@ import { GeneratorCallback, Tree } from '@nx/devkit';
|
|
|
2
2
|
import { NormalizedSchema } from '../../application/schema';
|
|
3
3
|
import type { Schema } from '../schema';
|
|
4
4
|
export declare function setupSsrForRemote(tree: Tree, options: NormalizedSchema<Schema>, appName: string): Promise<GeneratorCallback>;
|
|
5
|
-
//# sourceMappingURL=setup-ssr-for-remote.d.ts.map
|
|
@@ -4,4 +4,3 @@ import { Schema } from './schema';
|
|
|
4
4
|
export declare function addModuleFederationFiles(host: Tree, options: NormalizedSchema<Schema>): void;
|
|
5
5
|
export declare function remoteGenerator(host: Tree, schema: Schema): Promise<GeneratorCallback>;
|
|
6
6
|
export default remoteGenerator;
|
|
7
|
-
//# sourceMappingURL=remote.d.ts.map
|
|
@@ -2,4 +2,3 @@ import { Tree } from '@nx/devkit';
|
|
|
2
2
|
import type { Schema } from './schema';
|
|
3
3
|
export declare function setupSsrGenerator(tree: Tree, options: Schema): Promise<import("@nx/devkit").GeneratorCallback>;
|
|
4
4
|
export default setupSsrGenerator;
|
|
5
|
-
//# sourceMappingURL=setup-ssr.d.ts.map
|
|
@@ -12,4 +12,3 @@ export declare function containsComponentDeclaration(tree: Tree, componentPath:
|
|
|
12
12
|
export declare function createAllStories(tree: Tree, schema: StorybookStoriesSchema, projectConfiguration: ProjectConfiguration): Promise<void>;
|
|
13
13
|
export declare function storiesGenerator(host: Tree, schema: StorybookStoriesSchema): Promise<void>;
|
|
14
14
|
export default storiesGenerator;
|
|
15
|
-
//# sourceMappingURL=stories.d.ts.map
|
|
@@ -49,7 +49,7 @@ function containsComponentDeclaration(tree, componentPath) {
|
|
|
49
49
|
(0, ast_utils_1.findExportDeclarationsForJsx)(sourceFile)?.length);
|
|
50
50
|
}
|
|
51
51
|
async function createAllStories(tree, schema, projectConfiguration) {
|
|
52
|
-
const { isTheFileAStory } =
|
|
52
|
+
const { isTheFileAStory, } = require('@nx/storybook/src/utils/utilities');
|
|
53
53
|
const sourceRoot = (0, internal_1.getProjectSourceRoot)(projectConfiguration, tree);
|
|
54
54
|
let componentPaths = [];
|
|
55
55
|
const projectPath = await projectRootPath(tree, projectConfiguration);
|
|
@@ -100,7 +100,7 @@ async function storiesGenerator(host, schema) {
|
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
async function isNextJsProject(tree, config) {
|
|
103
|
-
const { findStorybookAndBuildTargetsAndCompiler } =
|
|
103
|
+
const { findStorybookAndBuildTargetsAndCompiler, } = require('@nx/storybook/src/utils/utilities');
|
|
104
104
|
const { nextBuildTarget } = findStorybookAndBuildTargetsAndCompiler(config.targets);
|
|
105
105
|
if (nextBuildTarget) {
|
|
106
106
|
return true;
|
|
@@ -3,4 +3,3 @@ import type { StorybookConfigureSchema } from './schema';
|
|
|
3
3
|
export declare function storybookConfigurationGenerator(host: Tree, schema: StorybookConfigureSchema): Promise<GeneratorCallback>;
|
|
4
4
|
export declare function storybookConfigurationGeneratorInternal(host: Tree, schema: StorybookConfigureSchema): Promise<GeneratorCallback>;
|
|
5
5
|
export default storybookConfigurationGenerator;
|
|
6
|
-
//# sourceMappingURL=configuration.d.ts.map
|
package/{src → dist/src}/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.d.ts
RENAMED
|
@@ -7,4 +7,3 @@ export default function migrateCreateNodesV2ToCreateNodes(tree: Tree): Promise<v
|
|
|
7
7
|
* any `type` modifier, and any default import are left untouched.
|
|
8
8
|
*/
|
|
9
9
|
export declare function rewriteCreateNodesV2Imports(source: string, specifiers: ReadonlySet<string>): string;
|
|
10
|
-
//# sourceMappingURL=migrate-create-nodes-v2-to-create-nodes.d.ts.map
|
|
@@ -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
|
|
@@ -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
|
};
|