@tspub-dev/tspub 0.1.2 → 0.1.3
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/README.md +3 -3
- package/package.json +26 -23
- package/dist/bin/tspub.d.cts +0 -4
- package/dist/index.d.cts +0 -70
- package/dist/src/builder/changelog-conventional.d.cts +0 -12
- package/dist/src/builder/changelog-conventional.d.ts +0 -11
- package/dist/src/builder/changelog.d.cts +0 -4
- package/dist/src/builder/changelog.d.ts +0 -3
- package/dist/src/builder/cjs-interop.d.cts +0 -4
- package/dist/src/builder/cjs-interop.d.ts +0 -3
- package/dist/src/builder/dts-bundle.d.cts +0 -19
- package/dist/src/builder/dts-bundle.d.ts +0 -18
- package/dist/src/builder/dts.d.cts +0 -9
- package/dist/src/builder/dts.d.ts +0 -8
- package/dist/src/builder/entry-inference.d.cts +0 -4
- package/dist/src/builder/entry-inference.d.ts +0 -3
- package/dist/src/builder/esbuild-builder.d.cts +0 -49
- package/dist/src/builder/esbuild-builder.d.ts +0 -48
- package/dist/src/builder/externals.d.cts +0 -18
- package/dist/src/builder/externals.d.ts +0 -17
- package/dist/src/builder/index.d.cts +0 -52
- package/dist/src/builder/index.d.ts +0 -51
- package/dist/src/builder/plugins.d.cts +0 -26
- package/dist/src/builder/plugins.d.ts +0 -25
- package/dist/src/builder/public-dir.d.cts +0 -7
- package/dist/src/builder/public-dir.d.ts +0 -6
- package/dist/src/builder/shims-plugin.d.cts +0 -4
- package/dist/src/builder/shims-plugin.d.ts +0 -3
- package/dist/src/builder/size-report.d.cts +0 -12
- package/dist/src/builder/size-report.d.ts +0 -11
- package/dist/src/changeset/dependent-bumping.d.cts +0 -9
- package/dist/src/changeset/dependent-bumping.d.ts +0 -8
- package/dist/src/changeset/index.d.cts +0 -9
- package/dist/src/changeset/index.d.ts +0 -8
- package/dist/src/changeset/parser.d.cts +0 -5
- package/dist/src/changeset/parser.d.ts +0 -4
- package/dist/src/changeset/snapshot.d.cts +0 -3
- package/dist/src/changeset/snapshot.d.ts +0 -2
- package/dist/src/changeset/types.d.cts +0 -22
- package/dist/src/changeset/types.d.ts +0 -21
- package/dist/src/changeset/version.d.cts +0 -23
- package/dist/src/changeset/version.d.ts +0 -22
- package/dist/src/changeset/writer.d.cts +0 -4
- package/dist/src/changeset/writer.d.ts +0 -3
- package/dist/src/checker/browser.d.cts +0 -29
- package/dist/src/checker/browser.d.ts +0 -28
- package/dist/src/checker/formatter.d.cts +0 -11
- package/dist/src/checker/formatter.d.ts +0 -10
- package/dist/src/checker/framework/context.d.cts +0 -9
- package/dist/src/checker/framework/context.d.ts +0 -8
- package/dist/src/checker/framework/runner.d.cts +0 -20
- package/dist/src/checker/framework/runner.d.ts +0 -19
- package/dist/src/checker/framework/types.d.cts +0 -42
- package/dist/src/checker/framework/types.d.ts +0 -41
- package/dist/src/checker/index.d.cts +0 -25
- package/dist/src/checker/index.d.ts +0 -24
- package/dist/src/checker/plugins.d.cts +0 -8
- package/dist/src/checker/plugins.d.ts +0 -7
- package/dist/src/checker/profiles.d.cts +0 -19
- package/dist/src/checker/profiles.d.ts +0 -18
- package/dist/src/checker/rules/exports/browser-conflict.d.cts +0 -4
- package/dist/src/checker/rules/exports/browser-conflict.d.ts +0 -3
- package/dist/src/checker/rules/exports/browser-value-conflict.d.cts +0 -4
- package/dist/src/checker/rules/exports/browser-value-conflict.d.ts +0 -3
- package/dist/src/checker/rules/exports/cjs-default-export.d.cts +0 -4
- package/dist/src/checker/rules/exports/cjs-default-export.d.ts +0 -3
- package/dist/src/checker/rules/exports/cjs-esmodule-interop.d.cts +0 -4
- package/dist/src/checker/rules/exports/cjs-esmodule-interop.d.ts +0 -3
- package/dist/src/checker/rules/exports/condition-types.d.cts +0 -4
- package/dist/src/checker/rules/exports/condition-types.d.ts +0 -3
- package/dist/src/checker/rules/exports/default-last.d.cts +0 -4
- package/dist/src/checker/rules/exports/default-last.d.ts +0 -3
- package/dist/src/checker/rules/exports/dot-entry.d.cts +0 -4
- package/dist/src/checker/rules/exports/dot-entry.d.ts +0 -3
- package/dist/src/checker/rules/exports/esm-main-no-exports.d.cts +0 -10
- package/dist/src/checker/rules/exports/esm-main-no-exports.d.ts +0 -9
- package/dist/src/checker/rules/exports/exports-field.d.cts +0 -4
- package/dist/src/checker/rules/exports/exports-field.d.ts +0 -3
- package/dist/src/checker/rules/exports/fallback-array.d.cts +0 -4
- package/dist/src/checker/rules/exports/fallback-array.d.ts +0 -3
- package/dist/src/checker/rules/exports/file-exists.d.cts +0 -4
- package/dist/src/checker/rules/exports/file-exists.d.ts +0 -3
- package/dist/src/checker/rules/exports/file-not-published.d.cts +0 -4
- package/dist/src/checker/rules/exports/file-not-published.d.ts +0 -3
- package/dist/src/checker/rules/exports/format-mismatch.d.cts +0 -4
- package/dist/src/checker/rules/exports/format-mismatch.d.ts +0 -3
- package/dist/src/checker/rules/exports/glob-matched-files.d.cts +0 -4
- package/dist/src/checker/rules/exports/glob-matched-files.d.ts +0 -3
- package/dist/src/checker/rules/exports/import-condition.d.cts +0 -4
- package/dist/src/checker/rules/exports/import-condition.d.ts +0 -3
- package/dist/src/checker/rules/exports/imports-field.d.cts +0 -4
- package/dist/src/checker/rules/exports/imports-field.d.ts +0 -3
- package/dist/src/checker/rules/exports/imports-key-invalid.d.cts +0 -4
- package/dist/src/checker/rules/exports/imports-key-invalid.d.ts +0 -3
- package/dist/src/checker/rules/exports/jsx-extensions.d.cts +0 -4
- package/dist/src/checker/rules/exports/jsx-extensions.d.ts +0 -3
- package/dist/src/checker/rules/exports/module-before-require.d.cts +0 -4
- package/dist/src/checker/rules/exports/module-before-require.d.ts +0 -3
- package/dist/src/checker/rules/exports/module-esm-only.d.cts +0 -4
- package/dist/src/checker/rules/exports/module-esm-only.d.ts +0 -3
- package/dist/src/checker/rules/exports/module-no-exports.d.cts +0 -10
- package/dist/src/checker/rules/exports/module-no-exports.d.ts +0 -9
- package/dist/src/checker/rules/exports/no-deprecated-subpath-mapping.d.cts +0 -4
- package/dist/src/checker/rules/exports/no-deprecated-subpath-mapping.d.ts +0 -3
- package/dist/src/checker/rules/exports/type-module.d.cts +0 -4
- package/dist/src/checker/rules/exports/type-module.d.ts +0 -3
- package/dist/src/checker/rules/exports/types-first.d.cts +0 -11
- package/dist/src/checker/rules/exports/types-first.d.ts +0 -10
- package/dist/src/checker/rules/exports/types-format.d.cts +0 -4
- package/dist/src/checker/rules/exports/types-format.d.ts +0 -3
- package/dist/src/checker/rules/exports/types-not-exported.d.cts +0 -11
- package/dist/src/checker/rules/exports/types-not-exported.d.ts +0 -10
- package/dist/src/checker/rules/exports/types-order.d.cts +0 -4
- package/dist/src/checker/rules/exports/types-order.d.ts +0 -3
- package/dist/src/checker/rules/exports/value-invalid.d.cts +0 -4
- package/dist/src/checker/rules/exports/value-invalid.d.ts +0 -3
- package/dist/src/checker/rules/files/all-files-format.d.cts +0 -4
- package/dist/src/checker/rules/files/all-files-format.d.ts +0 -3
- package/dist/src/checker/rules/files/bin-executable.d.cts +0 -10
- package/dist/src/checker/rules/files/bin-executable.d.ts +0 -9
- package/dist/src/checker/rules/files/bin-shebang.d.cts +0 -4
- package/dist/src/checker/rules/files/bin-shebang.d.ts +0 -3
- package/dist/src/checker/rules/files/duplicate-dep.d.cts +0 -4
- package/dist/src/checker/rules/files/duplicate-dep.d.ts +0 -3
- package/dist/src/checker/rules/files/files-field.d.cts +0 -4
- package/dist/src/checker/rules/files/files-field.d.ts +0 -3
- package/dist/src/checker/rules/files/format-validation.d.cts +0 -12
- package/dist/src/checker/rules/files/format-validation.d.ts +0 -11
- package/dist/src/checker/rules/files/implicit-index-format.d.cts +0 -13
- package/dist/src/checker/rules/files/implicit-index-format.d.ts +0 -12
- package/dist/src/checker/rules/files/local-dependency.d.cts +0 -4
- package/dist/src/checker/rules/files/local-dependency.d.ts +0 -3
- package/dist/src/checker/rules/files/prepublish.d.cts +0 -4
- package/dist/src/checker/rules/files/prepublish.d.ts +0 -3
- package/dist/src/checker/rules/files/sensitive.d.cts +0 -4
- package/dist/src/checker/rules/files/sensitive.d.ts +0 -3
- package/dist/src/checker/rules/imports/default-last.d.cts +0 -4
- package/dist/src/checker/rules/imports/default-last.d.ts +0 -3
- package/dist/src/checker/rules/imports/fallback-array.d.cts +0 -4
- package/dist/src/checker/rules/imports/fallback-array.d.ts +0 -3
- package/dist/src/checker/rules/imports/glob-matched-files.d.cts +0 -4
- package/dist/src/checker/rules/imports/glob-matched-files.d.ts +0 -3
- package/dist/src/checker/rules/imports/module-before-require.d.cts +0 -4
- package/dist/src/checker/rules/imports/module-before-require.d.ts +0 -3
- package/dist/src/checker/rules/imports/module-esm-only.d.cts +0 -4
- package/dist/src/checker/rules/imports/module-esm-only.d.ts +0 -3
- package/dist/src/checker/rules/imports/no-deprecated-subpath.d.cts +0 -4
- package/dist/src/checker/rules/imports/no-deprecated-subpath.d.ts +0 -3
- package/dist/src/checker/rules/index.d.cts +0 -4
- package/dist/src/checker/rules/index.d.ts +0 -3
- package/dist/src/checker/rules/metadata/deprecated-fields.d.cts +0 -4
- package/dist/src/checker/rules/metadata/deprecated-fields.d.ts +0 -3
- package/dist/src/checker/rules/metadata/engines.d.cts +0 -4
- package/dist/src/checker/rules/metadata/engines.d.ts +0 -3
- package/dist/src/checker/rules/metadata/field-value-type.d.cts +0 -4
- package/dist/src/checker/rules/metadata/field-value-type.d.ts +0 -3
- package/dist/src/checker/rules/metadata/license-file.d.cts +0 -4
- package/dist/src/checker/rules/metadata/license-file.d.ts +0 -3
- package/dist/src/checker/rules/metadata/license.d.cts +0 -4
- package/dist/src/checker/rules/metadata/license.d.ts +0 -3
- package/dist/src/checker/rules/metadata/module-esm.d.cts +0 -4
- package/dist/src/checker/rules/metadata/module-esm.d.ts +0 -3
- package/dist/src/checker/rules/metadata/peer-dep-conflict.d.cts +0 -4
- package/dist/src/checker/rules/metadata/peer-dep-conflict.d.ts +0 -3
- package/dist/src/checker/rules/metadata/repository-format.d.cts +0 -13
- package/dist/src/checker/rules/metadata/repository-format.d.ts +0 -12
- package/dist/src/checker/rules/metadata/repository.d.cts +0 -4
- package/dist/src/checker/rules/metadata/repository.d.ts +0 -3
- package/dist/src/checker/rules/metadata/side-effects.d.cts +0 -4
- package/dist/src/checker/rules/metadata/side-effects.d.ts +0 -3
- package/dist/src/checker/rules/metadata/use-exports-browser.d.cts +0 -4
- package/dist/src/checker/rules/metadata/use-exports-browser.d.ts +0 -3
- package/dist/src/checker/rules/size/package-size.d.cts +0 -4
- package/dist/src/checker/rules/size/package-size.d.ts +0 -3
- package/dist/src/checker/rules/types/cjs-resolves-esm.d.cts +0 -15
- package/dist/src/checker/rules/types/cjs-resolves-esm.d.ts +0 -14
- package/dist/src/checker/rules/types/declaration-completeness.d.cts +0 -4
- package/dist/src/checker/rules/types/declaration-completeness.d.ts +0 -3
- package/dist/src/checker/rules/types/declaration.d.cts +0 -4
- package/dist/src/checker/rules/types/declaration.d.ts +0 -3
- package/dist/src/checker/rules/types/esm-dynamic-only.d.cts +0 -11
- package/dist/src/checker/rules/types/esm-dynamic-only.d.ts +0 -10
- package/dist/src/checker/rules/types/false-cjs-esm.d.cts +0 -13
- package/dist/src/checker/rules/types/false-cjs-esm.d.ts +0 -12
- package/dist/src/checker/rules/types/false-export-default.d.cts +0 -11
- package/dist/src/checker/rules/types/false-export-default.d.ts +0 -10
- package/dist/src/checker/rules/types/isolated-modules.d.cts +0 -4
- package/dist/src/checker/rules/types/isolated-modules.d.ts +0 -3
- package/dist/src/checker/rules/types/missing-export-equals.d.cts +0 -11
- package/dist/src/checker/rules/types/missing-export-equals.d.ts +0 -10
- package/dist/src/checker/rules/types/module-resolution.d.cts +0 -4
- package/dist/src/checker/rules/types/module-resolution.d.ts +0 -3
- package/dist/src/checker/rules/types/module.d.cts +0 -4
- package/dist/src/checker/rules/types/module.d.ts +0 -3
- package/dist/src/checker/rules/types/no-any-export.d.cts +0 -4
- package/dist/src/checker/rules/types/no-any-export.d.ts +0 -3
- package/dist/src/checker/rules/types/resolution.d.cts +0 -4
- package/dist/src/checker/rules/types/resolution.d.ts +0 -3
- package/dist/src/checker/rules/types/strict.d.cts +0 -4
- package/dist/src/checker/rules/types/strict.d.ts +0 -3
- package/dist/src/checker/rules/types/tsconfig-exists.d.cts +0 -4
- package/dist/src/checker/rules/types/tsconfig-exists.d.ts +0 -3
- package/dist/src/checker/rules/utils/exports-traversal.d.cts +0 -12
- package/dist/src/checker/rules/utils/exports-traversal.d.ts +0 -11
- package/dist/src/checker/rules/utils/format-detection.d.cts +0 -8
- package/dist/src/checker/rules/utils/format-detection.d.ts +0 -7
- package/dist/src/checker/rules/utils/imports-traversal.d.cts +0 -10
- package/dist/src/checker/rules/utils/imports-traversal.d.ts +0 -9
- package/dist/src/cli/build.d.cts +0 -6
- package/dist/src/cli/build.d.ts +0 -5
- package/dist/src/cli/changeset.d.cts +0 -4
- package/dist/src/cli/changeset.d.ts +0 -3
- package/dist/src/cli/check.d.cts +0 -4
- package/dist/src/cli/check.d.ts +0 -3
- package/dist/src/cli/doctor.d.cts +0 -4
- package/dist/src/cli/doctor.d.ts +0 -3
- package/dist/src/cli/index.d.cts +0 -5
- package/dist/src/cli/index.d.ts +0 -4
- package/dist/src/cli/init.d.cts +0 -4
- package/dist/src/cli/init.d.ts +0 -3
- package/dist/src/cli/publish.d.cts +0 -7
- package/dist/src/cli/publish.d.ts +0 -6
- package/dist/src/cli/scan.d.cts +0 -4
- package/dist/src/cli/scan.d.ts +0 -3
- package/dist/src/cli/test-types.d.cts +0 -4
- package/dist/src/cli/test-types.d.ts +0 -3
- package/dist/src/config/index.d.cts +0 -4
- package/dist/src/config/index.d.ts +0 -3
- package/dist/src/config/loader.d.cts +0 -6
- package/dist/src/config/loader.d.ts +0 -5
- package/dist/src/config/types.d.cts +0 -109
- package/dist/src/config/types.d.ts +0 -108
- package/dist/src/doctor/environment.d.cts +0 -13
- package/dist/src/doctor/environment.d.ts +0 -12
- package/dist/src/doctor/formatter.d.cts +0 -13
- package/dist/src/doctor/formatter.d.ts +0 -12
- package/dist/src/doctor/framework/context.d.cts +0 -5
- package/dist/src/doctor/framework/context.d.ts +0 -4
- package/dist/src/doctor/framework/runner.d.cts +0 -18
- package/dist/src/doctor/framework/runner.d.ts +0 -17
- package/dist/src/doctor/framework/types.d.cts +0 -40
- package/dist/src/doctor/framework/types.d.ts +0 -39
- package/dist/src/doctor/index.d.cts +0 -23
- package/dist/src/doctor/index.d.ts +0 -22
- package/dist/src/doctor/plugins.d.cts +0 -8
- package/dist/src/doctor/plugins.d.ts +0 -7
- package/dist/src/doctor/profiles.d.cts +0 -3
- package/dist/src/doctor/profiles.d.ts +0 -2
- package/dist/src/doctor/resolution.d.cts +0 -8
- package/dist/src/doctor/resolution.d.ts +0 -7
- package/dist/src/doctor/rules/build.d.cts +0 -6
- package/dist/src/doctor/rules/build.d.ts +0 -5
- package/dist/src/doctor/rules/dependencies.d.cts +0 -7
- package/dist/src/doctor/rules/dependencies.d.ts +0 -6
- package/dist/src/doctor/rules/environment.d.cts +0 -10
- package/dist/src/doctor/rules/environment.d.ts +0 -9
- package/dist/src/doctor/rules/index.d.cts +0 -4
- package/dist/src/doctor/rules/index.d.ts +0 -3
- package/dist/src/doctor/rules/typescript.d.cts +0 -9
- package/dist/src/doctor/rules/typescript.d.ts +0 -8
- package/dist/src/publisher/framework/types.d.cts +0 -27
- package/dist/src/publisher/framework/types.d.ts +0 -26
- package/dist/src/publisher/git.d.cts +0 -22
- package/dist/src/publisher/git.d.ts +0 -21
- package/dist/src/publisher/github.d.cts +0 -26
- package/dist/src/publisher/github.d.ts +0 -25
- package/dist/src/publisher/hooks.d.cts +0 -22
- package/dist/src/publisher/hooks.d.ts +0 -21
- package/dist/src/publisher/index.d.cts +0 -13
- package/dist/src/publisher/index.d.ts +0 -12
- package/dist/src/publisher/npm.d.cts +0 -14
- package/dist/src/publisher/npm.d.ts +0 -13
- package/dist/src/publisher/prereqs/branch.d.cts +0 -4
- package/dist/src/publisher/prereqs/branch.d.ts +0 -3
- package/dist/src/publisher/prereqs/checker.d.cts +0 -4
- package/dist/src/publisher/prereqs/checker.d.ts +0 -3
- package/dist/src/publisher/prereqs/dirty-tree.d.cts +0 -4
- package/dist/src/publisher/prereqs/dirty-tree.d.ts +0 -3
- package/dist/src/publisher/prereqs/index.d.cts +0 -4
- package/dist/src/publisher/prereqs/index.d.ts +0 -3
- package/dist/src/publisher/prereqs/registry.d.cts +0 -5
- package/dist/src/publisher/prereqs/registry.d.ts +0 -4
- package/dist/src/publisher/publish.d.cts +0 -24
- package/dist/src/publisher/publish.d.ts +0 -23
- package/dist/src/publisher/types.d.cts +0 -28
- package/dist/src/publisher/types.d.ts +0 -27
- package/dist/src/publisher/version-bump.d.cts +0 -12
- package/dist/src/publisher/version-bump.d.ts +0 -11
- package/dist/src/publisher/version-from-commits.d.cts +0 -7
- package/dist/src/publisher/version-from-commits.d.ts +0 -6
- package/dist/src/scaffold/index.d.cts +0 -15
- package/dist/src/scaffold/index.d.ts +0 -14
- package/dist/src/scaffold/prompts.d.cts +0 -11
- package/dist/src/scaffold/prompts.d.ts +0 -10
- package/dist/src/scaffold/templates/changelog.d.cts +0 -3
- package/dist/src/scaffold/templates/changelog.d.ts +0 -2
- package/dist/src/scaffold/templates/ci.yml.d.cts +0 -4
- package/dist/src/scaffold/templates/ci.yml.d.ts +0 -3
- package/dist/src/scaffold/templates/gitignore.d.cts +0 -3
- package/dist/src/scaffold/templates/gitignore.d.ts +0 -2
- package/dist/src/scaffold/templates/index.ts.d.cts +0 -3
- package/dist/src/scaffold/templates/index.ts.d.ts +0 -2
- package/dist/src/scaffold/templates/license.d.cts +0 -4
- package/dist/src/scaffold/templates/license.d.ts +0 -3
- package/dist/src/scaffold/templates/npmignore.d.cts +0 -3
- package/dist/src/scaffold/templates/npmignore.d.ts +0 -2
- package/dist/src/scaffold/templates/package.json.d.cts +0 -4
- package/dist/src/scaffold/templates/package.json.d.ts +0 -3
- package/dist/src/scaffold/templates/readme.d.cts +0 -4
- package/dist/src/scaffold/templates/readme.d.ts +0 -3
- package/dist/src/scaffold/templates/test.ts.d.cts +0 -4
- package/dist/src/scaffold/templates/test.ts.d.ts +0 -3
- package/dist/src/scaffold/templates/tsconfig.json.d.cts +0 -4
- package/dist/src/scaffold/templates/tsconfig.json.d.ts +0 -3
- package/dist/src/scanner/clone.d.cts +0 -9
- package/dist/src/scanner/clone.d.ts +0 -8
- package/dist/src/scanner/github.d.cts +0 -16
- package/dist/src/scanner/github.d.ts +0 -15
- package/dist/src/scanner/index.d.cts +0 -45
- package/dist/src/scanner/index.d.ts +0 -44
- package/dist/src/scanner/profiles.d.cts +0 -4
- package/dist/src/scanner/profiles.d.ts +0 -3
- package/dist/src/scanner/report.d.cts +0 -18
- package/dist/src/scanner/report.d.ts +0 -17
- package/dist/src/shared/logger.d.cts +0 -15
- package/dist/src/shared/logger.d.ts +0 -14
- package/dist/src/shared/package-json.d.cts +0 -29
- package/dist/src/shared/package-json.d.ts +0 -28
- package/dist/src/shared/resolve.d.cts +0 -3
- package/dist/src/shared/resolve.d.ts +0 -2
- package/dist/src/shared/strip-json-comments.d.cts +0 -8
- package/dist/src/shared/strip-json-comments.d.ts +0 -7
- package/dist/src/type-tester/index.d.cts +0 -17
- package/dist/src/type-tester/index.d.ts +0 -16
- package/dist/src/workspace/index.d.cts +0 -22
- package/dist/src/workspace/index.d.ts +0 -21
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/dist/type-tester/assertions.d.cts +0 -51
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// Auto-generated CJS declaration from cjs-resolves-esm.d.ts
|
|
2
|
-
import type { Rule } from "../../framework/types.js";
|
|
3
|
-
/**
|
|
4
|
-
* Detects when CJS require() would resolve to an ESM file, which fails at
|
|
5
|
-
* runtime with ERR_REQUIRE_ESM. This happens when:
|
|
6
|
-
*
|
|
7
|
-
* 1. `type: "module"` with string exports — require() gets an ESM .js file
|
|
8
|
-
* 2. `require` condition points to .mjs or .js with `type: "module"`
|
|
9
|
-
* 3. `default` condition (no `require`) points to ESM file — CJS falls back to it
|
|
10
|
-
* 4. No exports, but `main` points to ESM file
|
|
11
|
-
*
|
|
12
|
-
* Equivalent to attw: CJSResolvesToESM
|
|
13
|
-
*/
|
|
14
|
-
export declare const cjsResolvesToEsmRule: Rule;
|
|
15
|
-
//# sourceMappingURL=cjs-resolves-esm.d.ts.map
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { Rule } from "../../framework/types.js";
|
|
2
|
-
/**
|
|
3
|
-
* Detects when CJS require() would resolve to an ESM file, which fails at
|
|
4
|
-
* runtime with ERR_REQUIRE_ESM. This happens when:
|
|
5
|
-
*
|
|
6
|
-
* 1. `type: "module"` with string exports — require() gets an ESM .js file
|
|
7
|
-
* 2. `require` condition points to .mjs or .js with `type: "module"`
|
|
8
|
-
* 3. `default` condition (no `require`) points to ESM file — CJS falls back to it
|
|
9
|
-
* 4. No exports, but `main` points to ESM file
|
|
10
|
-
*
|
|
11
|
-
* Equivalent to attw: CJSResolvesToESM
|
|
12
|
-
*/
|
|
13
|
-
export declare const cjsResolvesToEsmRule: Rule;
|
|
14
|
-
//# sourceMappingURL=cjs-resolves-esm.d.ts.map
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// Auto-generated CJS declaration from esm-dynamic-only.d.ts
|
|
2
|
-
import type { Rule } from "../../framework/types.js";
|
|
3
|
-
/**
|
|
4
|
-
* Detects when a package is only resolvable via dynamic import(), not static import.
|
|
5
|
-
* This happens when exports only has a "require" condition (no "import" or "default"),
|
|
6
|
-
* forcing ESM consumers to use `await import("pkg")` instead of `import pkg from "pkg"`.
|
|
7
|
-
*
|
|
8
|
-
* Equivalent to attw: ESM (dynamic import only)
|
|
9
|
-
*/
|
|
10
|
-
export declare const esmDynamicOnlyRule: Rule;
|
|
11
|
-
//# sourceMappingURL=esm-dynamic-only.d.ts.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { Rule } from "../../framework/types.js";
|
|
2
|
-
/**
|
|
3
|
-
* Detects when a package is only resolvable via dynamic import(), not static import.
|
|
4
|
-
* This happens when exports only has a "require" condition (no "import" or "default"),
|
|
5
|
-
* forcing ESM consumers to use `await import("pkg")` instead of `import pkg from "pkg"`.
|
|
6
|
-
*
|
|
7
|
-
* Equivalent to attw: ESM (dynamic import only)
|
|
8
|
-
*/
|
|
9
|
-
export declare const esmDynamicOnlyRule: Rule;
|
|
10
|
-
//# sourceMappingURL=esm-dynamic-only.d.ts.map
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// Auto-generated CJS declaration from false-cjs-esm.d.ts
|
|
2
|
-
import type { Rule } from "../../framework/types.js";
|
|
3
|
-
/**
|
|
4
|
-
* Detects FalseCJS and FalseESM: when a .d.ts file declares one module format
|
|
5
|
-
* but the corresponding JS file contains a different format.
|
|
6
|
-
*
|
|
7
|
-
* - FalseCJS: Types say CJS but JS is actually ESM
|
|
8
|
-
* - FalseESM: Types say ESM but JS is actually CJS
|
|
9
|
-
*
|
|
10
|
-
* Equivalent to attw: FalseCJS, FalseESM
|
|
11
|
-
*/
|
|
12
|
-
export declare const falseCjsEsmRule: Rule;
|
|
13
|
-
//# sourceMappingURL=false-cjs-esm.d.ts.map
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Rule } from "../../framework/types.js";
|
|
2
|
-
/**
|
|
3
|
-
* Detects FalseCJS and FalseESM: when a .d.ts file declares one module format
|
|
4
|
-
* but the corresponding JS file contains a different format.
|
|
5
|
-
*
|
|
6
|
-
* - FalseCJS: Types say CJS but JS is actually ESM
|
|
7
|
-
* - FalseESM: Types say ESM but JS is actually CJS
|
|
8
|
-
*
|
|
9
|
-
* Equivalent to attw: FalseCJS, FalseESM
|
|
10
|
-
*/
|
|
11
|
-
export declare const falseCjsEsmRule: Rule;
|
|
12
|
-
//# sourceMappingURL=false-cjs-esm.d.ts.map
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// Auto-generated CJS declaration from false-export-default.d.ts
|
|
2
|
-
import type { Rule } from "../../framework/types.js";
|
|
3
|
-
/**
|
|
4
|
-
* Detects FalseExportDefault: when the .d.ts has `export default` but
|
|
5
|
-
* the JS file uses `module.exports =` without __esModule interop.
|
|
6
|
-
* This causes different behavior in Node.js vs bundlers.
|
|
7
|
-
*
|
|
8
|
-
* Equivalent to attw: FalseExportDefault
|
|
9
|
-
*/
|
|
10
|
-
export declare const falseExportDefaultRule: Rule;
|
|
11
|
-
//# sourceMappingURL=false-export-default.d.ts.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { Rule } from "../../framework/types.js";
|
|
2
|
-
/**
|
|
3
|
-
* Detects FalseExportDefault: when the .d.ts has `export default` but
|
|
4
|
-
* the JS file uses `module.exports =` without __esModule interop.
|
|
5
|
-
* This causes different behavior in Node.js vs bundlers.
|
|
6
|
-
*
|
|
7
|
-
* Equivalent to attw: FalseExportDefault
|
|
8
|
-
*/
|
|
9
|
-
export declare const falseExportDefaultRule: Rule;
|
|
10
|
-
//# sourceMappingURL=false-export-default.d.ts.map
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// Auto-generated CJS declaration from missing-export-equals.d.ts
|
|
2
|
-
import type { Rule } from "../../framework/types.js";
|
|
3
|
-
/**
|
|
4
|
-
* Detects CJS modules whose .d.ts lacks `export =`.
|
|
5
|
-
* When a CJS module uses `module.exports = X`, the types should have `export = X`
|
|
6
|
-
* to correctly represent the module shape for TypeScript consumers.
|
|
7
|
-
*
|
|
8
|
-
* Equivalent to attw: Missing export =
|
|
9
|
-
*/
|
|
10
|
-
export declare const missingExportEqualsRule: Rule;
|
|
11
|
-
//# sourceMappingURL=missing-export-equals.d.ts.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { Rule } from "../../framework/types.js";
|
|
2
|
-
/**
|
|
3
|
-
* Detects CJS modules whose .d.ts lacks `export =`.
|
|
4
|
-
* When a CJS module uses `module.exports = X`, the types should have `export = X`
|
|
5
|
-
* to correctly represent the module shape for TypeScript consumers.
|
|
6
|
-
*
|
|
7
|
-
* Equivalent to attw: Missing export =
|
|
8
|
-
*/
|
|
9
|
-
export declare const missingExportEqualsRule: Rule;
|
|
10
|
-
//# sourceMappingURL=missing-export-equals.d.ts.map
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// Auto-generated CJS declaration from exports-traversal.d.ts
|
|
2
|
-
export declare function isSugarForm(exports: Record<string, unknown>): boolean;
|
|
3
|
-
export declare function getMainExport(exports: Record<string, unknown>): Record<string, unknown> | null;
|
|
4
|
-
export interface ExportEntry {
|
|
5
|
-
subpath: string;
|
|
6
|
-
condition: string;
|
|
7
|
-
value: string;
|
|
8
|
-
conditionKeys: string[];
|
|
9
|
-
isFallbackArray?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export declare function walkExports(exports: Record<string, unknown> | string): ExportEntry[];
|
|
12
|
-
//# sourceMappingURL=exports-traversal.d.ts.map
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare function isSugarForm(exports: Record<string, unknown>): boolean;
|
|
2
|
-
export declare function getMainExport(exports: Record<string, unknown>): Record<string, unknown> | null;
|
|
3
|
-
export interface ExportEntry {
|
|
4
|
-
subpath: string;
|
|
5
|
-
condition: string;
|
|
6
|
-
value: string;
|
|
7
|
-
conditionKeys: string[];
|
|
8
|
-
isFallbackArray?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export declare function walkExports(exports: Record<string, unknown> | string): ExportEntry[];
|
|
11
|
-
//# sourceMappingURL=exports-traversal.d.ts.map
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
// Auto-generated CJS declaration from format-detection.d.ts
|
|
2
|
-
export declare function hasESMSyntax(content: string): boolean;
|
|
3
|
-
export declare function hasCJSSyntax(content: string): boolean;
|
|
4
|
-
export declare function getExpectedFormat(filePath: string, pkgType?: string): "esm" | "cjs";
|
|
5
|
-
export declare function getCodeFormat(content: string): "esm" | "cjs" | "mixed" | "unknown";
|
|
6
|
-
export declare function hasShebang(content: string): boolean;
|
|
7
|
-
export declare function readFileSafe(filePath: string): string | null;
|
|
8
|
-
//# sourceMappingURL=format-detection.d.ts.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare function hasESMSyntax(content: string): boolean;
|
|
2
|
-
export declare function hasCJSSyntax(content: string): boolean;
|
|
3
|
-
export declare function getExpectedFormat(filePath: string, pkgType?: string): "esm" | "cjs";
|
|
4
|
-
export declare function getCodeFormat(content: string): "esm" | "cjs" | "mixed" | "unknown";
|
|
5
|
-
export declare function hasShebang(content: string): boolean;
|
|
6
|
-
export declare function readFileSafe(filePath: string): string | null;
|
|
7
|
-
//# sourceMappingURL=format-detection.d.ts.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// Auto-generated CJS declaration from imports-traversal.d.ts
|
|
2
|
-
export interface ImportEntry {
|
|
3
|
-
key: string;
|
|
4
|
-
condition: string;
|
|
5
|
-
value: string;
|
|
6
|
-
conditionKeys: string[];
|
|
7
|
-
isFallbackArray?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare function walkImports(imports: Record<string, unknown> | undefined): ImportEntry[];
|
|
10
|
-
//# sourceMappingURL=imports-traversal.d.ts.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export interface ImportEntry {
|
|
2
|
-
key: string;
|
|
3
|
-
condition: string;
|
|
4
|
-
value: string;
|
|
5
|
-
conditionKeys: string[];
|
|
6
|
-
isFallbackArray?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare function walkImports(imports: Record<string, unknown> | undefined): ImportEntry[];
|
|
9
|
-
//# sourceMappingURL=imports-traversal.d.ts.map
|
package/dist/src/cli/build.d.cts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
// Auto-generated CJS declaration from build.d.ts
|
|
2
|
-
import type { Command } from "commander";
|
|
3
|
-
/** Parse --entry flag: supports "a.ts,b.ts" (array) or "name=path" (named) or mixed */
|
|
4
|
-
export declare function parseEntryFlag(raw: string): string[] | Record<string, string>;
|
|
5
|
-
export declare function registerBuild(program: Command): void;
|
|
6
|
-
//# sourceMappingURL=build.d.ts.map
|
package/dist/src/cli/build.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { Command } from "commander";
|
|
2
|
-
/** Parse --entry flag: supports "a.ts,b.ts" (array) or "name=path" (named) or mixed */
|
|
3
|
-
export declare function parseEntryFlag(raw: string): string[] | Record<string, string>;
|
|
4
|
-
export declare function registerBuild(program: Command): void;
|
|
5
|
-
//# sourceMappingURL=build.d.ts.map
|
package/dist/src/cli/check.d.cts
DELETED
package/dist/src/cli/check.d.ts
DELETED
package/dist/src/cli/doctor.d.ts
DELETED
package/dist/src/cli/index.d.cts
DELETED
package/dist/src/cli/index.d.ts
DELETED
package/dist/src/cli/init.d.cts
DELETED
package/dist/src/cli/init.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
// Auto-generated CJS declaration from publish.d.ts
|
|
2
|
-
import type { Command } from "commander";
|
|
3
|
-
import { bumpVersion, bumpPrerelease } from "../publisher/version-bump.js";
|
|
4
|
-
export { bumpVersion, bumpPrerelease };
|
|
5
|
-
export declare const VALID_CHANGELOG_STYLES: Set<string>;
|
|
6
|
-
export declare function registerPublish(program: Command): void;
|
|
7
|
-
//# sourceMappingURL=publish.d.ts.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { Command } from "commander";
|
|
2
|
-
import { bumpVersion, bumpPrerelease } from "../publisher/version-bump.js";
|
|
3
|
-
export { bumpVersion, bumpPrerelease };
|
|
4
|
-
export declare const VALID_CHANGELOG_STYLES: Set<string>;
|
|
5
|
-
export declare function registerPublish(program: Command): void;
|
|
6
|
-
//# sourceMappingURL=publish.d.ts.map
|
package/dist/src/cli/scan.d.cts
DELETED
package/dist/src/cli/scan.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
// Auto-generated CJS declaration from index.d.ts
|
|
2
|
-
export { loadConfig, loadConfigWithInheritance, invalidateConfigCache } from "./loader.js";
|
|
3
|
-
export type { TspubConfig, TspubBuildConfig, TspubPublishConfig, TspubCheckConfig, TspubDoctorConfig, TspubScanConfig } from "./types.js";
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
// Auto-generated CJS declaration from loader.d.ts
|
|
2
|
-
import type { TspubConfig } from "./types.js";
|
|
3
|
-
export declare function invalidateConfigCache(): void;
|
|
4
|
-
export declare function loadConfigWithInheritance(pkgDir: string, rootDir: string): Promise<TspubConfig | null>;
|
|
5
|
-
export declare function loadConfig(dir: string): Promise<TspubConfig | null>;
|
|
6
|
-
//# sourceMappingURL=loader.d.ts.map
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { TspubConfig } from "./types.js";
|
|
2
|
-
export declare function invalidateConfigCache(): void;
|
|
3
|
-
export declare function loadConfigWithInheritance(pkgDir: string, rootDir: string): Promise<TspubConfig | null>;
|
|
4
|
-
export declare function loadConfig(dir: string): Promise<TspubConfig | null>;
|
|
5
|
-
//# sourceMappingURL=loader.d.ts.map
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
// Auto-generated CJS declaration from types.d.ts
|
|
2
|
-
import type { Severity } from "../checker/framework/types.js";
|
|
3
|
-
import type { DoctorSeverity } from "../doctor/framework/types.js";
|
|
4
|
-
import type { Plugin as EsbuildPlugin, Loader } from "esbuild";
|
|
5
|
-
export interface TspubBuildConfig {
|
|
6
|
-
formats?: Array<"esm" | "cjs" | "iife">;
|
|
7
|
-
entry?: string | string[] | Record<string, string>;
|
|
8
|
-
outDir?: string;
|
|
9
|
-
clean?: boolean;
|
|
10
|
-
dts?: boolean;
|
|
11
|
-
/** Bundle .d.ts files into single-file declarations per entry */
|
|
12
|
-
dtsBundle?: boolean;
|
|
13
|
-
/** Resolve external package types into bundled .d.ts */
|
|
14
|
-
dtsResolve?: boolean;
|
|
15
|
-
sourcemap?: boolean;
|
|
16
|
-
minify?: boolean;
|
|
17
|
-
splitting?: boolean;
|
|
18
|
-
target?: string;
|
|
19
|
-
platform?: "node" | "browser" | "neutral";
|
|
20
|
-
external?: (string | RegExp)[];
|
|
21
|
-
noExternal?: string[];
|
|
22
|
-
define?: Record<string, string>;
|
|
23
|
-
banner?: {
|
|
24
|
-
js?: string;
|
|
25
|
-
};
|
|
26
|
-
footer?: {
|
|
27
|
-
js?: string;
|
|
28
|
-
};
|
|
29
|
-
cjsInterop?: boolean;
|
|
30
|
-
esbuildPlugins?: EsbuildPlugin[];
|
|
31
|
-
loader?: Record<string, Loader>;
|
|
32
|
-
/** Replace process.env.NODE_ENV (auto-enabled when minify is true) */
|
|
33
|
-
replaceNodeEnv?: boolean;
|
|
34
|
-
/** @deprecated Use replaceNodeEnv instead */
|
|
35
|
-
envProduction?: boolean;
|
|
36
|
-
/** Global variable name for IIFE builds */
|
|
37
|
-
globalName?: string;
|
|
38
|
-
/** Run a command or callback after successful build */
|
|
39
|
-
onSuccess?: string | (() => void | Promise<void>);
|
|
40
|
-
/** Esbuild treeshake configuration */
|
|
41
|
-
treeshake?: boolean | {
|
|
42
|
-
ignoreAnnotations?: boolean;
|
|
43
|
-
};
|
|
44
|
-
/** Copy static assets from this directory to outDir */
|
|
45
|
-
publicDir?: string;
|
|
46
|
-
/** Files to inject into all bundles (esbuild inject) */
|
|
47
|
-
inject?: string[];
|
|
48
|
-
/** Size budget limits — fail build if any file exceeds the limit */
|
|
49
|
-
sizeLimits?: Record<string, string>;
|
|
50
|
-
/** Inject __dirname/__filename/import.meta.url shims into CJS output (default: true) */
|
|
51
|
-
shims?: boolean;
|
|
52
|
-
}
|
|
53
|
-
export interface TspubPublishConfig {
|
|
54
|
-
registry?: string;
|
|
55
|
-
access?: "public" | "restricted";
|
|
56
|
-
provenance?: boolean;
|
|
57
|
-
branch?: string | string[];
|
|
58
|
-
changelogStyle?: "simple" | "conventional" | "auto";
|
|
59
|
-
ci?: {
|
|
60
|
-
enabled?: boolean;
|
|
61
|
-
skipPush?: boolean;
|
|
62
|
-
};
|
|
63
|
-
github?: {
|
|
64
|
-
release?: boolean;
|
|
65
|
-
draft?: boolean;
|
|
66
|
-
assets?: string[];
|
|
67
|
-
};
|
|
68
|
-
hooks?: {
|
|
69
|
-
beforeBuild?: string;
|
|
70
|
-
afterBuild?: string;
|
|
71
|
-
beforePublish?: string;
|
|
72
|
-
afterPublish?: string;
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
export interface TspubCheckConfig {
|
|
76
|
-
severityOverrides?: Record<string, Severity | "off">;
|
|
77
|
-
plugins?: string[];
|
|
78
|
-
typeTests?: {
|
|
79
|
-
enabled?: boolean;
|
|
80
|
-
directory?: string;
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
export interface TspubDoctorConfig {
|
|
84
|
-
severityOverrides?: Record<string, DoctorSeverity | "off">;
|
|
85
|
-
plugins?: string[];
|
|
86
|
-
profile?: string;
|
|
87
|
-
}
|
|
88
|
-
export interface TspubScanConfig {
|
|
89
|
-
concurrency?: number;
|
|
90
|
-
severityOverrides?: Record<string, Severity | "off">;
|
|
91
|
-
profile?: string;
|
|
92
|
-
}
|
|
93
|
-
export interface TspubChangesetConfig {
|
|
94
|
-
dependentBumping?: "major" | "all" | "none";
|
|
95
|
-
snapshotTag?: string;
|
|
96
|
-
/** Groups of package names that bump together (highest bump wins) */
|
|
97
|
-
linked?: string[][];
|
|
98
|
-
/** Groups of package names that always share the same version */
|
|
99
|
-
fixed?: string[][];
|
|
100
|
-
}
|
|
101
|
-
export interface TspubConfig {
|
|
102
|
-
build?: TspubBuildConfig;
|
|
103
|
-
publish?: TspubPublishConfig;
|
|
104
|
-
check?: TspubCheckConfig;
|
|
105
|
-
doctor?: TspubDoctorConfig;
|
|
106
|
-
scan?: TspubScanConfig;
|
|
107
|
-
changeset?: TspubChangesetConfig;
|
|
108
|
-
}
|
|
109
|
-
//# sourceMappingURL=types.d.ts.map
|