@nx/js 23.0.0-pr.35465.2bc2643 → 23.0.0-rc.1
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/{babel.d.ts → dist/babel.d.ts} +0 -1
- package/dist/internal.d.ts +27 -0
- package/dist/internal.js +108 -0
- package/{plugins → dist/plugins}/jest/local-registry.d.ts +0 -1
- package/{src → dist/src}/executors/copy-workspace-modules/copy-workspace-modules.d.ts +0 -1
- package/{src → dist/src}/executors/copy-workspace-modules/copy-workspace-modules.js +2 -0
- package/{src → dist/src}/executors/node/lib/coalescing-debounce.d.ts +0 -1
- package/{src → dist/src}/executors/node/lib/detect-module-format.d.ts +2 -2
- package/{src → dist/src}/executors/node/lib/detect-module-format.js +7 -23
- package/{src → dist/src}/executors/node/lib/esm-loader.d.ts +0 -1
- package/{src → dist/src}/executors/node/lib/kill-tree.d.ts +0 -1
- package/{src → dist/src}/executors/node/lib/line-aware-writer.d.ts +0 -1
- package/{src → dist/src}/executors/node/lib/output-file.d.ts +0 -1
- package/dist/src/executors/node/node-with-esm-loader.d.ts +1 -0
- package/{src → dist/src}/executors/node/node-with-esm-loader.js +2 -0
- package/dist/src/executors/node/node-with-require-overrides.d.ts +1 -0
- package/{src → dist/src}/executors/node/node-with-require-overrides.js +2 -0
- package/{src → dist/src}/executors/node/node.impl.d.ts +0 -1
- package/{src → dist/src}/executors/node/node.impl.js +6 -14
- package/{src → dist/src}/executors/prune-lockfile/prune-lockfile.d.ts +0 -1
- package/{src → dist/src}/executors/prune-lockfile/prune-lockfile.js +2 -0
- package/{src → dist/src}/executors/release-publish/extract-npm-publish-json-data.d.ts +0 -1
- package/dist/src/executors/release-publish/extract-npm-publish-json-data.js +79 -0
- package/{src → dist/src}/executors/release-publish/format-bytes.d.ts +0 -1
- package/{src → dist/src}/executors/release-publish/log-tar.d.ts +0 -1
- package/{src → dist/src}/executors/release-publish/release-publish.impl.d.ts +0 -1
- package/{src → dist/src}/executors/release-publish/release-publish.impl.js +60 -2
- package/{src → dist/src}/executors/swc/swc.impl.d.ts +0 -1
- package/{src → dist/src}/executors/tsc/lib/batch/build-task-info-per-tsconfig-map.d.ts +0 -1
- package/{src → dist/src}/executors/tsc/lib/batch/index.d.ts +0 -1
- package/{src → dist/src}/executors/tsc/lib/batch/normalize-tasks-options.d.ts +0 -1
- package/{src → dist/src}/executors/tsc/lib/batch/types.d.ts +0 -1
- package/{src → dist/src}/executors/tsc/lib/batch/watch.d.ts +0 -1
- package/{src → dist/src}/executors/tsc/lib/batch/watch.js +1 -1
- package/{src → dist/src}/executors/tsc/lib/get-custom-transformers-factory.d.ts +0 -1
- package/{src → dist/src}/executors/tsc/lib/get-task-options.d.ts +0 -1
- package/{src → dist/src}/executors/tsc/lib/get-tsconfig.d.ts +0 -1
- package/{src → dist/src}/executors/tsc/lib/index.d.ts +0 -1
- package/{src → dist/src}/executors/tsc/lib/normalize-options.d.ts +0 -1
- package/{src → dist/src}/executors/tsc/lib/typescript-compilation.d.ts +0 -1
- package/{src → dist/src}/executors/tsc/lib/typescript-compilation.js +2 -2
- package/{src → dist/src}/executors/tsc/lib/typescript-diagnostic-reporters.d.ts +0 -1
- package/{src → dist/src}/executors/tsc/tsc.batch-impl.d.ts +0 -1
- package/{src → dist/src}/executors/tsc/tsc.impl.d.ts +1 -2
- package/{src → dist/src}/executors/verdaccio/verdaccio.impl.d.ts +0 -1
- package/{src → dist/src}/generators/convert-to-swc/convert-to-swc.d.ts +0 -1
- package/{src → dist/src}/generators/convert-to-swc/convert-to-swc.js +3 -1
- package/{src → dist/src}/generators/init/init.d.ts +0 -1
- package/{src → dist/src}/generators/init/init.js +15 -42
- package/{src → dist/src}/generators/init/schema.json +1 -1
- package/{src → dist/src}/generators/library/library.d.ts +0 -1
- package/{src → dist/src}/generators/library/library.js +21 -17
- package/{src → dist/src}/generators/library/schema.d.ts +1 -1
- package/{src → dist/src}/generators/library/utils/add-release-config.d.ts +0 -1
- package/dist/src/generators/release-version/release-version.d.ts +1 -0
- package/{src → dist/src}/generators/setup-build/generator.d.ts +0 -1
- package/{src → dist/src}/generators/setup-build/generator.js +6 -6
- package/{src → dist/src}/generators/setup-prettier/generator.d.ts +0 -1
- package/{src → dist/src}/generators/setup-prettier/generator.js +2 -0
- package/{src → dist/src}/generators/setup-verdaccio/generator.d.ts +0 -1
- package/{src → dist/src}/generators/setup-verdaccio/generator.js +3 -1
- package/{src → dist/src}/generators/typescript-sync/typescript-sync.d.ts +0 -1
- package/{src → dist/src}/generators/typescript-sync/typescript-sync.js +2 -0
- package/{src → dist/src}/index.d.ts +0 -1
- package/dist/src/internal.d.ts +18 -0
- package/dist/src/internal.js +25 -0
- package/{src → dist/src}/migrations/update-21-5-0/migrate-development-custom-condition.d.ts +0 -1
- package/dist/src/migrations/update-21-5-0/migrate-development-custom-condition.md +87 -0
- package/{src → dist/src}/migrations/update-22-0-0/remove-external-options-from-js-executors.d.ts +0 -1
- package/dist/src/migrations/update-22-0-0/remove-external-options-from-js-executors.js +94 -0
- package/dist/src/migrations/update-22-0-0/remove-external-options-from-js-executors.md +79 -0
- package/{src → dist/src}/migrations/update-22-1-0/remove-redundant-ts-project-references.d.ts +0 -1
- package/dist/src/migrations/update-22-1-0/remove-redundant-ts-project-references.md +143 -0
- 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 +223 -0
- package/dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.md +25 -0
- 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 +144 -0
- package/{src → dist/src}/plugins/jest/start-local-registry.d.ts +0 -1
- package/{src → dist/src}/plugins/typescript/plugin.d.ts +3 -4
- package/{src → dist/src}/plugins/typescript/plugin.js +87 -21
- package/{src → dist/src}/plugins/typescript/util.d.ts +0 -1
- package/{src → dist/src}/plugins/typescript/util.js +1 -1
- package/{src → dist/src}/release/utils/semver.d.ts +0 -1
- package/{src → dist/src}/release/utils/update-lock-file.d.ts +0 -1
- package/{src → dist/src}/release/version-actions.d.ts +0 -1
- package/{src → dist/src}/release/version-actions.js +3 -3
- package/{src → dist/src}/utils/add-babel-inputs.d.ts +0 -1
- package/{src → dist/src}/utils/add-local-registry-scripts.d.ts +0 -1
- package/dist/src/utils/assert-supported-typescript-version.d.ts +2 -0
- package/dist/src/utils/assert-supported-typescript-version.js +8 -0
- package/{src → dist/src}/utils/assets/assets.d.ts +0 -1
- package/{src → dist/src}/utils/assets/copy-assets-handler.d.ts +0 -1
- package/{src → dist/src}/utils/assets/index.d.ts +0 -1
- package/{src → dist/src}/utils/assets/normalize-assets.d.ts +0 -1
- package/{src → dist/src}/utils/buildable-libs-utils.d.ts +0 -1
- package/{src → dist/src}/utils/buildable-libs-utils.js +3 -2
- package/{src → dist/src}/utils/check-dependencies.d.ts +0 -1
- package/{src → dist/src}/utils/code-frames/highlight.d.ts +0 -1
- package/{src → dist/src}/utils/code-frames/identifiers.d.ts +0 -1
- package/{src → dist/src}/utils/compiler-helper-dependency.d.ts +0 -1
- package/{src → dist/src}/utils/find-npm-dependencies.d.ts +0 -1
- package/{src → dist/src}/utils/generate-globs.d.ts +0 -1
- package/{src → dist/src}/utils/generator-prompts.d.ts +0 -1
- package/{src → dist/src}/utils/generator-prompts.js +3 -3
- package/{src → dist/src}/utils/get-import-path.d.ts +0 -1
- package/{src → dist/src}/utils/get-main-file-dir.d.ts +0 -1
- package/{src → dist/src}/utils/is-locally-linked-package-version.d.ts +0 -1
- package/{src → dist/src}/utils/is-valid-variable.d.ts +0 -1
- package/dist/src/utils/module-format/is-esm-project.d.ts +16 -0
- package/dist/src/utils/module-format/is-esm-project.js +32 -0
- package/dist/src/utils/module-format/module-format.d.ts +17 -0
- package/dist/src/utils/module-format/module-format.js +43 -0
- package/{src → dist/src}/utils/npm-config.d.ts +0 -1
- package/{src → dist/src}/utils/package-json/create-entry-points.d.ts +0 -1
- package/{src → dist/src}/utils/package-json/get-npm-scope.d.ts +0 -1
- package/{src → dist/src}/utils/package-json/index.d.ts +0 -1
- package/{src → dist/src}/utils/package-json/sort-fields.d.ts +0 -1
- package/{src → dist/src}/utils/package-json/update-package-json.d.ts +0 -1
- package/{src → dist/src}/utils/package-json/update-package-json.js +2 -1
- package/{src → dist/src}/utils/package-manager-workspaces.d.ts +0 -1
- package/{src → dist/src}/utils/prettier.d.ts +0 -1
- package/{src → dist/src}/utils/prettier.js +3 -36
- package/dist/src/utils/strip-glob-to-base-dir.d.ts +1 -0
- package/dist/src/utils/strip-glob-to-base-dir.js +16 -0
- package/{src → dist/src}/utils/swc/add-swc-config.d.ts +0 -1
- package/{src → dist/src}/utils/swc/add-swc-dependencies.d.ts +0 -1
- package/{src → dist/src}/utils/swc/add-swc-dependencies.js +2 -2
- package/{src → dist/src}/utils/swc/compile-swc.d.ts +0 -1
- package/{src → dist/src}/utils/swc/compile-swc.js +2 -2
- package/{src → dist/src}/utils/swc/get-swcrc-path.d.ts +0 -1
- package/{src → dist/src}/utils/typescript/__mocks__/function-after-declarations-plugin.d.ts +0 -1
- package/{src → dist/src}/utils/typescript/__mocks__/function-after-plugin.d.ts +0 -1
- package/{src → dist/src}/utils/typescript/__mocks__/function-direct-export.d.ts +0 -1
- package/{src → dist/src}/utils/typescript/__mocks__/function-multiple-hooks.d.ts +0 -1
- package/{src → dist/src}/utils/typescript/__mocks__/plugin-a.d.ts +0 -1
- package/{src → dist/src}/utils/typescript/__mocks__/plugin-b.d.ts +0 -1
- package/{src → dist/src}/utils/typescript/add-tslib-dependencies.d.ts +0 -1
- package/{src → dist/src}/utils/typescript/ast-utils.d.ts +0 -1
- package/dist/src/utils/typescript/compilation.d.ts +22 -0
- package/dist/src/utils/typescript/compilation.js +119 -0
- package/{src → dist/src}/utils/typescript/compile-typescript-files.d.ts +1 -2
- package/{src → dist/src}/utils/typescript/compile-typescript-files.js +3 -3
- package/{src → dist/src}/utils/typescript/configuration.d.ts +0 -1
- package/{src → dist/src}/utils/typescript/create-ts-config.d.ts +0 -1
- package/{src → dist/src}/utils/typescript/ensure-typescript.d.ts +0 -1
- package/{src → dist/src}/utils/typescript/get-source-nodes.d.ts +0 -1
- package/{src → dist/src}/utils/typescript/load-ts-transformers.d.ts +0 -1
- package/{src → dist/src}/utils/typescript/plugin.d.ts +0 -1
- package/{src → dist/src}/utils/typescript/plugin.js +8 -1
- package/{src → dist/src}/utils/typescript/print-diagnostics.d.ts +0 -1
- package/{src → dist/src}/utils/typescript/raw-tsconfig.d.ts +0 -1
- package/{src → dist/src}/utils/typescript/run-type-check.d.ts +0 -1
- package/{src → dist/src}/utils/typescript/run-type-check.js +1 -1
- package/{src → dist/src}/utils/typescript/ts-config.d.ts +0 -1
- package/{src → dist/src}/utils/typescript/ts-config.js +1 -1
- package/{src → dist/src}/utils/typescript/ts-solution-setup.d.ts +2 -1
- package/{src → dist/src}/utils/typescript/ts-solution-setup.js +5 -0
- package/{src → dist/src}/utils/typescript/types.d.ts +0 -1
- package/dist/src/utils/typescript/types.js +2 -0
- package/{src → dist/src}/utils/versions.d.ts +2 -3
- package/{src → dist/src}/utils/versions.js +5 -4
- package/{src → dist/src}/utils/watch-for-single-file-changes.d.ts +0 -1
- package/{typescript.d.ts → dist/typescript.d.ts} +0 -1
- package/executors.json +15 -15
- package/generators.json +14 -14
- package/migrations.json +41 -51
- package/package.json +103 -12
- package/babel.d.ts.map +0 -1
- package/plugins/jest/local-registry.d.ts.map +0 -1
- package/src/executors/copy-workspace-modules/copy-workspace-modules.d.ts.map +0 -1
- package/src/executors/node/lib/coalescing-debounce.d.ts.map +0 -1
- package/src/executors/node/lib/detect-module-format.d.ts.map +0 -1
- package/src/executors/node/lib/esm-loader.d.ts.map +0 -1
- package/src/executors/node/lib/kill-tree.d.ts.map +0 -1
- package/src/executors/node/lib/line-aware-writer.d.ts.map +0 -1
- package/src/executors/node/lib/output-file.d.ts.map +0 -1
- package/src/executors/node/node-with-esm-loader.d.ts +0 -6
- package/src/executors/node/node-with-esm-loader.d.ts.map +0 -1
- package/src/executors/node/node-with-require-overrides.d.ts +0 -8
- package/src/executors/node/node-with-require-overrides.d.ts.map +0 -1
- package/src/executors/node/node.impl.d.ts.map +0 -1
- package/src/executors/prune-lockfile/prune-lockfile.d.ts.map +0 -1
- package/src/executors/release-publish/extract-npm-publish-json-data.d.ts.map +0 -1
- package/src/executors/release-publish/extract-npm-publish-json-data.js +0 -54
- package/src/executors/release-publish/format-bytes.d.ts.map +0 -1
- package/src/executors/release-publish/log-tar.d.ts.map +0 -1
- package/src/executors/release-publish/release-publish.impl.d.ts.map +0 -1
- package/src/executors/swc/swc.impl.d.ts.map +0 -1
- package/src/executors/tsc/lib/batch/build-task-info-per-tsconfig-map.d.ts.map +0 -1
- package/src/executors/tsc/lib/batch/index.d.ts.map +0 -1
- package/src/executors/tsc/lib/batch/normalize-tasks-options.d.ts.map +0 -1
- package/src/executors/tsc/lib/batch/types.d.ts.map +0 -1
- package/src/executors/tsc/lib/batch/watch.d.ts.map +0 -1
- package/src/executors/tsc/lib/get-custom-transformers-factory.d.ts.map +0 -1
- package/src/executors/tsc/lib/get-task-options.d.ts.map +0 -1
- package/src/executors/tsc/lib/get-tsconfig.d.ts.map +0 -1
- package/src/executors/tsc/lib/index.d.ts.map +0 -1
- package/src/executors/tsc/lib/normalize-options.d.ts.map +0 -1
- package/src/executors/tsc/lib/typescript-compilation.d.ts.map +0 -1
- package/src/executors/tsc/lib/typescript-diagnostic-reporters.d.ts.map +0 -1
- package/src/executors/tsc/tsc.batch-impl.d.ts.map +0 -1
- package/src/executors/tsc/tsc.impl.d.ts.map +0 -1
- package/src/executors/verdaccio/verdaccio.impl.d.ts.map +0 -1
- package/src/generators/convert-to-swc/convert-to-swc.d.ts.map +0 -1
- package/src/generators/init/init.d.ts.map +0 -1
- package/src/generators/library/library.d.ts.map +0 -1
- package/src/generators/library/utils/add-release-config.d.ts.map +0 -1
- package/src/generators/release-version/release-version.d.ts +0 -1
- package/src/generators/release-version/release-version.d.ts.map +0 -1
- package/src/generators/release-version/release-version.js +0 -0
- package/src/generators/setup-build/generator.d.ts.map +0 -1
- package/src/generators/setup-prettier/generator.d.ts.map +0 -1
- package/src/generators/setup-verdaccio/generator.d.ts.map +0 -1
- package/src/generators/typescript-sync/typescript-sync.d.ts.map +0 -1
- package/src/index.d.ts.map +0 -1
- package/src/internal.d.ts +0 -6
- package/src/internal.d.ts.map +0 -1
- package/src/internal.js +0 -18
- package/src/migrations/update-21-5-0/migrate-development-custom-condition.d.ts.map +0 -1
- package/src/migrations/update-22-0-0/remove-external-options-from-js-executors.d.ts.map +0 -1
- package/src/migrations/update-22-0-0/remove-external-options-from-js-executors.js +0 -65
- package/src/migrations/update-22-1-0/remove-redundant-ts-project-references.d.ts.map +0 -1
- package/src/plugins/jest/start-local-registry.d.ts.map +0 -1
- package/src/plugins/rollup/type-definitions.d.ts +0 -8
- package/src/plugins/rollup/type-definitions.d.ts.map +0 -1
- package/src/plugins/rollup/type-definitions.js +0 -49
- package/src/plugins/typescript/plugin.d.ts.map +0 -1
- package/src/plugins/typescript/util.d.ts.map +0 -1
- package/src/release/utils/semver.d.ts.map +0 -1
- package/src/release/utils/update-lock-file.d.ts.map +0 -1
- package/src/release/version-actions.d.ts.map +0 -1
- package/src/utils/add-babel-inputs.d.ts.map +0 -1
- package/src/utils/add-local-registry-scripts.d.ts.map +0 -1
- package/src/utils/assets/assets.d.ts.map +0 -1
- package/src/utils/assets/copy-assets-handler.d.ts.map +0 -1
- package/src/utils/assets/index.d.ts.map +0 -1
- package/src/utils/assets/normalize-assets.d.ts.map +0 -1
- package/src/utils/buildable-libs-utils.d.ts.map +0 -1
- package/src/utils/check-dependencies.d.ts.map +0 -1
- package/src/utils/code-frames/highlight.d.ts.map +0 -1
- package/src/utils/code-frames/identifiers.d.ts.map +0 -1
- package/src/utils/compiler-helper-dependency.d.ts.map +0 -1
- package/src/utils/find-npm-dependencies.d.ts.map +0 -1
- package/src/utils/generate-globs.d.ts.map +0 -1
- package/src/utils/generator-prompts.d.ts.map +0 -1
- package/src/utils/get-import-path.d.ts.map +0 -1
- package/src/utils/get-main-file-dir.d.ts.map +0 -1
- package/src/utils/is-locally-linked-package-version.d.ts.map +0 -1
- package/src/utils/is-valid-variable.d.ts.map +0 -1
- package/src/utils/npm-config.d.ts.map +0 -1
- package/src/utils/package-json/create-entry-points.d.ts.map +0 -1
- package/src/utils/package-json/get-npm-scope.d.ts.map +0 -1
- package/src/utils/package-json/index.d.ts.map +0 -1
- package/src/utils/package-json/sort-fields.d.ts.map +0 -1
- package/src/utils/package-json/update-package-json.d.ts.map +0 -1
- package/src/utils/package-manager-workspaces.d.ts.map +0 -1
- package/src/utils/prettier.d.ts.map +0 -1
- package/src/utils/swc/add-swc-config.d.ts.map +0 -1
- package/src/utils/swc/add-swc-dependencies.d.ts.map +0 -1
- package/src/utils/swc/compile-swc.d.ts.map +0 -1
- package/src/utils/swc/get-swcrc-path.d.ts.map +0 -1
- package/src/utils/typescript/__mocks__/function-after-declarations-plugin.d.ts.map +0 -1
- package/src/utils/typescript/__mocks__/function-after-plugin.d.ts.map +0 -1
- package/src/utils/typescript/__mocks__/function-direct-export.d.ts.map +0 -1
- package/src/utils/typescript/__mocks__/function-multiple-hooks.d.ts.map +0 -1
- package/src/utils/typescript/__mocks__/plugin-a.d.ts.map +0 -1
- package/src/utils/typescript/__mocks__/plugin-b.d.ts.map +0 -1
- package/src/utils/typescript/add-tslib-dependencies.d.ts.map +0 -1
- package/src/utils/typescript/ast-utils.d.ts.map +0 -1
- package/src/utils/typescript/compile-typescript-files.d.ts.map +0 -1
- package/src/utils/typescript/configuration.d.ts.map +0 -1
- package/src/utils/typescript/create-ts-config.d.ts.map +0 -1
- package/src/utils/typescript/ensure-typescript.d.ts.map +0 -1
- package/src/utils/typescript/get-source-nodes.d.ts.map +0 -1
- package/src/utils/typescript/load-ts-transformers.d.ts.map +0 -1
- package/src/utils/typescript/plugin.d.ts.map +0 -1
- package/src/utils/typescript/print-diagnostics.d.ts.map +0 -1
- package/src/utils/typescript/raw-tsconfig.d.ts.map +0 -1
- package/src/utils/typescript/run-type-check.d.ts.map +0 -1
- package/src/utils/typescript/ts-config.d.ts.map +0 -1
- package/src/utils/typescript/ts-solution-setup.d.ts.map +0 -1
- package/src/utils/typescript/types.d.ts.map +0 -1
- package/src/utils/versions.d.ts.map +0 -1
- package/src/utils/watch-for-single-file-changes.d.ts.map +0 -1
- package/typescript.d.ts.map +0 -1
- /package/{LICENSE → dist/LICENSE} +0 -0
- /package/{babel.js → dist/babel.js} +0 -0
- /package/{plugins → dist/plugins}/jest/local-registry.js +0 -0
- /package/{src → dist/src}/executors/copy-workspace-modules/schema.d.ts +0 -0
- /package/{src → dist/src}/executors/copy-workspace-modules/schema.json +0 -0
- /package/{src → dist/src}/executors/node/lib/coalescing-debounce.js +0 -0
- /package/{src → dist/src}/executors/node/lib/esm-loader.js +0 -0
- /package/{src → dist/src}/executors/node/lib/kill-tree.js +0 -0
- /package/{src → dist/src}/executors/node/lib/line-aware-writer.js +0 -0
- /package/{src → dist/src}/executors/node/lib/output-file.js +0 -0
- /package/{src → dist/src}/executors/node/schema.d.ts +0 -0
- /package/{src → dist/src}/executors/node/schema.json +0 -0
- /package/{src → dist/src}/executors/prune-lockfile/schema.d.ts +0 -0
- /package/{src → dist/src}/executors/prune-lockfile/schema.json +0 -0
- /package/{src → dist/src}/executors/release-publish/format-bytes.js +0 -0
- /package/{src → dist/src}/executors/release-publish/log-tar.js +0 -0
- /package/{src → dist/src}/executors/release-publish/schema.d.ts +0 -0
- /package/{src → dist/src}/executors/release-publish/schema.json +0 -0
- /package/{src → dist/src}/executors/swc/schema.json +0 -0
- /package/{src → dist/src}/executors/swc/swc.impl.js +0 -0
- /package/{src → dist/src}/executors/tsc/lib/batch/build-task-info-per-tsconfig-map.js +0 -0
- /package/{src → dist/src}/executors/tsc/lib/batch/index.js +0 -0
- /package/{src → dist/src}/executors/tsc/lib/batch/normalize-tasks-options.js +0 -0
- /package/{src → dist/src}/executors/tsc/lib/batch/types.js +0 -0
- /package/{src → dist/src}/executors/tsc/lib/get-custom-transformers-factory.js +0 -0
- /package/{src → dist/src}/executors/tsc/lib/get-task-options.js +0 -0
- /package/{src → dist/src}/executors/tsc/lib/get-tsconfig.js +0 -0
- /package/{src → dist/src}/executors/tsc/lib/index.js +0 -0
- /package/{src → dist/src}/executors/tsc/lib/normalize-options.js +0 -0
- /package/{src → dist/src}/executors/tsc/lib/typescript-diagnostic-reporters.js +0 -0
- /package/{src → dist/src}/executors/tsc/schema.json +0 -0
- /package/{src → dist/src}/executors/tsc/tsc.batch-impl.js +0 -0
- /package/{src → dist/src}/executors/tsc/tsc.impl.js +0 -0
- /package/{src → dist/src}/executors/verdaccio/schema.d.ts +0 -0
- /package/{src → dist/src}/executors/verdaccio/schema.json +0 -0
- /package/{src → dist/src}/executors/verdaccio/verdaccio.impl.js +0 -0
- /package/{src → dist/src}/generators/convert-to-swc/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/convert-to-swc/schema.json +0 -0
- /package/{src → dist/src}/generators/init/files/non-ts-solution/__fileName__ +0 -0
- /package/{src → dist/src}/generators/init/files/ts-solution/tsconfig.base.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/init/files/ts-solution/tsconfig.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/init/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/library/files/jest-config/jest.config.__ext__ +0 -0
- /package/{src → dist/src}/generators/library/files/lib/src/index.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/library/files/lib/src/lib/__fileName__.spec.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/library/files/lib/src/lib/__fileName__.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/library/files/readme/README.md +0 -0
- /package/{src → dist/src}/generators/library/files/tsconfig-lib/non-ts-solution/tsconfig.lib.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/library/files/tsconfig-lib/ts-solution/tsconfig.lib.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/library/schema.json +0 -0
- /package/{src → dist/src}/generators/library/utils/add-release-config.js +0 -0
- /package/{src/utils/typescript/types.js → dist/src/generators/release-version/release-version.js} +0 -0
- /package/{src → dist/src}/generators/setup-build/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/setup-build/schema.json +0 -0
- /package/{src → dist/src}/generators/setup-prettier/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/setup-prettier/schema.json +0 -0
- /package/{src → dist/src}/generators/setup-verdaccio/files/config.yml +0 -0
- /package/{src → dist/src}/generators/setup-verdaccio/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/setup-verdaccio/schema.json +0 -0
- /package/{src → dist/src}/generators/typescript-sync/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/typescript-sync/schema.json +0 -0
- /package/{src → dist/src}/index.js +0 -0
- /package/{src → dist/src}/migrations/update-21-5-0/migrate-development-custom-condition.js +0 -0
- /package/{src → dist/src}/migrations/update-22-1-0/remove-redundant-ts-project-references.js +0 -0
- /package/{src → dist/src}/plugins/jest/start-local-registry.js +0 -0
- /package/{src → dist/src}/release/utils/semver.js +0 -0
- /package/{src → dist/src}/release/utils/update-lock-file.js +0 -0
- /package/{src → dist/src}/utils/add-babel-inputs.js +0 -0
- /package/{src → dist/src}/utils/add-local-registry-scripts.js +0 -0
- /package/{src → dist/src}/utils/assets/assets.js +0 -0
- /package/{src → dist/src}/utils/assets/copy-assets-handler.js +0 -0
- /package/{src → dist/src}/utils/assets/index.js +0 -0
- /package/{src → dist/src}/utils/assets/normalize-assets.js +0 -0
- /package/{src → dist/src}/utils/check-dependencies.js +0 -0
- /package/{src → dist/src}/utils/code-frames/highlight.js +0 -0
- /package/{src → dist/src}/utils/code-frames/identifiers.js +0 -0
- /package/{src → dist/src}/utils/compiler-helper-dependency.js +0 -0
- /package/{src → dist/src}/utils/find-npm-dependencies.js +0 -0
- /package/{src → dist/src}/utils/generate-globs.js +0 -0
- /package/{src → dist/src}/utils/get-import-path.js +0 -0
- /package/{src → dist/src}/utils/get-main-file-dir.js +0 -0
- /package/{src → dist/src}/utils/is-locally-linked-package-version.js +0 -0
- /package/{src → dist/src}/utils/is-valid-variable.js +0 -0
- /package/{src → dist/src}/utils/npm-config.js +0 -0
- /package/{src → dist/src}/utils/package-json/create-entry-points.js +0 -0
- /package/{src → dist/src}/utils/package-json/get-npm-scope.js +0 -0
- /package/{src → dist/src}/utils/package-json/index.js +0 -0
- /package/{src → dist/src}/utils/package-json/sort-fields.js +0 -0
- /package/{src → dist/src}/utils/package-manager-workspaces.js +0 -0
- /package/{src → dist/src}/utils/schema.d.ts +0 -0
- /package/{src → dist/src}/utils/swc/add-swc-config.js +0 -0
- /package/{src → dist/src}/utils/swc/get-swcrc-path.js +0 -0
- /package/{src → dist/src}/utils/typescript/__mocks__/function-after-declarations-plugin.js +0 -0
- /package/{src → dist/src}/utils/typescript/__mocks__/function-after-plugin.js +0 -0
- /package/{src → dist/src}/utils/typescript/__mocks__/function-direct-export.js +0 -0
- /package/{src → dist/src}/utils/typescript/__mocks__/function-multiple-hooks.js +0 -0
- /package/{src → dist/src}/utils/typescript/__mocks__/plugin-a.js +0 -0
- /package/{src → dist/src}/utils/typescript/__mocks__/plugin-b.js +0 -0
- /package/{src → dist/src}/utils/typescript/add-tslib-dependencies.js +0 -0
- /package/{src → dist/src}/utils/typescript/ast-utils.js +0 -0
- /package/{src → dist/src}/utils/typescript/configuration.js +0 -0
- /package/{src → dist/src}/utils/typescript/create-ts-config.js +0 -0
- /package/{src → dist/src}/utils/typescript/ensure-typescript.js +0 -0
- /package/{src → dist/src}/utils/typescript/get-source-nodes.js +0 -0
- /package/{src → dist/src}/utils/typescript/load-ts-transformers.js +0 -0
- /package/{src → dist/src}/utils/typescript/print-diagnostics.js +0 -0
- /package/{src → dist/src}/utils/typescript/raw-tsconfig.js +0 -0
- /package/{src → dist/src}/utils/watch-for-single-file-changes.js +0 -0
- /package/{typescript.js → dist/typescript.js} +0 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export { forceRegisterEsmLoader, loadTsFile, registerTsProject, registerTsConfigPaths, requireWithTsconfigFallback, } from 'nx/src/plugins/js/utils/register';
|
|
2
|
+
export { TargetProjectLocator, isBuiltinModuleImport, } from 'nx/src/plugins/js/project-graph/build-dependencies/target-project-locator';
|
|
3
|
+
export { findProjectsNpmDependencies } from 'nx/src/plugins/js/package-json/create-package-json';
|
|
4
|
+
export { walkTsconfigExtendsChain, type RawTsconfigJsonCache, } from './src/utils/typescript/raw-tsconfig';
|
|
5
|
+
export { isEsmProject } from './src/utils/module-format/is-esm-project';
|
|
6
|
+
export { TS_SOLUTION_SETUP_TSCONFIG_INPUT, addProjectToTsSolutionWorkspace, assertNotUsingTsSolutionSetup, findRuntimeTsConfigName, getDefinedCustomConditionName, getProjectSourceRoot, getProjectType, isUsingTsSolutionSetup, shouldConfigureTsSolutionSetup, updateTsconfigFiles, } from './src/utils/typescript/ts-solution-setup';
|
|
7
|
+
export { ensureTypescript } from './src/utils/typescript/ensure-typescript';
|
|
8
|
+
export { getNeededCompilerOptionOverrides } from './src/utils/typescript/configuration';
|
|
9
|
+
export { compileTypeScript, type TypeScriptCompilationOptions, } from './src/utils/typescript/compilation';
|
|
10
|
+
export { calculateProjectBuildableDependencies, calculateProjectDependencies, computeCompilerOptionsPaths, createTmpTsConfig, type DependentBuildableProjectNode, } from './src/utils/buildable-libs-utils';
|
|
11
|
+
export { addSwcConfig, addSwcTestConfig } from './src/utils/swc/add-swc-config';
|
|
12
|
+
export { addSwcDependencies, addSwcRegisterDependencies, } from './src/utils/swc/add-swc-dependencies';
|
|
13
|
+
export { type AssetGlob } from './src/utils/assets/assets';
|
|
14
|
+
export { CopyAssetsHandler } from './src/utils/assets/copy-assets-handler';
|
|
15
|
+
export { sortPackageJsonFields } from './src/utils/package-json/sort-fields';
|
|
16
|
+
export { getNpmScope } from './src/utils/package-json/get-npm-scope';
|
|
17
|
+
export { getProjectPackageManagerWorkspaceState, getProjectPackageManagerWorkspaceStateWarningTask, } from './src/utils/package-manager-workspaces';
|
|
18
|
+
export { findNpmDependencies } from './src/utils/find-npm-dependencies';
|
|
19
|
+
export { addBuildAndWatchDepsTargets, isValidPackageJsonBuildConfig, } from './src/plugins/typescript/util';
|
|
20
|
+
export { normalizeLinterOption, normalizeUnitTestRunnerOption, } from './src/utils/generator-prompts';
|
|
21
|
+
export { createGlobPatternsForDependencies } from './src/utils/generate-globs';
|
|
22
|
+
export { getImportPath } from './src/utils/get-import-path';
|
|
23
|
+
export { stripGlobToBaseDir } from './src/utils/strip-glob-to-base-dir';
|
|
24
|
+
export { addLocalRegistryScripts } from './src/utils/add-local-registry-scripts';
|
|
25
|
+
export type { LibraryGeneratorSchema } from './src/generators/library/schema';
|
|
26
|
+
export { addReleaseConfigForNonTsSolution, addReleaseConfigForTsSolution, releaseTasks, } from './src/generators/library/utils/add-release-config';
|
|
27
|
+
export { nxVersion, esbuildVersion, prettierVersion, swcCliVersion, swcCoreVersion, swcHelpersVersion, swcNodeVersion, tsLibVersion, typesNodeVersion, } from './src/utils/versions';
|
package/dist/internal.js
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Semi-private surface for first-party Nx packages.
|
|
3
|
+
//
|
|
4
|
+
// External plugins should NOT import from here — this entry is curated for
|
|
5
|
+
// internal consumers and may change without semver protection. Consider it
|
|
6
|
+
// the @nx/js equivalent of `@nx/devkit/internal`.
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.esbuildVersion = exports.nxVersion = exports.releaseTasks = exports.addReleaseConfigForTsSolution = exports.addReleaseConfigForNonTsSolution = exports.addLocalRegistryScripts = exports.stripGlobToBaseDir = exports.getImportPath = exports.createGlobPatternsForDependencies = exports.normalizeUnitTestRunnerOption = exports.normalizeLinterOption = exports.isValidPackageJsonBuildConfig = exports.addBuildAndWatchDepsTargets = exports.findNpmDependencies = exports.getProjectPackageManagerWorkspaceStateWarningTask = exports.getProjectPackageManagerWorkspaceState = exports.getNpmScope = exports.sortPackageJsonFields = exports.CopyAssetsHandler = exports.addSwcRegisterDependencies = exports.addSwcDependencies = exports.addSwcTestConfig = exports.addSwcConfig = exports.createTmpTsConfig = exports.computeCompilerOptionsPaths = exports.calculateProjectDependencies = exports.calculateProjectBuildableDependencies = exports.compileTypeScript = exports.getNeededCompilerOptionOverrides = exports.ensureTypescript = exports.updateTsconfigFiles = exports.shouldConfigureTsSolutionSetup = exports.isUsingTsSolutionSetup = exports.getProjectType = exports.getProjectSourceRoot = exports.getDefinedCustomConditionName = exports.findRuntimeTsConfigName = exports.assertNotUsingTsSolutionSetup = exports.addProjectToTsSolutionWorkspace = exports.TS_SOLUTION_SETUP_TSCONFIG_INPUT = exports.isEsmProject = exports.walkTsconfigExtendsChain = exports.findProjectsNpmDependencies = exports.isBuiltinModuleImport = exports.TargetProjectLocator = exports.requireWithTsconfigFallback = exports.registerTsConfigPaths = exports.registerTsProject = exports.loadTsFile = exports.forceRegisterEsmLoader = void 0;
|
|
9
|
+
exports.typesNodeVersion = exports.tsLibVersion = exports.swcNodeVersion = exports.swcHelpersVersion = exports.swcCoreVersion = exports.swcCliVersion = exports.prettierVersion = void 0;
|
|
10
|
+
// Re-exports of nx-source internals (need `no-restricted-imports` overrides).
|
|
11
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-imports
|
|
12
|
+
var register_1 = require("nx/src/plugins/js/utils/register");
|
|
13
|
+
Object.defineProperty(exports, "forceRegisterEsmLoader", { enumerable: true, get: function () { return register_1.forceRegisterEsmLoader; } });
|
|
14
|
+
Object.defineProperty(exports, "loadTsFile", { enumerable: true, get: function () { return register_1.loadTsFile; } });
|
|
15
|
+
Object.defineProperty(exports, "registerTsProject", { enumerable: true, get: function () { return register_1.registerTsProject; } });
|
|
16
|
+
Object.defineProperty(exports, "registerTsConfigPaths", { enumerable: true, get: function () { return register_1.registerTsConfigPaths; } });
|
|
17
|
+
Object.defineProperty(exports, "requireWithTsconfigFallback", { enumerable: true, get: function () { return register_1.requireWithTsconfigFallback; } });
|
|
18
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-imports
|
|
19
|
+
var target_project_locator_1 = require("nx/src/plugins/js/project-graph/build-dependencies/target-project-locator");
|
|
20
|
+
Object.defineProperty(exports, "TargetProjectLocator", { enumerable: true, get: function () { return target_project_locator_1.TargetProjectLocator; } });
|
|
21
|
+
Object.defineProperty(exports, "isBuiltinModuleImport", { enumerable: true, get: function () { return target_project_locator_1.isBuiltinModuleImport; } });
|
|
22
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-imports
|
|
23
|
+
var create_package_json_1 = require("nx/src/plugins/js/package-json/create-package-json");
|
|
24
|
+
Object.defineProperty(exports, "findProjectsNpmDependencies", { enumerable: true, get: function () { return create_package_json_1.findProjectsNpmDependencies; } });
|
|
25
|
+
// Raw tsconfig walkers (the other AST utils ship via the public @nx/js entry)
|
|
26
|
+
var raw_tsconfig_1 = require("./src/utils/typescript/raw-tsconfig");
|
|
27
|
+
Object.defineProperty(exports, "walkTsconfigExtendsChain", { enumerable: true, get: function () { return raw_tsconfig_1.walkTsconfigExtendsChain; } });
|
|
28
|
+
// Module-format detection for generators (project package.json `type` field +
|
|
29
|
+
// TS solution awareness; mirrors Node's nearest-package.json semantics).
|
|
30
|
+
var is_esm_project_1 = require("./src/utils/module-format/is-esm-project");
|
|
31
|
+
Object.defineProperty(exports, "isEsmProject", { enumerable: true, get: function () { return is_esm_project_1.isEsmProject; } });
|
|
32
|
+
// TS solution setup detection
|
|
33
|
+
var ts_solution_setup_1 = require("./src/utils/typescript/ts-solution-setup");
|
|
34
|
+
Object.defineProperty(exports, "TS_SOLUTION_SETUP_TSCONFIG_INPUT", { enumerable: true, get: function () { return ts_solution_setup_1.TS_SOLUTION_SETUP_TSCONFIG_INPUT; } });
|
|
35
|
+
Object.defineProperty(exports, "addProjectToTsSolutionWorkspace", { enumerable: true, get: function () { return ts_solution_setup_1.addProjectToTsSolutionWorkspace; } });
|
|
36
|
+
Object.defineProperty(exports, "assertNotUsingTsSolutionSetup", { enumerable: true, get: function () { return ts_solution_setup_1.assertNotUsingTsSolutionSetup; } });
|
|
37
|
+
Object.defineProperty(exports, "findRuntimeTsConfigName", { enumerable: true, get: function () { return ts_solution_setup_1.findRuntimeTsConfigName; } });
|
|
38
|
+
Object.defineProperty(exports, "getDefinedCustomConditionName", { enumerable: true, get: function () { return ts_solution_setup_1.getDefinedCustomConditionName; } });
|
|
39
|
+
Object.defineProperty(exports, "getProjectSourceRoot", { enumerable: true, get: function () { return ts_solution_setup_1.getProjectSourceRoot; } });
|
|
40
|
+
Object.defineProperty(exports, "getProjectType", { enumerable: true, get: function () { return ts_solution_setup_1.getProjectType; } });
|
|
41
|
+
Object.defineProperty(exports, "isUsingTsSolutionSetup", { enumerable: true, get: function () { return ts_solution_setup_1.isUsingTsSolutionSetup; } });
|
|
42
|
+
Object.defineProperty(exports, "shouldConfigureTsSolutionSetup", { enumerable: true, get: function () { return ts_solution_setup_1.shouldConfigureTsSolutionSetup; } });
|
|
43
|
+
Object.defineProperty(exports, "updateTsconfigFiles", { enumerable: true, get: function () { return ts_solution_setup_1.updateTsconfigFiles; } });
|
|
44
|
+
// TypeScript helpers (resolvePathsBaseUrl, extractTsConfigBase,
|
|
45
|
+
// tsConfigBaseOptions, addTsLibDependencies, resolveModuleByImport — all ship
|
|
46
|
+
// via the public @nx/js entry)
|
|
47
|
+
var ensure_typescript_1 = require("./src/utils/typescript/ensure-typescript");
|
|
48
|
+
Object.defineProperty(exports, "ensureTypescript", { enumerable: true, get: function () { return ensure_typescript_1.ensureTypescript; } });
|
|
49
|
+
var configuration_1 = require("./src/utils/typescript/configuration");
|
|
50
|
+
Object.defineProperty(exports, "getNeededCompilerOptionOverrides", { enumerable: true, get: function () { return configuration_1.getNeededCompilerOptionOverrides; } });
|
|
51
|
+
var compilation_1 = require("./src/utils/typescript/compilation");
|
|
52
|
+
Object.defineProperty(exports, "compileTypeScript", { enumerable: true, get: function () { return compilation_1.compileTypeScript; } });
|
|
53
|
+
// Build orchestration
|
|
54
|
+
var buildable_libs_utils_1 = require("./src/utils/buildable-libs-utils");
|
|
55
|
+
Object.defineProperty(exports, "calculateProjectBuildableDependencies", { enumerable: true, get: function () { return buildable_libs_utils_1.calculateProjectBuildableDependencies; } });
|
|
56
|
+
Object.defineProperty(exports, "calculateProjectDependencies", { enumerable: true, get: function () { return buildable_libs_utils_1.calculateProjectDependencies; } });
|
|
57
|
+
Object.defineProperty(exports, "computeCompilerOptionsPaths", { enumerable: true, get: function () { return buildable_libs_utils_1.computeCompilerOptionsPaths; } });
|
|
58
|
+
Object.defineProperty(exports, "createTmpTsConfig", { enumerable: true, get: function () { return buildable_libs_utils_1.createTmpTsConfig; } });
|
|
59
|
+
// SWC helpers
|
|
60
|
+
var add_swc_config_1 = require("./src/utils/swc/add-swc-config");
|
|
61
|
+
Object.defineProperty(exports, "addSwcConfig", { enumerable: true, get: function () { return add_swc_config_1.addSwcConfig; } });
|
|
62
|
+
Object.defineProperty(exports, "addSwcTestConfig", { enumerable: true, get: function () { return add_swc_config_1.addSwcTestConfig; } });
|
|
63
|
+
var add_swc_dependencies_1 = require("./src/utils/swc/add-swc-dependencies");
|
|
64
|
+
Object.defineProperty(exports, "addSwcDependencies", { enumerable: true, get: function () { return add_swc_dependencies_1.addSwcDependencies; } });
|
|
65
|
+
Object.defineProperty(exports, "addSwcRegisterDependencies", { enumerable: true, get: function () { return add_swc_dependencies_1.addSwcRegisterDependencies; } });
|
|
66
|
+
var copy_assets_handler_1 = require("./src/utils/assets/copy-assets-handler");
|
|
67
|
+
Object.defineProperty(exports, "CopyAssetsHandler", { enumerable: true, get: function () { return copy_assets_handler_1.CopyAssetsHandler; } });
|
|
68
|
+
// Package-manager / package.json helpers
|
|
69
|
+
var sort_fields_1 = require("./src/utils/package-json/sort-fields");
|
|
70
|
+
Object.defineProperty(exports, "sortPackageJsonFields", { enumerable: true, get: function () { return sort_fields_1.sortPackageJsonFields; } });
|
|
71
|
+
var get_npm_scope_1 = require("./src/utils/package-json/get-npm-scope");
|
|
72
|
+
Object.defineProperty(exports, "getNpmScope", { enumerable: true, get: function () { return get_npm_scope_1.getNpmScope; } });
|
|
73
|
+
var package_manager_workspaces_1 = require("./src/utils/package-manager-workspaces");
|
|
74
|
+
Object.defineProperty(exports, "getProjectPackageManagerWorkspaceState", { enumerable: true, get: function () { return package_manager_workspaces_1.getProjectPackageManagerWorkspaceState; } });
|
|
75
|
+
Object.defineProperty(exports, "getProjectPackageManagerWorkspaceStateWarningTask", { enumerable: true, get: function () { return package_manager_workspaces_1.getProjectPackageManagerWorkspaceStateWarningTask; } });
|
|
76
|
+
var find_npm_dependencies_1 = require("./src/utils/find-npm-dependencies");
|
|
77
|
+
Object.defineProperty(exports, "findNpmDependencies", { enumerable: true, get: function () { return find_npm_dependencies_1.findNpmDependencies; } });
|
|
78
|
+
// Plugin helpers
|
|
79
|
+
var util_1 = require("./src/plugins/typescript/util");
|
|
80
|
+
Object.defineProperty(exports, "addBuildAndWatchDepsTargets", { enumerable: true, get: function () { return util_1.addBuildAndWatchDepsTargets; } });
|
|
81
|
+
Object.defineProperty(exports, "isValidPackageJsonBuildConfig", { enumerable: true, get: function () { return util_1.isValidPackageJsonBuildConfig; } });
|
|
82
|
+
// Generator helpers
|
|
83
|
+
var generator_prompts_1 = require("./src/utils/generator-prompts");
|
|
84
|
+
Object.defineProperty(exports, "normalizeLinterOption", { enumerable: true, get: function () { return generator_prompts_1.normalizeLinterOption; } });
|
|
85
|
+
Object.defineProperty(exports, "normalizeUnitTestRunnerOption", { enumerable: true, get: function () { return generator_prompts_1.normalizeUnitTestRunnerOption; } });
|
|
86
|
+
var generate_globs_1 = require("./src/utils/generate-globs");
|
|
87
|
+
Object.defineProperty(exports, "createGlobPatternsForDependencies", { enumerable: true, get: function () { return generate_globs_1.createGlobPatternsForDependencies; } });
|
|
88
|
+
var get_import_path_1 = require("./src/utils/get-import-path");
|
|
89
|
+
Object.defineProperty(exports, "getImportPath", { enumerable: true, get: function () { return get_import_path_1.getImportPath; } });
|
|
90
|
+
var strip_glob_to_base_dir_1 = require("./src/utils/strip-glob-to-base-dir");
|
|
91
|
+
Object.defineProperty(exports, "stripGlobToBaseDir", { enumerable: true, get: function () { return strip_glob_to_base_dir_1.stripGlobToBaseDir; } });
|
|
92
|
+
var add_local_registry_scripts_1 = require("./src/utils/add-local-registry-scripts");
|
|
93
|
+
Object.defineProperty(exports, "addLocalRegistryScripts", { enumerable: true, get: function () { return add_local_registry_scripts_1.addLocalRegistryScripts; } });
|
|
94
|
+
var add_release_config_1 = require("./src/generators/library/utils/add-release-config");
|
|
95
|
+
Object.defineProperty(exports, "addReleaseConfigForNonTsSolution", { enumerable: true, get: function () { return add_release_config_1.addReleaseConfigForNonTsSolution; } });
|
|
96
|
+
Object.defineProperty(exports, "addReleaseConfigForTsSolution", { enumerable: true, get: function () { return add_release_config_1.addReleaseConfigForTsSolution; } });
|
|
97
|
+
Object.defineProperty(exports, "releaseTasks", { enumerable: true, get: function () { return add_release_config_1.releaseTasks; } });
|
|
98
|
+
// Version constants
|
|
99
|
+
var versions_1 = require("./src/utils/versions");
|
|
100
|
+
Object.defineProperty(exports, "nxVersion", { enumerable: true, get: function () { return versions_1.nxVersion; } });
|
|
101
|
+
Object.defineProperty(exports, "esbuildVersion", { enumerable: true, get: function () { return versions_1.esbuildVersion; } });
|
|
102
|
+
Object.defineProperty(exports, "prettierVersion", { enumerable: true, get: function () { return versions_1.prettierVersion; } });
|
|
103
|
+
Object.defineProperty(exports, "swcCliVersion", { enumerable: true, get: function () { return versions_1.swcCliVersion; } });
|
|
104
|
+
Object.defineProperty(exports, "swcCoreVersion", { enumerable: true, get: function () { return versions_1.swcCoreVersion; } });
|
|
105
|
+
Object.defineProperty(exports, "swcHelpersVersion", { enumerable: true, get: function () { return versions_1.swcHelpersVersion; } });
|
|
106
|
+
Object.defineProperty(exports, "swcNodeVersion", { enumerable: true, get: function () { return versions_1.swcNodeVersion; } });
|
|
107
|
+
Object.defineProperty(exports, "tsLibVersion", { enumerable: true, get: function () { return versions_1.tsLibVersion; } });
|
|
108
|
+
Object.defineProperty(exports, "typesNodeVersion", { enumerable: true, get: function () { return versions_1.typesNodeVersion; } });
|
|
@@ -8,6 +8,7 @@ const path_1 = require("path");
|
|
|
8
8
|
const fs_1 = require("fs");
|
|
9
9
|
// eslint-disable-next-line @typescript-eslint/no-restricted-imports
|
|
10
10
|
const get_workspace_packages_from_graph_1 = require("nx/src/plugins/js/utils/get-workspace-packages-from-graph");
|
|
11
|
+
const strip_glob_to_base_dir_1 = require("../../utils/strip-glob-to-base-dir");
|
|
11
12
|
async function copyWorkspaceModules(schema, context) {
|
|
12
13
|
devkit_1.logger.log('Copying Workspace Modules to Build Directory...');
|
|
13
14
|
const outputDirectory = getOutputDir(schema, context);
|
|
@@ -128,6 +129,7 @@ function getOutputDir(schema, context) {
|
|
|
128
129
|
return outputDir;
|
|
129
130
|
}
|
|
130
131
|
function normalizeOutputPath(outputPath) {
|
|
132
|
+
outputPath = (0, strip_glob_to_base_dir_1.stripGlobToBaseDir)(outputPath);
|
|
131
133
|
if (!outputPath.startsWith(devkit_1.workspaceRoot)) {
|
|
132
134
|
outputPath = (0, path_1.join)(devkit_1.workspaceRoot, outputPath);
|
|
133
135
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { type ModuleFormat } from '../../../utils/module-format/module-format';
|
|
2
|
+
export type { ModuleFormat };
|
|
2
3
|
export interface ModuleFormatDetectionOptions {
|
|
3
4
|
projectRoot: string;
|
|
4
5
|
workspaceRoot: string;
|
|
@@ -7,4 +8,3 @@ export interface ModuleFormatDetectionOptions {
|
|
|
7
8
|
buildOptions?: any;
|
|
8
9
|
}
|
|
9
10
|
export declare function detectModuleFormat(options: ModuleFormatDetectionOptions): ModuleFormat;
|
|
10
|
-
//# sourceMappingURL=detect-module-format.d.ts.map
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.detectModuleFormat = detectModuleFormat;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
4
|
const devkit_1 = require("@nx/devkit");
|
|
6
5
|
const fs_1 = require("fs");
|
|
7
6
|
const path_1 = require("path");
|
|
8
7
|
const ts_config_1 = require("../../../utils/typescript/ts-config");
|
|
9
|
-
const
|
|
8
|
+
const module_format_1 = require("../../../utils/module-format/module-format");
|
|
10
9
|
function detectModuleFormat(options) {
|
|
11
10
|
if (options.buildOptions?.format) {
|
|
12
11
|
const formats = Array.isArray(options.buildOptions.format)
|
|
@@ -28,13 +27,9 @@ function detectModuleFormat(options) {
|
|
|
28
27
|
const packageJsonPath = (0, path_1.join)(options.workspaceRoot, options.projectRoot, 'package.json');
|
|
29
28
|
if ((0, fs_1.existsSync)(packageJsonPath)) {
|
|
30
29
|
try {
|
|
31
|
-
const
|
|
32
|
-
if (
|
|
33
|
-
return
|
|
34
|
-
}
|
|
35
|
-
if (packageJson.type === 'commonjs') {
|
|
36
|
-
return 'cjs';
|
|
37
|
-
}
|
|
30
|
+
const fmt = (0, module_format_1.getPackageJsonModuleFormat)((0, devkit_1.readJsonFile)(packageJsonPath));
|
|
31
|
+
if (fmt)
|
|
32
|
+
return fmt;
|
|
38
33
|
}
|
|
39
34
|
catch {
|
|
40
35
|
// Continue to next detection method
|
|
@@ -42,20 +37,9 @@ function detectModuleFormat(options) {
|
|
|
42
37
|
}
|
|
43
38
|
if (options.tsConfig && (0, fs_1.existsSync)(options.tsConfig)) {
|
|
44
39
|
try {
|
|
45
|
-
const
|
|
46
|
-
if (
|
|
47
|
-
|
|
48
|
-
tsConfig.options.module === ts.ModuleKind.ES2022 ||
|
|
49
|
-
tsConfig.options.module === ts.ModuleKind.ESNext ||
|
|
50
|
-
tsConfig.options.module === ts.ModuleKind.NodeNext) {
|
|
51
|
-
// For NodeNext, we need to check moduleResolution
|
|
52
|
-
if (tsConfig.options.module === ts.ModuleKind.NodeNext) {
|
|
53
|
-
// NodeNext uses package.json type field, which we already checked
|
|
54
|
-
// Default to CJS if no type field
|
|
55
|
-
return 'cjs';
|
|
56
|
-
}
|
|
57
|
-
return 'esm';
|
|
58
|
-
}
|
|
40
|
+
const fmt = (0, module_format_1.getTsConfigModuleFormat)((0, ts_config_1.readTsConfig)(options.tsConfig).options);
|
|
41
|
+
if (fmt)
|
|
42
|
+
return fmt;
|
|
59
43
|
}
|
|
60
44
|
catch {
|
|
61
45
|
// Continue to default
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.nodeExecutor = nodeExecutor;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
const internal_1 = require("@nx/devkit/internal");
|
|
5
6
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
7
|
const child_process_1 = require("child_process");
|
|
7
8
|
const devkit_1 = require("@nx/devkit");
|
|
8
|
-
const async_iterable_1 = require("@nx/devkit/src/utils/async-iterable");
|
|
9
9
|
const client_1 = require("nx/src/daemon/client/client");
|
|
10
10
|
const crypto_1 = require("crypto");
|
|
11
11
|
const path = tslib_1.__importStar(require("path"));
|
|
@@ -18,6 +18,7 @@ const fileutils_1 = require("nx/src/utils/fileutils");
|
|
|
18
18
|
const utils_1 = require("nx/src/tasks-runner/utils");
|
|
19
19
|
const detect_module_format_1 = require("./lib/detect-module-format");
|
|
20
20
|
const output_file_1 = require("./lib/output-file");
|
|
21
|
+
const strip_glob_to_base_dir_1 = require("../../utils/strip-glob-to-base-dir");
|
|
21
22
|
const globalLineAwareWriter = new line_aware_writer_1.LineAwareWriter();
|
|
22
23
|
async function* nodeExecutor(options, context) {
|
|
23
24
|
process.env.NODE_ENV ??= context?.configurationName ?? 'development';
|
|
@@ -59,7 +60,7 @@ async function* nodeExecutor(options, context) {
|
|
|
59
60
|
let additionalExitHandler = null;
|
|
60
61
|
let currentTask = null;
|
|
61
62
|
const tasks = [];
|
|
62
|
-
yield* (0,
|
|
63
|
+
yield* (0, internal_1.createAsyncIterable)(async ({ done, next, error, registerCleanup }) => {
|
|
63
64
|
const processQueue = async () => {
|
|
64
65
|
if (tasks.length === 0)
|
|
65
66
|
return;
|
|
@@ -230,7 +231,7 @@ async function* nodeExecutor(options, context) {
|
|
|
230
231
|
if ((0, devkit_1.isDaemonEnabled)()) {
|
|
231
232
|
additionalExitHandler = await client_1.daemonClient.registerFileWatcher({
|
|
232
233
|
watchProjects: [context.projectName],
|
|
233
|
-
|
|
234
|
+
includeDependencies: true,
|
|
234
235
|
}, async (err, data) => {
|
|
235
236
|
if (err === 'reconnecting') {
|
|
236
237
|
// Silent - daemon restarts automatically on lockfile changes
|
|
@@ -298,7 +299,7 @@ function calculateResolveMappings(context, options) {
|
|
|
298
299
|
// `outputs` are cache patterns and may contain globs (e.g. from the
|
|
299
300
|
// inferred `@nx/js/typescript` build target). Strip the glob portion
|
|
300
301
|
// so the runtime require overrides resolve to the actual output dir.
|
|
301
|
-
const outputDir = stripGlobToBaseDir(c.outputs[0]);
|
|
302
|
+
const outputDir = (0, strip_glob_to_base_dir_1.stripGlobToBaseDir)(c.outputs[0]);
|
|
302
303
|
m[c.name] = (0, devkit_1.joinPathFragments)(context.root, outputDir);
|
|
303
304
|
}
|
|
304
305
|
return m;
|
|
@@ -338,7 +339,7 @@ function getFileToRun(context, project, buildOptions, buildTargetExecutor) {
|
|
|
338
339
|
// `{projectRoot}/dist/**/*.{js,...}` to avoid caching non-tsc files).
|
|
339
340
|
// Strip the glob portion back to the last path separator before it to
|
|
340
341
|
// recover the base output directory.
|
|
341
|
-
const outputDir = stripGlobToBaseDir(outputFilePath);
|
|
342
|
+
const outputDir = (0, strip_glob_to_base_dir_1.stripGlobToBaseDir)(outputFilePath);
|
|
342
343
|
return path.join(outputDir, 'main.js');
|
|
343
344
|
}
|
|
344
345
|
const fallbackFile = path.join('dist', project.data.root, 'main.js');
|
|
@@ -356,15 +357,6 @@ function getFileToRun(context, project, buildOptions, buildTargetExecutor) {
|
|
|
356
357
|
}
|
|
357
358
|
return (0, path_1.join)(context.root, buildOptions.outputPath, outputFileName);
|
|
358
359
|
}
|
|
359
|
-
function stripGlobToBaseDir(pathWithGlob) {
|
|
360
|
-
const globIdx = pathWithGlob.search(/[*?[{(]/);
|
|
361
|
-
if (globIdx === -1) {
|
|
362
|
-
return pathWithGlob.replace(/[\\/]+$/, '');
|
|
363
|
-
}
|
|
364
|
-
const prefix = pathWithGlob.slice(0, globIdx);
|
|
365
|
-
const lastSep = Math.max(prefix.lastIndexOf('/'), prefix.lastIndexOf('\\'));
|
|
366
|
-
return lastSep === -1 ? '' : prefix.slice(0, lastSep);
|
|
367
|
-
}
|
|
368
360
|
function fileToRunCorrectPath(fileToRun) {
|
|
369
361
|
if ((0, fileutils_1.fileExists)(fileToRun))
|
|
370
362
|
return fileToRun;
|
|
@@ -9,6 +9,7 @@ const utils_1 = require("nx/src/tasks-runner/utils");
|
|
|
9
9
|
const lock_file_1 = require("nx/src/plugins/js/lock-file/lock-file");
|
|
10
10
|
// eslint-disable-next-line @typescript-eslint/no-restricted-imports
|
|
11
11
|
const get_workspace_packages_from_graph_1 = require("nx/src/plugins/js/utils/get-workspace-packages-from-graph");
|
|
12
|
+
const strip_glob_to_base_dir_1 = require("../../utils/strip-glob-to-base-dir");
|
|
12
13
|
async function pruneLockfileExecutor(schema, context) {
|
|
13
14
|
devkit_1.logger.log('Pruning lockfile...');
|
|
14
15
|
const outputDirectory = getOutputDir(schema, context);
|
|
@@ -89,6 +90,7 @@ function getOutputDir(schema, context) {
|
|
|
89
90
|
return outputDir;
|
|
90
91
|
}
|
|
91
92
|
function normalizeOutputPath(outputPath) {
|
|
93
|
+
outputPath = (0, strip_glob_to_base_dir_1.stripGlobToBaseDir)(outputPath);
|
|
92
94
|
if (!outputPath.startsWith(devkit_1.workspaceRoot)) {
|
|
93
95
|
outputPath = (0, path_1.join)(devkit_1.workspaceRoot, outputPath);
|
|
94
96
|
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.extractNpmPublishJsonData = extractNpmPublishJsonData;
|
|
4
|
+
const expectedNpmPublishJsonKeys = [
|
|
5
|
+
'id',
|
|
6
|
+
'name',
|
|
7
|
+
'version',
|
|
8
|
+
'size',
|
|
9
|
+
'filename',
|
|
10
|
+
];
|
|
11
|
+
// Regular expression to match JSON-like objects, including up to two levels of
|
|
12
|
+
// nested objects.
|
|
13
|
+
// /{(?:[^{}]|{(?:[^{}]|{[^{}]*})*})*}/g
|
|
14
|
+
// Two levels of nesting are required to support both shapes of npm/pnpm publish
|
|
15
|
+
// output:
|
|
16
|
+
// - Older npm (<= 11.13) prints the publish summary as a flat object whose only
|
|
17
|
+
// nesting is its own "files" array (one level deep).
|
|
18
|
+
// - Newer npm (>= 11.16, bundled with Node 26) nests that same summary under the
|
|
19
|
+
// package name, e.g. { "@scope/pkg": { ...id/name/files... } }, adding a
|
|
20
|
+
// second level. pnpm publish nests the same way when run from the workspace
|
|
21
|
+
// root. Matching two levels lets us capture the wrapper object in the nested
|
|
22
|
+
// case so its braces are not left behind in beforeJsonData/afterJsonData.
|
|
23
|
+
const jsonRegex = /{(?:[^{}]|{(?:[^{}]|{[^{}]*})*})*}/g;
|
|
24
|
+
function isNpmPublishSummary(value) {
|
|
25
|
+
return (typeof value === 'object' &&
|
|
26
|
+
value !== null &&
|
|
27
|
+
expectedNpmPublishJsonKeys.every((key) => value[key] !== undefined));
|
|
28
|
+
}
|
|
29
|
+
function extractNpmPublishJsonData(str) {
|
|
30
|
+
const jsonMatches = str.match(jsonRegex);
|
|
31
|
+
if (jsonMatches) {
|
|
32
|
+
for (const match of jsonMatches) {
|
|
33
|
+
// Cheap upfront check to see if the stringified JSON data has the expected keys as substrings
|
|
34
|
+
if (!expectedNpmPublishJsonKeys.every((key) => str.includes(key))) {
|
|
35
|
+
continue;
|
|
36
|
+
}
|
|
37
|
+
// Full JSON parsing to identify the JSON object
|
|
38
|
+
let parsedJson;
|
|
39
|
+
try {
|
|
40
|
+
parsedJson = JSON.parse(match);
|
|
41
|
+
}
|
|
42
|
+
catch {
|
|
43
|
+
// Ignore parsing errors for unrelated JSON blocks
|
|
44
|
+
continue;
|
|
45
|
+
}
|
|
46
|
+
// npm <= 11.13 emits the summary as a flat object, while npm >= 11.16 (and
|
|
47
|
+
// pnpm publish run from the workspace root) nest it one level deep under the
|
|
48
|
+
// package name. Support both by unwrapping a single level when the matched
|
|
49
|
+
// object isn't itself the summary.
|
|
50
|
+
let publishData = null;
|
|
51
|
+
if (isNpmPublishSummary(parsedJson)) {
|
|
52
|
+
publishData = parsedJson;
|
|
53
|
+
}
|
|
54
|
+
else if (typeof parsedJson === 'object' && parsedJson !== null) {
|
|
55
|
+
for (const value of Object.values(parsedJson)) {
|
|
56
|
+
if (isNpmPublishSummary(value)) {
|
|
57
|
+
publishData = value;
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
if (!publishData) {
|
|
63
|
+
continue;
|
|
64
|
+
}
|
|
65
|
+
const jsonStartIndex = str.indexOf(match);
|
|
66
|
+
return {
|
|
67
|
+
beforeJsonData: str.slice(0, jsonStartIndex),
|
|
68
|
+
jsonData: publishData,
|
|
69
|
+
afterJsonData: str.slice(jsonStartIndex + match.length),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
// No applicable jsonData detected, the whole contents is the beforeJsonData
|
|
74
|
+
return {
|
|
75
|
+
beforeJsonData: str,
|
|
76
|
+
jsonData: null,
|
|
77
|
+
afterJsonData: '',
|
|
78
|
+
};
|
|
79
|
+
}
|
|
@@ -21,6 +21,23 @@ function processEnv(color) {
|
|
|
21
21
|
}
|
|
22
22
|
return env;
|
|
23
23
|
}
|
|
24
|
+
function isAlreadyPublishedPublishError(stdoutData, stderr = '', stdout = '') {
|
|
25
|
+
const error = stdoutData?.error;
|
|
26
|
+
const errorMessage = [
|
|
27
|
+
error?.summary,
|
|
28
|
+
error?.detail,
|
|
29
|
+
error?.message,
|
|
30
|
+
error?.body?.error,
|
|
31
|
+
stderr,
|
|
32
|
+
stdout,
|
|
33
|
+
]
|
|
34
|
+
.filter(Boolean)
|
|
35
|
+
.join('\n');
|
|
36
|
+
return (error?.code === 'EPUBLISHCONFLICT' ||
|
|
37
|
+
errorMessage.includes('You cannot publish over the previously published versions') ||
|
|
38
|
+
(error?.code === 'E409' &&
|
|
39
|
+
errorMessage.includes('this package is already present')));
|
|
40
|
+
}
|
|
24
41
|
async function runExecutor(options, context) {
|
|
25
42
|
const pm = (0, devkit_1.detectPackageManager)();
|
|
26
43
|
// Check if npm is installed (needed for dist-tag management and as fallback for view command)
|
|
@@ -267,6 +284,22 @@ Please update the local dependency on "${depName}" to be a valid semantic versio
|
|
|
267
284
|
* to running from the package root directly), then special attention should be paid to the fact that npm/pnpm publish will nest its
|
|
268
285
|
* JSON output under the name of the package in that case (and it would need to be handled below).
|
|
269
286
|
*/
|
|
287
|
+
return runPublish({
|
|
288
|
+
pm,
|
|
289
|
+
options,
|
|
290
|
+
context,
|
|
291
|
+
packageRoot,
|
|
292
|
+
packageJson,
|
|
293
|
+
registry,
|
|
294
|
+
registryConfigKey,
|
|
295
|
+
tag,
|
|
296
|
+
isDryRun,
|
|
297
|
+
isNpmInstalled,
|
|
298
|
+
packageTxt,
|
|
299
|
+
});
|
|
300
|
+
}
|
|
301
|
+
function runPublish(ctx) {
|
|
302
|
+
const { pm, options, context, packageRoot, packageJson, registry, registryConfigKey, tag, isDryRun, isNpmInstalled, packageTxt, } = ctx;
|
|
270
303
|
const pmCommand = (0, devkit_1.getPackageManagerCommand)(pm);
|
|
271
304
|
const publishCommandSegments = [
|
|
272
305
|
pmCommand.publish(packageRoot, registry, registryConfigKey, tag),
|
|
@@ -342,9 +375,20 @@ Please update the local dependency on "${depName}" to be a valid semantic versio
|
|
|
342
375
|
try {
|
|
343
376
|
// bun publish does not support outputting JSON, so we cannot perform any further processing
|
|
344
377
|
if (pm === 'bun') {
|
|
378
|
+
const bunStderr = err.stderr?.toString() || '';
|
|
379
|
+
const bunStdout = err.stdout?.toString() || '';
|
|
380
|
+
// bun publish does not yet support npm's OIDC trusted publishing flow. If the failure
|
|
381
|
+
// looks like an authentication error and npm is available, retry via npm to recover.
|
|
382
|
+
// Other failures (e.g. version conflict, 403) would produce the same error from npm,
|
|
383
|
+
// so we surface bun's error directly instead.
|
|
384
|
+
const looksLikeAuthError = /missing authentication|bunx npm login|unauthorized|\b401\b/i.test(bunStderr + bunStdout);
|
|
385
|
+
if (isNpmInstalled && looksLikeAuthError) {
|
|
386
|
+
console.warn(`bun publish failed with an authentication error; falling back to npm publish (bun does not support npm OIDC trusted publishing).`);
|
|
387
|
+
return runPublish({ ...ctx, pm: 'npm' });
|
|
388
|
+
}
|
|
345
389
|
console.error(`bun publish error:`);
|
|
346
|
-
console.error(
|
|
347
|
-
console.error(
|
|
390
|
+
console.error(bunStderr);
|
|
391
|
+
console.error(bunStdout);
|
|
348
392
|
return {
|
|
349
393
|
success: false,
|
|
350
394
|
};
|
|
@@ -356,12 +400,26 @@ Please update the local dependency on "${depName}" to be a valid semantic versio
|
|
|
356
400
|
stdoutData = JSON.parse(err.stdout?.toString() || '{}');
|
|
357
401
|
}
|
|
358
402
|
catch {
|
|
403
|
+
const stderr = err.stderr?.toString() || '';
|
|
404
|
+
const stdout = err.stdout?.toString() || '';
|
|
405
|
+
if (isAlreadyPublishedPublishError(undefined, stderr, stdout)) {
|
|
406
|
+
console.warn(`Skipped ${packageTxt}, as v${packageJson.version} has already been published to ${registry} with tag "${tag}"`);
|
|
407
|
+
return {
|
|
408
|
+
success: true,
|
|
409
|
+
};
|
|
410
|
+
}
|
|
359
411
|
console.error(err.stderr?.toString() || '');
|
|
360
412
|
console.error(err.stdout?.toString() || '');
|
|
361
413
|
return {
|
|
362
414
|
success: false,
|
|
363
415
|
};
|
|
364
416
|
}
|
|
417
|
+
if (isAlreadyPublishedPublishError(stdoutData, err.stderr?.toString() || '', err.stdout?.toString() || '')) {
|
|
418
|
+
console.warn(`Skipped ${packageTxt}, as v${packageJson.version} has already been published to ${registry} with tag "${tag}"`);
|
|
419
|
+
return {
|
|
420
|
+
success: true,
|
|
421
|
+
};
|
|
422
|
+
}
|
|
365
423
|
console.error(`${pm} publish error:`);
|
|
366
424
|
// npm returns error.summary and error.detail
|
|
367
425
|
if (stdoutData.error?.summary) {
|
|
@@ -3,4 +3,3 @@ import type { NormalizedExecutorOptions } from '../../../../utils/schema';
|
|
|
3
3
|
import type { TypescriptInMemoryTsConfig } from '../typescript-compilation';
|
|
4
4
|
import type { TaskInfo } from './types';
|
|
5
5
|
export declare function createTaskInfoPerTsConfigMap(tasksOptions: Record<string, NormalizedExecutorOptions>, context: ExecutorContext, tasks: string[], taskInMemoryTsConfigMap: Record<string, TypescriptInMemoryTsConfig>): Record<string, TaskInfo>;
|
|
6
|
-
//# sourceMappingURL=build-task-info-per-tsconfig-map.d.ts.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import type { ExecutorContext } from '@nx/devkit';
|
|
2
2
|
import type { ExecutorOptions, NormalizedExecutorOptions } from '../../../../utils/schema';
|
|
3
3
|
export declare function normalizeTasksOptions(inputs: Record<string, ExecutorOptions>, context: ExecutorContext): Record<string, NormalizedExecutorOptions>;
|
|
4
|
-
//# sourceMappingURL=normalize-tasks-options.d.ts.map
|