@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
package/README.md
CHANGED
|
@@ -46,7 +46,7 @@ $ npx tspub check
|
|
|
46
46
|
|
|
47
47
|
exports/types-order "types" should be first in conditions
|
|
48
48
|
exports/file-exists ./dist/index.js doesn't exist
|
|
49
|
-
types/false-esm
|
|
49
|
+
types/false-cjs-esm types say ESM, but it's actually CJS
|
|
50
50
|
metadata/license missing license field
|
|
51
51
|
|
|
52
52
|
4 problems found (3 auto-fixable)
|
|
@@ -78,7 +78,7 @@ tspub changeset add # add a changeset for versioning
|
|
|
78
78
|
| Category | Count | Examples |
|
|
79
79
|
|:--|:--|:--|
|
|
80
80
|
| exports | 28 | types-first, file-exists, format-mismatch, ESM/CJS conditions |
|
|
81
|
-
| types | 14 | false-esm,
|
|
81
|
+
| types | 14 | false-cjs-esm, resolution failures, missing declarations |
|
|
82
82
|
| metadata | 11 | license, engines, deprecated fields, repository format |
|
|
83
83
|
| files | 10 | sensitive files leaked, wrong shebang, format validation |
|
|
84
84
|
| imports | 6 | import map validation, resolution checks |
|
|
@@ -125,7 +125,7 @@ await build({ formats: ["esm", "cjs"] });
|
|
|
125
125
|
|
|
126
126
|
## Requirements
|
|
127
127
|
|
|
128
|
-
Node
|
|
128
|
+
Node 20+, TypeScript 5+ recommended.
|
|
129
129
|
|
|
130
130
|
## License
|
|
131
131
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tspub-dev/tspub",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "The unified TypeScript package toolkit — init, build, check, publish in one tool. tspub builds itself.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -22,27 +22,11 @@
|
|
|
22
22
|
},
|
|
23
23
|
"files": [
|
|
24
24
|
"dist",
|
|
25
|
-
"!dist/**/*.map"
|
|
25
|
+
"!dist/**/*.map",
|
|
26
|
+
"!dist/**/*.d.cts",
|
|
27
|
+
"!dist/src",
|
|
28
|
+
"!dist/tsconfig.tsbuildinfo"
|
|
26
29
|
],
|
|
27
|
-
"scripts": {
|
|
28
|
-
"build": "test -f dist/bin/tspub.js || node scripts/bootstrap.js && node dist/bin/tspub.js build",
|
|
29
|
-
"dev": "node dist/bin/tspub.js build --watch",
|
|
30
|
-
"bootstrap": "node scripts/bootstrap.js",
|
|
31
|
-
"test": "vitest",
|
|
32
|
-
"test:run": "vitest run",
|
|
33
|
-
"test:coverage": "vitest run --coverage",
|
|
34
|
-
"test:ecosystem": "vitest run --config vitest.ecosystem.config.ts",
|
|
35
|
-
"lint": "oxlint src/ bin/ test/",
|
|
36
|
-
"typecheck": "tsc --noEmit",
|
|
37
|
-
"check": "node ./dist/bin/tspub.js check",
|
|
38
|
-
"prepublishOnly": "npm run build && npm run check",
|
|
39
|
-
"release:patch": "npm version patch && git push --follow-tags",
|
|
40
|
-
"release:minor": "npm version minor && git push --follow-tags",
|
|
41
|
-
"release:major": "npm version major && git push --follow-tags",
|
|
42
|
-
"docs:dev": "vitepress dev docs",
|
|
43
|
-
"docs:build": "vitepress build docs",
|
|
44
|
-
"docs:preview": "vitepress preview docs"
|
|
45
|
-
},
|
|
46
30
|
"keywords": [
|
|
47
31
|
"typescript",
|
|
48
32
|
"publish",
|
|
@@ -79,12 +63,31 @@
|
|
|
79
63
|
"@vercel/og": "^0.6.0",
|
|
80
64
|
"@vitest/coverage-v8": "^3.2.4",
|
|
81
65
|
"fflate": "^0.8.2",
|
|
66
|
+
"lefthook": "^2.1.1",
|
|
82
67
|
"oxlint": "^1.16.0",
|
|
83
68
|
"typescript": "^5.7.0",
|
|
84
69
|
"vitepress": "^1.6.4",
|
|
85
70
|
"vitest": "^3.0.0"
|
|
86
71
|
},
|
|
87
72
|
"engines": {
|
|
88
|
-
"node": ">=
|
|
73
|
+
"node": ">=20.0.0"
|
|
74
|
+
},
|
|
75
|
+
"scripts": {
|
|
76
|
+
"build": "test -f dist/bin/tspub.js || node scripts/bootstrap.js && node dist/bin/tspub.js build",
|
|
77
|
+
"dev": "node dist/bin/tspub.js build --watch",
|
|
78
|
+
"bootstrap": "node scripts/bootstrap.js",
|
|
79
|
+
"test": "vitest",
|
|
80
|
+
"test:run": "vitest run",
|
|
81
|
+
"test:coverage": "vitest run --coverage",
|
|
82
|
+
"test:ecosystem": "vitest run --config vitest.ecosystem.config.ts",
|
|
83
|
+
"lint": "oxlint src/ bin/ test/",
|
|
84
|
+
"typecheck": "tsc --noEmit",
|
|
85
|
+
"check": "node ./dist/bin/tspub.js check",
|
|
86
|
+
"release:patch": "pnpm version patch && git push --follow-tags",
|
|
87
|
+
"release:minor": "pnpm version minor && git push --follow-tags",
|
|
88
|
+
"release:major": "pnpm version major && git push --follow-tags",
|
|
89
|
+
"docs:dev": "vitepress dev docs",
|
|
90
|
+
"docs:build": "vitepress build docs",
|
|
91
|
+
"docs:preview": "vitepress preview docs"
|
|
89
92
|
}
|
|
90
|
-
}
|
|
93
|
+
}
|
package/dist/bin/tspub.d.cts
DELETED
package/dist/index.d.cts
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
// Auto-generated CJS declaration from index.d.ts
|
|
2
|
-
/** Build TypeScript packages to ESM + CJS with declaration files. */
|
|
3
|
-
export { build } from "./builder/index.js";
|
|
4
|
-
/** Run all checker rules against a package directory. */
|
|
5
|
-
export { check } from "./checker/index.js";
|
|
6
|
-
/** Scaffold a new TypeScript package from templates. */
|
|
7
|
-
export { scaffold } from "./scaffold/index.js";
|
|
8
|
-
/** Result of a single checker rule execution. */
|
|
9
|
-
export type { CheckResult, CheckSeverity } from "./checker/index.js";
|
|
10
|
-
/** Options for the build command. */
|
|
11
|
-
export type { BuildOptions } from "./builder/index.js";
|
|
12
|
-
/** Options for the scaffold command. */
|
|
13
|
-
export type { ScaffoldOptions } from "./scaffold/index.js";
|
|
14
|
-
/** Scan remote GitHub repositories for packaging issues. */
|
|
15
|
-
export { scan } from "./scanner/index.js";
|
|
16
|
-
/** Options and results for the scan command. */
|
|
17
|
-
export type { ScanOptions, ScanResult, PackageScanResult, FixChange, ScanError } from "./scanner/index.js";
|
|
18
|
-
/** Load tspub configuration from tspub.config.ts or package.json. */
|
|
19
|
-
export { loadConfig, loadConfigWithInheritance, invalidateConfigCache } from "./config/index.js";
|
|
20
|
-
/** Configuration types for tspub.config.ts. */
|
|
21
|
-
export type { TspubConfig, TspubBuildConfig, TspubPublishConfig, TspubCheckConfig, TspubDoctorConfig, TspubScanConfig } from "./config/index.js";
|
|
22
|
-
/** Diagnose and auto-fix common TypeScript package issues. */
|
|
23
|
-
export { doctor } from "./doctor/index.js";
|
|
24
|
-
/** Result from the doctor command. */
|
|
25
|
-
export type { DoctorResult, DoctorOptions } from "./doctor/index.js";
|
|
26
|
-
/** Doctor rule types for plugin authors. */
|
|
27
|
-
export type { DoctorRule, DoctorRuleMeta, DoctorContext } from "./doctor/framework/types.js";
|
|
28
|
-
/** Load doctor plugins from npm packages or local paths. */
|
|
29
|
-
export { loadDoctorPlugins } from "./doctor/plugins.js";
|
|
30
|
-
/** Generate a changelog from git history or conventional commits. */
|
|
31
|
-
export { generateChangelog } from "./builder/changelog.js";
|
|
32
|
-
/** Changelog style: "simple", "conventional", or "auto". */
|
|
33
|
-
export type { ChangelogStyle } from "./builder/changelog.js";
|
|
34
|
-
/** Debug type resolution across node10, node16, and bundler modes. */
|
|
35
|
-
export { debugResolution } from "./doctor/resolution.js";
|
|
36
|
-
/** Log level for the internal logger. */
|
|
37
|
-
export type { LogLevel } from "./shared/logger.js";
|
|
38
|
-
/** Discover, sort, and filter packages in a monorepo workspace. */
|
|
39
|
-
export { discoverWorkspaces, topoSort, isMonorepoRoot, filterPackages } from "./workspace/index.js";
|
|
40
|
-
/** A package discovered in a monorepo workspace. */
|
|
41
|
-
export type { WorkspacePackage } from "./workspace/index.js";
|
|
42
|
-
/** Bump version strings. */
|
|
43
|
-
export { bumpVersion, bumpPrerelease } from "./publisher/version-bump.js";
|
|
44
|
-
/** Publish a single package or monorepo. */
|
|
45
|
-
export { publishPackage, publishMonorepo } from "./publisher/publish.js";
|
|
46
|
-
/** Publish types. */
|
|
47
|
-
export type { PublishOptions, PublishResult } from "./publisher/types.js";
|
|
48
|
-
/** Prereq rule types. */
|
|
49
|
-
export type { PrereqRule, PrereqDiagnostic } from "./publisher/framework/types.js";
|
|
50
|
-
/** Resolve the next version bump from commit messages (conventional commits). */
|
|
51
|
-
export { resolveVersionBump } from "./publisher/version-from-commits.js";
|
|
52
|
-
/** Version bump type: "major", "minor", "patch", or null. */
|
|
53
|
-
export type { VersionBump } from "./publisher/version-from-commits.js";
|
|
54
|
-
/** Load checker plugins from npm packages or local paths. */
|
|
55
|
-
export { loadPlugins } from "./checker/plugins.js";
|
|
56
|
-
/** Interface for tspub checker plugins. */
|
|
57
|
-
export type { TspubPlugin } from "./checker/plugins.js";
|
|
58
|
-
/** Core types for writing custom checker rules. */
|
|
59
|
-
export type { Rule, RuleMeta, CheckContext, Severity } from "./checker/framework/types.js";
|
|
60
|
-
/** Checker profiles (strict, library, app) and severity override parsing. */
|
|
61
|
-
export { PROFILES, ALLOW_LIST_PROFILES, CATEGORY_ORDER, RULE_MAPPING, parseSeverityOverrides } from "./checker/profiles.js";
|
|
62
|
-
/** Checker output formatters for programmatic consumers. */
|
|
63
|
-
export { groupResultsByCategory, printGroupedResults, printResolutionTable, printListRules } from "./checker/formatter.js";
|
|
64
|
-
/** Generate markdown reports and summary stats from scan results. */
|
|
65
|
-
export { generateMarkdownReport, generateSummaryStats } from "./scanner/report.js";
|
|
66
|
-
/** Run .test-d.ts type declaration tests against built output. */
|
|
67
|
-
export { runTypeTests } from "./type-tester/index.js";
|
|
68
|
-
/** Results and options for the type tester. */
|
|
69
|
-
export type { TypeTestResult, TypeTestError, TypeTestOptions } from "./type-tester/index.js";
|
|
70
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// Auto-generated CJS declaration from changelog-conventional.d.ts
|
|
2
|
-
export interface ConventionalCommit {
|
|
3
|
-
type: string;
|
|
4
|
-
scope: string | null;
|
|
5
|
-
breaking: boolean;
|
|
6
|
-
message: string;
|
|
7
|
-
raw: string;
|
|
8
|
-
}
|
|
9
|
-
export declare function parseConventionalCommit(msg: string): ConventionalCommit | null;
|
|
10
|
-
export declare function generateConventionalChangelog(dir: string, version: string): Promise<void>;
|
|
11
|
-
export declare function isConventionalFormat(commits: string[]): boolean;
|
|
12
|
-
//# sourceMappingURL=changelog-conventional.d.ts.map
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export interface ConventionalCommit {
|
|
2
|
-
type: string;
|
|
3
|
-
scope: string | null;
|
|
4
|
-
breaking: boolean;
|
|
5
|
-
message: string;
|
|
6
|
-
raw: string;
|
|
7
|
-
}
|
|
8
|
-
export declare function parseConventionalCommit(msg: string): ConventionalCommit | null;
|
|
9
|
-
export declare function generateConventionalChangelog(dir: string, version: string): Promise<void>;
|
|
10
|
-
export declare function isConventionalFormat(commits: string[]): boolean;
|
|
11
|
-
//# sourceMappingURL=changelog-conventional.d.ts.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
// Auto-generated CJS declaration from changelog.d.ts
|
|
2
|
-
export type ChangelogStyle = "simple" | "conventional" | "auto";
|
|
3
|
-
export declare function generateChangelog(dir: string, version: string, style?: ChangelogStyle): Promise<void>;
|
|
4
|
-
//# sourceMappingURL=changelog.d.ts.map
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
// Auto-generated CJS declaration from dts-bundle.d.ts
|
|
2
|
-
export interface DtsBundleOptions {
|
|
3
|
-
/** Directory containing generated .d.ts files */
|
|
4
|
-
outDir: string;
|
|
5
|
-
/** Entry .d.ts file names (relative to outDir), e.g. ["index.d.ts"] */
|
|
6
|
-
entries: string[];
|
|
7
|
-
/** Also resolve types from external packages into the bundle */
|
|
8
|
-
resolveExternals?: boolean;
|
|
9
|
-
}
|
|
10
|
-
/** Reset the cached TypeScript module (useful in watch mode after TS upgrades). */
|
|
11
|
-
export declare function resetTypeScriptCache(): void;
|
|
12
|
-
/**
|
|
13
|
-
* Bundle per-file .d.ts output into single-file declarations per entry.
|
|
14
|
-
*
|
|
15
|
-
* Uses TypeScript Compiler API for accurate symbol resolution,
|
|
16
|
-
* type tree-shaking, and collision detection.
|
|
17
|
-
*/
|
|
18
|
-
export declare function bundleDts(options: DtsBundleOptions): Promise<void>;
|
|
19
|
-
//# sourceMappingURL=dts-bundle.d.ts.map
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export interface DtsBundleOptions {
|
|
2
|
-
/** Directory containing generated .d.ts files */
|
|
3
|
-
outDir: string;
|
|
4
|
-
/** Entry .d.ts file names (relative to outDir), e.g. ["index.d.ts"] */
|
|
5
|
-
entries: string[];
|
|
6
|
-
/** Also resolve types from external packages into the bundle */
|
|
7
|
-
resolveExternals?: boolean;
|
|
8
|
-
}
|
|
9
|
-
/** Reset the cached TypeScript module (useful in watch mode after TS upgrades). */
|
|
10
|
-
export declare function resetTypeScriptCache(): void;
|
|
11
|
-
/**
|
|
12
|
-
* Bundle per-file .d.ts output into single-file declarations per entry.
|
|
13
|
-
*
|
|
14
|
-
* Uses TypeScript Compiler API for accurate symbol resolution,
|
|
15
|
-
* type tree-shaking, and collision detection.
|
|
16
|
-
*/
|
|
17
|
-
export declare function bundleDts(options: DtsBundleOptions): Promise<void>;
|
|
18
|
-
//# sourceMappingURL=dts-bundle.d.ts.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
// Auto-generated CJS declaration from dts.d.ts
|
|
2
|
-
export interface DtsOptions {
|
|
3
|
-
dir: string;
|
|
4
|
-
outDir: string;
|
|
5
|
-
/** Package type field — determines which dual-format variants to emit */
|
|
6
|
-
packageType?: "module" | "commonjs";
|
|
7
|
-
}
|
|
8
|
-
export declare function generateDts(options: DtsOptions): Promise<void>;
|
|
9
|
-
//# sourceMappingURL=dts.d.ts.map
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export interface DtsOptions {
|
|
2
|
-
dir: string;
|
|
3
|
-
outDir: string;
|
|
4
|
-
/** Package type field — determines which dual-format variants to emit */
|
|
5
|
-
packageType?: "module" | "commonjs";
|
|
6
|
-
}
|
|
7
|
-
export declare function generateDts(options: DtsOptions): Promise<void>;
|
|
8
|
-
//# sourceMappingURL=dts.d.ts.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
// Auto-generated CJS declaration from entry-inference.d.ts
|
|
2
|
-
import type { PackageJson } from "../shared/package-json.js";
|
|
3
|
-
export declare function inferEntryFromPackageJson(pkg: PackageJson, dir: string): Promise<string[] | null>;
|
|
4
|
-
//# sourceMappingURL=entry-inference.d.ts.map
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
// Auto-generated CJS declaration from esbuild-builder.d.ts
|
|
2
|
-
import * as esbuild from "esbuild";
|
|
3
|
-
import { type TspubBuildPlugin, type OutputFile } from "./plugins.js";
|
|
4
|
-
export interface EsbuildBuildOptions {
|
|
5
|
-
dir: string;
|
|
6
|
-
entry: string[] | Record<string, string>;
|
|
7
|
-
formats: Array<"esm" | "cjs" | "iife">;
|
|
8
|
-
outDir: string;
|
|
9
|
-
dts: boolean;
|
|
10
|
-
dtsBundle?: boolean;
|
|
11
|
-
dtsResolve?: boolean;
|
|
12
|
-
sourcemap: boolean;
|
|
13
|
-
watch: boolean;
|
|
14
|
-
minify?: boolean;
|
|
15
|
-
splitting?: boolean;
|
|
16
|
-
target?: string;
|
|
17
|
-
platform?: "node" | "browser" | "neutral";
|
|
18
|
-
external?: (string | RegExp)[];
|
|
19
|
-
noExternal?: string[];
|
|
20
|
-
plugins?: TspubBuildPlugin[];
|
|
21
|
-
esbuildPlugins?: esbuild.Plugin[];
|
|
22
|
-
define?: Record<string, string>;
|
|
23
|
-
banner?: {
|
|
24
|
-
js?: string;
|
|
25
|
-
};
|
|
26
|
-
footer?: {
|
|
27
|
-
js?: string;
|
|
28
|
-
};
|
|
29
|
-
cjsInterop?: boolean;
|
|
30
|
-
loader?: Record<string, esbuild.Loader>;
|
|
31
|
-
/** @deprecated Use replaceNodeEnv */
|
|
32
|
-
envProduction?: boolean;
|
|
33
|
-
replaceNodeEnv?: boolean;
|
|
34
|
-
globalName?: string;
|
|
35
|
-
onSuccess?: string | (() => void | Promise<void>);
|
|
36
|
-
treeshake?: boolean | {
|
|
37
|
-
ignoreAnnotations?: boolean;
|
|
38
|
-
};
|
|
39
|
-
publicDir?: string;
|
|
40
|
-
inject?: string[];
|
|
41
|
-
sizeLimits?: Record<string, string>;
|
|
42
|
-
shims?: boolean;
|
|
43
|
-
}
|
|
44
|
-
export interface BuildResult {
|
|
45
|
-
outputFiles: OutputFile[];
|
|
46
|
-
duration: number;
|
|
47
|
-
}
|
|
48
|
-
export declare function buildWithEsbuild(options: EsbuildBuildOptions): Promise<BuildResult>;
|
|
49
|
-
//# sourceMappingURL=esbuild-builder.d.ts.map
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import * as esbuild from "esbuild";
|
|
2
|
-
import { type TspubBuildPlugin, type OutputFile } from "./plugins.js";
|
|
3
|
-
export interface EsbuildBuildOptions {
|
|
4
|
-
dir: string;
|
|
5
|
-
entry: string[] | Record<string, string>;
|
|
6
|
-
formats: Array<"esm" | "cjs" | "iife">;
|
|
7
|
-
outDir: string;
|
|
8
|
-
dts: boolean;
|
|
9
|
-
dtsBundle?: boolean;
|
|
10
|
-
dtsResolve?: boolean;
|
|
11
|
-
sourcemap: boolean;
|
|
12
|
-
watch: boolean;
|
|
13
|
-
minify?: boolean;
|
|
14
|
-
splitting?: boolean;
|
|
15
|
-
target?: string;
|
|
16
|
-
platform?: "node" | "browser" | "neutral";
|
|
17
|
-
external?: (string | RegExp)[];
|
|
18
|
-
noExternal?: string[];
|
|
19
|
-
plugins?: TspubBuildPlugin[];
|
|
20
|
-
esbuildPlugins?: esbuild.Plugin[];
|
|
21
|
-
define?: Record<string, string>;
|
|
22
|
-
banner?: {
|
|
23
|
-
js?: string;
|
|
24
|
-
};
|
|
25
|
-
footer?: {
|
|
26
|
-
js?: string;
|
|
27
|
-
};
|
|
28
|
-
cjsInterop?: boolean;
|
|
29
|
-
loader?: Record<string, esbuild.Loader>;
|
|
30
|
-
/** @deprecated Use replaceNodeEnv */
|
|
31
|
-
envProduction?: boolean;
|
|
32
|
-
replaceNodeEnv?: boolean;
|
|
33
|
-
globalName?: string;
|
|
34
|
-
onSuccess?: string | (() => void | Promise<void>);
|
|
35
|
-
treeshake?: boolean | {
|
|
36
|
-
ignoreAnnotations?: boolean;
|
|
37
|
-
};
|
|
38
|
-
publicDir?: string;
|
|
39
|
-
inject?: string[];
|
|
40
|
-
sizeLimits?: Record<string, string>;
|
|
41
|
-
shims?: boolean;
|
|
42
|
-
}
|
|
43
|
-
export interface BuildResult {
|
|
44
|
-
outputFiles: OutputFile[];
|
|
45
|
-
duration: number;
|
|
46
|
-
}
|
|
47
|
-
export declare function buildWithEsbuild(options: EsbuildBuildOptions): Promise<BuildResult>;
|
|
48
|
-
//# sourceMappingURL=esbuild-builder.d.ts.map
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// Auto-generated CJS declaration from externals.d.ts
|
|
2
|
-
import type { Plugin } from "esbuild";
|
|
3
|
-
export interface ExternalResult {
|
|
4
|
-
/** Exact string externals (node builtins + dep names) for esbuild's `external` */
|
|
5
|
-
strings: string[];
|
|
6
|
-
/** Plugin that handles subpath imports + regex externals */
|
|
7
|
-
plugin: Plugin | null;
|
|
8
|
-
/** Dependency names resolved from package.json (for legacy flat API) */
|
|
9
|
-
depNames: string[];
|
|
10
|
-
}
|
|
11
|
-
export declare function resolveExternals(dir: string, userExternals?: (string | RegExp)[], noExternal?: string[]): ExternalResult;
|
|
12
|
-
/**
|
|
13
|
-
* Legacy API: returns flat string array for backward compatibility with tests.
|
|
14
|
-
* Delegates to resolveExternals() and flattens the result.
|
|
15
|
-
* @deprecated Use resolveExternals() which returns ExternalResult instead.
|
|
16
|
-
*/
|
|
17
|
-
export declare function resolveExternalsFlat(dir: string, userExternals?: (string | RegExp)[], noExternal?: string[]): string[];
|
|
18
|
-
//# sourceMappingURL=externals.d.ts.map
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { Plugin } from "esbuild";
|
|
2
|
-
export interface ExternalResult {
|
|
3
|
-
/** Exact string externals (node builtins + dep names) for esbuild's `external` */
|
|
4
|
-
strings: string[];
|
|
5
|
-
/** Plugin that handles subpath imports + regex externals */
|
|
6
|
-
plugin: Plugin | null;
|
|
7
|
-
/** Dependency names resolved from package.json (for legacy flat API) */
|
|
8
|
-
depNames: string[];
|
|
9
|
-
}
|
|
10
|
-
export declare function resolveExternals(dir: string, userExternals?: (string | RegExp)[], noExternal?: string[]): ExternalResult;
|
|
11
|
-
/**
|
|
12
|
-
* Legacy API: returns flat string array for backward compatibility with tests.
|
|
13
|
-
* Delegates to resolveExternals() and flattens the result.
|
|
14
|
-
* @deprecated Use resolveExternals() which returns ExternalResult instead.
|
|
15
|
-
*/
|
|
16
|
-
export declare function resolveExternalsFlat(dir: string, userExternals?: (string | RegExp)[], noExternal?: string[]): string[];
|
|
17
|
-
//# sourceMappingURL=externals.d.ts.map
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
// Auto-generated CJS declaration from index.d.ts
|
|
2
|
-
import type { TspubBuildPlugin } from "./plugins.js";
|
|
3
|
-
import type * as esbuild from "esbuild";
|
|
4
|
-
export type { TspubBuildPlugin } from "./plugins.js";
|
|
5
|
-
export interface BuildOptions {
|
|
6
|
-
formats: Array<"esm" | "cjs" | "iife">;
|
|
7
|
-
dts: boolean;
|
|
8
|
-
sourcemap: boolean;
|
|
9
|
-
watch: boolean;
|
|
10
|
-
dir: string;
|
|
11
|
-
entry?: string | string[] | Record<string, string>;
|
|
12
|
-
clean?: boolean;
|
|
13
|
-
outDir?: string;
|
|
14
|
-
minify?: boolean;
|
|
15
|
-
splitting?: boolean;
|
|
16
|
-
target?: string;
|
|
17
|
-
platform?: "node" | "browser" | "neutral";
|
|
18
|
-
external?: (string | RegExp)[];
|
|
19
|
-
noExternal?: string[];
|
|
20
|
-
plugins?: TspubBuildPlugin[];
|
|
21
|
-
esbuildPlugins?: esbuild.Plugin[];
|
|
22
|
-
define?: Record<string, string>;
|
|
23
|
-
banner?: {
|
|
24
|
-
js?: string;
|
|
25
|
-
};
|
|
26
|
-
footer?: {
|
|
27
|
-
js?: string;
|
|
28
|
-
};
|
|
29
|
-
cjsInterop?: boolean;
|
|
30
|
-
loader?: Record<string, esbuild.Loader>;
|
|
31
|
-
/** @deprecated Use replaceNodeEnv */
|
|
32
|
-
envProduction?: boolean;
|
|
33
|
-
replaceNodeEnv?: boolean;
|
|
34
|
-
globalName?: string;
|
|
35
|
-
/** Shell command to run after successful build. Runs with shell: true — only use trusted values from config. */
|
|
36
|
-
onSuccess?: string | (() => void | Promise<void>);
|
|
37
|
-
treeshake?: boolean | {
|
|
38
|
-
ignoreAnnotations?: boolean;
|
|
39
|
-
};
|
|
40
|
-
publicDir?: string;
|
|
41
|
-
inject?: string[];
|
|
42
|
-
dtsBundle?: boolean;
|
|
43
|
-
dtsResolve?: boolean;
|
|
44
|
-
/** Use legacy tsc-only build. Note: only dts, sourcemap, watch, outDir, and dir are honored; all other options (entry, formats, minify, splitting, etc.) are ignored. */
|
|
45
|
-
legacy?: boolean;
|
|
46
|
-
/** Size budget limits — fail build if exceeded (gzip size) */
|
|
47
|
-
sizeLimits?: Record<string, string>;
|
|
48
|
-
/** Inject __dirname/__filename/import.meta.url shims into CJS output (default: true) */
|
|
49
|
-
shims?: boolean;
|
|
50
|
-
}
|
|
51
|
-
export declare function build(options: BuildOptions): Promise<void>;
|
|
52
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import type { TspubBuildPlugin } from "./plugins.js";
|
|
2
|
-
import type * as esbuild from "esbuild";
|
|
3
|
-
export type { TspubBuildPlugin } from "./plugins.js";
|
|
4
|
-
export interface BuildOptions {
|
|
5
|
-
formats: Array<"esm" | "cjs" | "iife">;
|
|
6
|
-
dts: boolean;
|
|
7
|
-
sourcemap: boolean;
|
|
8
|
-
watch: boolean;
|
|
9
|
-
dir: string;
|
|
10
|
-
entry?: string | string[] | Record<string, string>;
|
|
11
|
-
clean?: boolean;
|
|
12
|
-
outDir?: string;
|
|
13
|
-
minify?: boolean;
|
|
14
|
-
splitting?: boolean;
|
|
15
|
-
target?: string;
|
|
16
|
-
platform?: "node" | "browser" | "neutral";
|
|
17
|
-
external?: (string | RegExp)[];
|
|
18
|
-
noExternal?: string[];
|
|
19
|
-
plugins?: TspubBuildPlugin[];
|
|
20
|
-
esbuildPlugins?: esbuild.Plugin[];
|
|
21
|
-
define?: Record<string, string>;
|
|
22
|
-
banner?: {
|
|
23
|
-
js?: string;
|
|
24
|
-
};
|
|
25
|
-
footer?: {
|
|
26
|
-
js?: string;
|
|
27
|
-
};
|
|
28
|
-
cjsInterop?: boolean;
|
|
29
|
-
loader?: Record<string, esbuild.Loader>;
|
|
30
|
-
/** @deprecated Use replaceNodeEnv */
|
|
31
|
-
envProduction?: boolean;
|
|
32
|
-
replaceNodeEnv?: boolean;
|
|
33
|
-
globalName?: string;
|
|
34
|
-
/** Shell command to run after successful build. Runs with shell: true — only use trusted values from config. */
|
|
35
|
-
onSuccess?: string | (() => void | Promise<void>);
|
|
36
|
-
treeshake?: boolean | {
|
|
37
|
-
ignoreAnnotations?: boolean;
|
|
38
|
-
};
|
|
39
|
-
publicDir?: string;
|
|
40
|
-
inject?: string[];
|
|
41
|
-
dtsBundle?: boolean;
|
|
42
|
-
dtsResolve?: boolean;
|
|
43
|
-
/** Use legacy tsc-only build. Note: only dts, sourcemap, watch, outDir, and dir are honored; all other options (entry, formats, minify, splitting, etc.) are ignored. */
|
|
44
|
-
legacy?: boolean;
|
|
45
|
-
/** Size budget limits — fail build if exceeded (gzip size) */
|
|
46
|
-
sizeLimits?: Record<string, string>;
|
|
47
|
-
/** Inject __dirname/__filename/import.meta.url shims into CJS output (default: true) */
|
|
48
|
-
shims?: boolean;
|
|
49
|
-
}
|
|
50
|
-
export declare function build(options: BuildOptions): Promise<void>;
|
|
51
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
// Auto-generated CJS declaration from plugins.d.ts
|
|
2
|
-
export interface ChunkInfo {
|
|
3
|
-
path: string;
|
|
4
|
-
format: "esm" | "cjs" | "iife";
|
|
5
|
-
}
|
|
6
|
-
export interface OutputFile {
|
|
7
|
-
path: string;
|
|
8
|
-
size: number;
|
|
9
|
-
}
|
|
10
|
-
export interface TspubBuildPlugin {
|
|
11
|
-
name: string;
|
|
12
|
-
buildStart?(): Promise<void> | void;
|
|
13
|
-
renderChunk?(code: string, info: ChunkInfo): Promise<{
|
|
14
|
-
code: string;
|
|
15
|
-
} | void> | void;
|
|
16
|
-
buildEnd?(ctx: {
|
|
17
|
-
files: OutputFile[];
|
|
18
|
-
}): Promise<void> | void;
|
|
19
|
-
}
|
|
20
|
-
export interface PluginContainer {
|
|
21
|
-
buildStart(): Promise<void>;
|
|
22
|
-
processChunk(code: string, info: ChunkInfo): Promise<string>;
|
|
23
|
-
buildEnd(files: OutputFile[]): Promise<void>;
|
|
24
|
-
}
|
|
25
|
-
export declare function createPluginContainer(plugins: TspubBuildPlugin[]): PluginContainer;
|
|
26
|
-
//# sourceMappingURL=plugins.d.ts.map
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export interface ChunkInfo {
|
|
2
|
-
path: string;
|
|
3
|
-
format: "esm" | "cjs" | "iife";
|
|
4
|
-
}
|
|
5
|
-
export interface OutputFile {
|
|
6
|
-
path: string;
|
|
7
|
-
size: number;
|
|
8
|
-
}
|
|
9
|
-
export interface TspubBuildPlugin {
|
|
10
|
-
name: string;
|
|
11
|
-
buildStart?(): Promise<void> | void;
|
|
12
|
-
renderChunk?(code: string, info: ChunkInfo): Promise<{
|
|
13
|
-
code: string;
|
|
14
|
-
} | void> | void;
|
|
15
|
-
buildEnd?(ctx: {
|
|
16
|
-
files: OutputFile[];
|
|
17
|
-
}): Promise<void> | void;
|
|
18
|
-
}
|
|
19
|
-
export interface PluginContainer {
|
|
20
|
-
buildStart(): Promise<void>;
|
|
21
|
-
processChunk(code: string, info: ChunkInfo): Promise<string>;
|
|
22
|
-
buildEnd(files: OutputFile[]): Promise<void>;
|
|
23
|
-
}
|
|
24
|
-
export declare function createPluginContainer(plugins: TspubBuildPlugin[]): PluginContainer;
|
|
25
|
-
//# sourceMappingURL=plugins.d.ts.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
// Auto-generated CJS declaration from public-dir.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* Copy contents of publicDir into outDir.
|
|
4
|
-
* Similar to Vite's publicDir — static assets copied as-is.
|
|
5
|
-
*/
|
|
6
|
-
export declare function copyPublicDir(dir: string, publicDir: string, outDir: string): Promise<void>;
|
|
7
|
-
//# sourceMappingURL=public-dir.d.ts.map
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// Auto-generated CJS declaration from size-report.d.ts
|
|
2
|
-
import type { OutputFile } from "./plugins.js";
|
|
3
|
-
export interface FileSizeInfo {
|
|
4
|
-
name: string;
|
|
5
|
-
path: string;
|
|
6
|
-
raw: number;
|
|
7
|
-
gzip: number;
|
|
8
|
-
}
|
|
9
|
-
export declare function computeSizes(files: OutputFile[], baseDir?: string): FileSizeInfo[];
|
|
10
|
-
export declare function reportSizes(files: OutputFile[], baseDir?: string): FileSizeInfo[];
|
|
11
|
-
export declare function checkSizeLimits(sizeInfos: FileSizeInfo[], limits: Record<string, string>): string[];
|
|
12
|
-
//# sourceMappingURL=size-report.d.ts.map
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { OutputFile } from "./plugins.js";
|
|
2
|
-
export interface FileSizeInfo {
|
|
3
|
-
name: string;
|
|
4
|
-
path: string;
|
|
5
|
-
raw: number;
|
|
6
|
-
gzip: number;
|
|
7
|
-
}
|
|
8
|
-
export declare function computeSizes(files: OutputFile[], baseDir?: string): FileSizeInfo[];
|
|
9
|
-
export declare function reportSizes(files: OutputFile[], baseDir?: string): FileSizeInfo[];
|
|
10
|
-
export declare function checkSizeLimits(sizeInfos: FileSizeInfo[], limits: Record<string, string>): string[];
|
|
11
|
-
//# sourceMappingURL=size-report.d.ts.map
|