@xylabs/ts-scripts-yarn3 6.0.4 → 6.0.6
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/dist/actions/build.mjs +10 -0
- package/dist/actions/build.mjs.map +1 -1
- package/dist/actions/compile-types.mjs +2 -2
- package/dist/actions/compile-types.mjs.map +1 -1
- package/dist/actions/compile.mjs +7 -9
- package/dist/actions/compile.mjs.map +1 -1
- package/dist/actions/fix.mjs +1 -7
- package/dist/actions/fix.mjs.map +1 -1
- package/dist/actions/index.mjs +204 -235
- package/dist/actions/index.mjs.map +1 -1
- package/dist/actions/lint.mjs +1 -7
- package/dist/actions/lint.mjs.map +1 -1
- package/dist/actions/package/compile/compile.mjs +101 -169
- package/dist/actions/package/compile/compile.mjs.map +1 -1
- package/dist/actions/package/compile/compileTypes.mjs +16 -31
- package/dist/actions/package/compile/compileTypes.mjs.map +1 -1
- package/dist/actions/package/compile/index.mjs +156 -177
- package/dist/actions/package/compile/index.mjs.map +1 -1
- package/dist/actions/package/compile/packageCompileTscTypes.mjs +14 -29
- package/dist/actions/package/compile/packageCompileTscTypes.mjs.map +1 -1
- package/dist/actions/package/compile/packageCompileTsup.mjs +94 -82
- package/dist/actions/package/compile/packageCompileTsup.mjs.map +1 -1
- package/dist/actions/package/index.mjs +172 -193
- package/dist/actions/package/index.mjs.map +1 -1
- package/dist/actions/package/recompile.mjs +101 -169
- package/dist/actions/package/recompile.mjs.map +1 -1
- package/dist/actions/recompile.mjs +1 -7
- package/dist/actions/recompile.mjs.map +1 -1
- package/dist/actions/relint.mjs +1 -7
- package/dist/actions/relint.mjs.map +1 -1
- package/dist/bin/package/build-only.mjs +104 -172
- package/dist/bin/package/build-only.mjs.map +1 -1
- package/dist/bin/package/build.mjs +104 -172
- package/dist/bin/package/build.mjs.map +1 -1
- package/dist/bin/package/clean-outputs.mjs +1 -6
- package/dist/bin/package/clean-outputs.mjs.map +1 -1
- package/dist/bin/package/clean-typescript.mjs +1 -6
- package/dist/bin/package/clean-typescript.mjs.map +1 -1
- package/dist/bin/package/compile-only.mjs +103 -171
- package/dist/bin/package/compile-only.mjs.map +1 -1
- package/dist/bin/package/compile-tsup.mjs +113 -99
- package/dist/bin/package/compile-tsup.mjs.map +1 -1
- package/dist/bin/package/compile-types.mjs +45 -56
- package/dist/bin/package/compile-types.mjs.map +1 -1
- package/dist/bin/package/compile.mjs +103 -171
- package/dist/bin/package/compile.mjs.map +1 -1
- package/dist/bin/package/recompile.mjs +103 -171
- package/dist/bin/package/recompile.mjs.map +1 -1
- package/dist/bin/xy.mjs +22 -33
- package/dist/bin/xy.mjs.map +1 -1
- package/dist/index.d.ts +9 -14
- package/dist/index.mjs +214 -246
- package/dist/index.mjs.map +1 -1
- package/dist/types/actions/build.d.ts +9 -0
- package/dist/types/actions/build.d.ts.map +1 -0
- package/dist/types/actions/clean-docs.d.ts +2 -0
- package/dist/types/actions/clean-docs.d.ts.map +1 -0
- package/dist/types/actions/clean-eslint.d.ts +2 -0
- package/dist/types/actions/clean-eslint.d.ts.map +1 -0
- package/dist/types/actions/clean-jest.d.ts +2 -0
- package/dist/types/actions/clean-jest.d.ts.map +1 -0
- package/dist/types/actions/clean.d.ts +12 -0
- package/dist/types/actions/clean.d.ts.map +1 -0
- package/dist/types/actions/compile-types.d.ts +16 -0
- package/dist/types/actions/compile-types.d.ts.map +1 -0
- package/dist/types/actions/compile.d.ts +19 -0
- package/dist/types/actions/compile.d.ts.map +1 -0
- package/dist/types/actions/copy-assets.d.ts +6 -0
- package/dist/types/actions/copy-assets.d.ts.map +1 -0
- package/dist/types/actions/cycle.d.ts +2 -0
- package/dist/types/actions/cycle.d.ts.map +1 -0
- package/dist/types/actions/dead.d.ts +2 -0
- package/dist/types/actions/dead.d.ts.map +1 -0
- package/dist/types/actions/deploy-major.d.ts +2 -0
- package/dist/types/actions/deploy-major.d.ts.map +1 -0
- package/dist/types/actions/deploy-minor.d.ts +2 -0
- package/dist/types/actions/deploy-minor.d.ts.map +1 -0
- package/dist/types/actions/deploy-next.d.ts +2 -0
- package/dist/types/actions/deploy-next.d.ts.map +1 -0
- package/dist/types/actions/deploy.d.ts +2 -0
- package/dist/types/actions/deploy.d.ts.map +1 -0
- package/dist/types/actions/deps.d.ts +13 -0
- package/dist/types/actions/deps.d.ts.map +1 -0
- package/dist/types/actions/dupdeps.d.ts +2 -0
- package/dist/types/actions/dupdeps.d.ts.map +1 -0
- package/dist/types/actions/fix.d.ts +3 -0
- package/dist/types/actions/fix.d.ts.map +1 -0
- package/dist/types/actions/gen-docs.d.ts +11 -0
- package/dist/types/actions/gen-docs.d.ts.map +1 -0
- package/dist/types/actions/gitignore-gen.d.ts +2 -0
- package/dist/types/actions/gitignore-gen.d.ts.map +1 -0
- package/dist/types/actions/gitlint-fix.d.ts +2 -0
- package/dist/types/actions/gitlint-fix.d.ts.map +1 -0
- package/dist/types/actions/gitlint.d.ts +2 -0
- package/dist/types/actions/gitlint.d.ts.map +1 -0
- package/dist/types/actions/index.d.ts +38 -0
- package/dist/types/actions/index.d.ts.map +1 -0
- package/dist/types/actions/license.d.ts +2 -0
- package/dist/types/actions/license.d.ts.map +1 -0
- package/dist/types/actions/lint.d.ts +14 -0
- package/dist/types/actions/lint.d.ts.map +1 -0
- package/dist/types/actions/npmignore-gen.d.ts +2 -0
- package/dist/types/actions/npmignore-gen.d.ts.map +1 -0
- package/dist/types/actions/package/clean-outputs.d.ts +2 -0
- package/dist/types/actions/package/clean-outputs.d.ts.map +1 -0
- package/dist/types/actions/package/clean-typescript.d.ts +2 -0
- package/dist/types/actions/package/clean-typescript.d.ts.map +1 -0
- package/dist/types/actions/package/clean.d.ts +2 -0
- package/dist/types/actions/package/clean.d.ts.map +1 -0
- package/dist/types/actions/package/compile/XyConfig.d.ts +58 -0
- package/dist/types/actions/package/compile/XyConfig.d.ts.map +1 -0
- package/dist/types/actions/package/compile/buildEntries.d.ts +3 -0
- package/dist/types/actions/package/compile/buildEntries.d.ts.map +1 -0
- package/dist/types/actions/package/compile/compile.d.ts +3 -0
- package/dist/types/actions/package/compile/compile.d.ts.map +1 -0
- package/dist/types/actions/package/compile/compileTypes.d.ts +3 -0
- package/dist/types/actions/package/compile/compileTypes.d.ts.map +1 -0
- package/dist/types/actions/package/compile/copyTypeFiles.d.ts +3 -0
- package/dist/types/actions/package/compile/copyTypeFiles.d.ts.map +1 -0
- package/dist/types/actions/package/compile/deepMerge.d.ts +4 -0
- package/dist/types/actions/package/compile/deepMerge.d.ts.map +1 -0
- package/dist/types/actions/package/compile/getCompilerOptions.d.ts +3 -0
- package/dist/types/actions/package/compile/getCompilerOptions.d.ts.map +1 -0
- package/dist/types/actions/package/compile/index.d.ts +7 -0
- package/dist/types/actions/package/compile/index.d.ts.map +1 -0
- package/dist/types/actions/package/compile/inputs.d.ts +2 -0
- package/dist/types/actions/package/compile/inputs.d.ts.map +1 -0
- package/dist/types/actions/package/compile/packageCompileTsc.d.ts +4 -0
- package/dist/types/actions/package/compile/packageCompileTsc.d.ts.map +1 -0
- package/dist/types/actions/package/compile/packageCompileTscTypes.d.ts +4 -0
- package/dist/types/actions/package/compile/packageCompileTscTypes.d.ts.map +1 -0
- package/dist/types/actions/package/compile/packageCompileTsup.d.ts +5 -0
- package/dist/types/actions/package/compile/packageCompileTsup.d.ts.map +1 -0
- package/dist/types/actions/package/copy-assets.d.ts +5 -0
- package/dist/types/actions/package/copy-assets.d.ts.map +1 -0
- package/dist/types/actions/package/deps.d.ts +2 -0
- package/dist/types/actions/package/deps.d.ts.map +1 -0
- package/dist/types/actions/package/gen-docs.d.ts +2 -0
- package/dist/types/actions/package/gen-docs.d.ts.map +1 -0
- package/dist/types/actions/package/index.d.ts +11 -0
- package/dist/types/actions/package/index.d.ts.map +1 -0
- package/dist/types/actions/package/lint.d.ts +2 -0
- package/dist/types/actions/package/lint.d.ts.map +1 -0
- package/dist/types/actions/package/publint.d.ts +5 -0
- package/dist/types/actions/package/publint.d.ts.map +1 -0
- package/dist/types/actions/package/recompile.d.ts +2 -0
- package/dist/types/actions/package/recompile.d.ts.map +1 -0
- package/dist/types/actions/publint.d.ts +12 -0
- package/dist/types/actions/publint.d.ts.map +1 -0
- package/dist/types/actions/rebuild.d.ts +6 -0
- package/dist/types/actions/rebuild.d.ts.map +1 -0
- package/dist/types/actions/recompile.d.ts +16 -0
- package/dist/types/actions/recompile.d.ts.map +1 -0
- package/dist/types/actions/reinstall.d.ts +2 -0
- package/dist/types/actions/reinstall.d.ts.map +1 -0
- package/dist/types/actions/relint.d.ts +13 -0
- package/dist/types/actions/relint.d.ts.map +1 -0
- package/dist/types/actions/retest.d.ts +2 -0
- package/dist/types/actions/retest.d.ts.map +1 -0
- package/dist/types/actions/sonar.d.ts +2 -0
- package/dist/types/actions/sonar.d.ts.map +1 -0
- package/dist/types/actions/statics.d.ts +2 -0
- package/dist/types/actions/statics.d.ts.map +1 -0
- package/dist/types/actions/test.d.ts +2 -0
- package/dist/types/actions/test.d.ts.map +1 -0
- package/dist/types/actions/up.d.ts +2 -0
- package/dist/types/actions/up.d.ts.map +1 -0
- package/dist/types/actions/updo.d.ts +2 -0
- package/dist/types/actions/updo.d.ts.map +1 -0
- package/dist/types/actions/upplug.d.ts +2 -0
- package/dist/types/actions/upplug.d.ts.map +1 -0
- package/dist/types/actions/upyarn.d.ts +2 -0
- package/dist/types/actions/upyarn.d.ts.map +1 -0
- package/dist/types/actions/yarn3only.d.ts +2 -0
- package/dist/types/actions/yarn3only.d.ts.map +1 -0
- package/dist/types/bin/package/build-only.d.ts +3 -0
- package/dist/types/bin/package/build-only.d.ts.map +1 -0
- package/dist/types/bin/package/build.d.ts +3 -0
- package/dist/types/bin/package/build.d.ts.map +1 -0
- package/dist/types/bin/package/clean-outputs.d.ts +3 -0
- package/dist/types/bin/package/clean-outputs.d.ts.map +1 -0
- package/dist/types/bin/package/clean-typescript.d.ts +3 -0
- package/dist/types/bin/package/clean-typescript.d.ts.map +1 -0
- package/dist/types/bin/package/clean.d.ts +3 -0
- package/dist/types/bin/package/clean.d.ts.map +1 -0
- package/dist/types/bin/package/compile-only.d.ts +3 -0
- package/dist/types/bin/package/compile-only.d.ts.map +1 -0
- package/dist/types/bin/package/compile-tsup.d.ts +3 -0
- package/dist/types/bin/package/compile-tsup.d.ts.map +1 -0
- package/dist/types/bin/package/compile-types.d.ts +3 -0
- package/dist/types/bin/package/compile-types.d.ts.map +1 -0
- package/dist/types/bin/package/compile.d.ts +3 -0
- package/dist/types/bin/package/compile.d.ts.map +1 -0
- package/dist/types/bin/package/copy-assets-cjs.d.ts +3 -0
- package/dist/types/bin/package/copy-assets-cjs.d.ts.map +1 -0
- package/dist/types/bin/package/copy-assets-esm.d.ts +3 -0
- package/dist/types/bin/package/copy-assets-esm.d.ts.map +1 -0
- package/dist/types/bin/package/deps.d.ts +3 -0
- package/dist/types/bin/package/deps.d.ts.map +1 -0
- package/dist/types/bin/package/fix.d.ts +3 -0
- package/dist/types/bin/package/fix.d.ts.map +1 -0
- package/dist/types/bin/package/gen-docs.d.ts +3 -0
- package/dist/types/bin/package/gen-docs.d.ts.map +1 -0
- package/dist/types/bin/package/lint.d.ts +3 -0
- package/dist/types/bin/package/lint.d.ts.map +1 -0
- package/dist/types/bin/package/publint.d.ts +3 -0
- package/dist/types/bin/package/publint.d.ts.map +1 -0
- package/dist/types/bin/package/recompile.d.ts +3 -0
- package/dist/types/bin/package/recompile.d.ts.map +1 -0
- package/dist/types/bin/package/relint.d.ts +3 -0
- package/dist/types/bin/package/relint.d.ts.map +1 -0
- package/dist/types/bin/xy.d.ts +3 -0
- package/dist/types/bin/xy.d.ts.map +1 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/lib/checkResult.d.ts +2 -0
- package/dist/types/lib/checkResult.d.ts.map +1 -0
- package/dist/types/lib/createBuildConfig.d.ts +2 -0
- package/dist/types/lib/createBuildConfig.d.ts.map +1 -0
- package/dist/types/lib/defaultBuildConfig.d.ts +9 -0
- package/dist/types/lib/defaultBuildConfig.d.ts.map +1 -0
- package/dist/types/lib/deleteGlob.d.ts +2 -0
- package/dist/types/lib/deleteGlob.d.ts.map +1 -0
- package/dist/types/lib/dependencies/DuplicateDetector.d.ts +9 -0
- package/dist/types/lib/dependencies/DuplicateDetector.d.ts.map +1 -0
- package/dist/types/lib/dependencies/detectDuplicateDependencies.d.ts +2 -0
- package/dist/types/lib/dependencies/detectDuplicateDependencies.d.ts.map +1 -0
- package/dist/types/lib/dependencies/index.d.ts +3 -0
- package/dist/types/lib/dependencies/index.d.ts.map +1 -0
- package/dist/types/lib/file/ReadFileSyncOptions.d.ts +6 -0
- package/dist/types/lib/file/ReadFileSyncOptions.d.ts.map +1 -0
- package/dist/types/lib/file/constants.d.ts +3 -0
- package/dist/types/lib/file/constants.d.ts.map +1 -0
- package/dist/types/lib/file/fileLines.d.ts +6 -0
- package/dist/types/lib/file/fileLines.d.ts.map +1 -0
- package/dist/types/lib/file/index.d.ts +5 -0
- package/dist/types/lib/file/index.d.ts.map +1 -0
- package/dist/types/lib/file/tryReadFileSync.d.ts +4 -0
- package/dist/types/lib/file/tryReadFileSync.d.ts.map +1 -0
- package/dist/types/lib/generateIgnoreFiles.d.ts +2 -0
- package/dist/types/lib/generateIgnoreFiles.d.ts.map +1 -0
- package/dist/types/lib/index.d.ts +21 -0
- package/dist/types/lib/index.d.ts.map +1 -0
- package/dist/types/lib/jsonFormatters.d.ts +2 -0
- package/dist/types/lib/jsonFormatters.d.ts.map +1 -0
- package/dist/types/lib/loadConfig.d.ts +2 -0
- package/dist/types/lib/loadConfig.d.ts.map +1 -0
- package/dist/types/lib/parsedPackageJSON.d.ts +2 -0
- package/dist/types/lib/parsedPackageJSON.d.ts.map +1 -0
- package/dist/types/lib/processEx.d.ts +2 -0
- package/dist/types/lib/processEx.d.ts.map +1 -0
- package/dist/types/lib/runSteps.d.ts +4 -0
- package/dist/types/lib/runSteps.d.ts.map +1 -0
- package/dist/types/lib/runStepsAsync.d.ts +4 -0
- package/dist/types/lib/runStepsAsync.d.ts.map +1 -0
- package/dist/types/lib/runXy.d.ts +2 -0
- package/dist/types/lib/runXy.d.ts.map +1 -0
- package/dist/types/lib/runXyWithWarning.d.ts +2 -0
- package/dist/types/lib/runXyWithWarning.d.ts.map +1 -0
- package/dist/types/lib/safeExit.d.ts +5 -0
- package/dist/types/lib/safeExit.d.ts.map +1 -0
- package/dist/types/lib/string/empty.d.ts +3 -0
- package/dist/types/lib/string/empty.d.ts.map +1 -0
- package/dist/types/lib/string/index.d.ts +3 -0
- package/dist/types/lib/string/index.d.ts.map +1 -0
- package/dist/types/lib/string/union.d.ts +2 -0
- package/dist/types/lib/string/union.d.ts.map +1 -0
- package/dist/types/lib/withErrnoException.d.ts +2 -0
- package/dist/types/lib/withErrnoException.d.ts.map +1 -0
- package/dist/types/lib/withError.d.ts +2 -0
- package/dist/types/lib/withError.d.ts.map +1 -0
- package/dist/types/lib/yarn/index.d.ts +4 -0
- package/dist/types/lib/yarn/index.d.ts.map +1 -0
- package/dist/types/lib/yarn/isYarnVersionOrGreater.d.ts +2 -0
- package/dist/types/lib/yarn/isYarnVersionOrGreater.d.ts.map +1 -0
- package/dist/types/lib/yarn/workspace/Workspace.d.ts +5 -0
- package/dist/types/lib/yarn/workspace/Workspace.d.ts.map +1 -0
- package/dist/types/lib/yarn/workspace/index.d.ts +4 -0
- package/dist/types/lib/yarn/workspace/index.d.ts.map +1 -0
- package/dist/types/lib/yarn/workspace/yarnWorkspace.d.ts +3 -0
- package/dist/types/lib/yarn/workspace/yarnWorkspace.d.ts.map +1 -0
- package/dist/types/lib/yarn/workspace/yarnWorkspaces.d.ts +3 -0
- package/dist/types/lib/yarn/workspace/yarnWorkspaces.d.ts.map +1 -0
- package/dist/types/lib/yarn/yarnInitCwd.d.ts +2 -0
- package/dist/types/lib/yarn/yarnInitCwd.d.ts.map +1 -0
- package/dist/types/loadPackageConfig.d.ts +6 -0
- package/dist/types/loadPackageConfig.d.ts.map +1 -0
- package/dist/types/xy/index.d.ts +8 -0
- package/dist/types/xy/index.d.ts.map +1 -0
- package/dist/types/xy/param.d.ts +5 -0
- package/dist/types/xy/param.d.ts.map +1 -0
- package/dist/types/xy/xy.d.ts +10 -0
- package/dist/types/xy/xy.d.ts.map +1 -0
- package/dist/types/xy/xyBuildCommands.d.ts +3 -0
- package/dist/types/xy/xyBuildCommands.d.ts.map +1 -0
- package/dist/types/xy/xyCommonCommands.d.ts +3 -0
- package/dist/types/xy/xyCommonCommands.d.ts.map +1 -0
- package/dist/types/xy/xyDeployCommands.d.ts +3 -0
- package/dist/types/xy/xyDeployCommands.d.ts.map +1 -0
- package/dist/types/xy/xyInstallCommands.d.ts +3 -0
- package/dist/types/xy/xyInstallCommands.d.ts.map +1 -0
- package/dist/types/xy/xyLintCommands.d.ts +3 -0
- package/dist/types/xy/xyLintCommands.d.ts.map +1 -0
- package/dist/types/xy/xyParseOptions.d.ts +3 -0
- package/dist/types/xy/xyParseOptions.d.ts.map +1 -0
- package/dist/xy/index.mjs +22 -33
- package/dist/xy/index.mjs.map +1 -1
- package/dist/xy/xy.mjs +22 -33
- package/dist/xy/xy.mjs.map +1 -1
- package/dist/xy/xyBuildCommands.mjs +20 -19
- package/dist/xy/xyBuildCommands.mjs.map +1 -1
- package/dist/xy/xyLintCommands.mjs +2 -14
- package/dist/xy/xyLintCommands.mjs.map +1 -1
- package/package.json +4 -4
- package/src/actions/build.ts +1 -0
- package/src/actions/compile-types.ts +1 -1
- package/src/actions/compile.ts +7 -11
- package/src/actions/lint.ts +1 -5
- package/src/actions/package/compile/XyConfig.ts +0 -4
- package/src/actions/package/compile/compile.ts +15 -17
- package/src/actions/package/compile/packageCompileTscTypes.ts +21 -29
- package/src/actions/package/compile/packageCompileTsup.ts +12 -19
- package/src/actions/recompile.ts +2 -5
- package/src/actions/relint.ts +1 -3
- package/src/bin/package/build-only.ts +1 -1
- package/src/bin/package/build.ts +1 -1
- package/src/bin/package/clean-outputs.ts +1 -8
- package/src/bin/package/clean-typescript.ts +1 -8
- package/src/xy/xyBuildCommands.ts +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -34,19 +34,17 @@ interface CompileParams {
|
|
|
34
34
|
pkg?: string;
|
|
35
35
|
publint?: boolean;
|
|
36
36
|
target?: 'esm' | 'cjs';
|
|
37
|
-
types?: 'tsc' | 'tsup';
|
|
38
37
|
verbose?: boolean;
|
|
39
38
|
}
|
|
40
39
|
interface CompilePackageParams {
|
|
41
40
|
pkg: string;
|
|
42
41
|
publint?: boolean;
|
|
43
42
|
target?: 'esm' | 'cjs';
|
|
44
|
-
types?: 'tsc' | 'tsup';
|
|
45
43
|
verbose?: boolean;
|
|
46
44
|
}
|
|
47
|
-
declare const compile: ({ verbose, target, pkg, incremental, publint, jobs,
|
|
48
|
-
declare const compilePackage: ({ target, pkg
|
|
49
|
-
declare const compileAll: ({ jobs, verbose, target, incremental,
|
|
45
|
+
declare const compile: ({ verbose, target, pkg, incremental, publint, jobs, }: CompileParams) => number;
|
|
46
|
+
declare const compilePackage: ({ target, pkg }: CompilePackageParams) => number;
|
|
47
|
+
declare const compileAll: ({ jobs, verbose, target, incremental, }: CompileParams) => number;
|
|
50
48
|
|
|
51
49
|
interface CompileTypesParams {
|
|
52
50
|
incremental?: boolean;
|
|
@@ -106,7 +104,7 @@ interface LintPackageParams {
|
|
|
106
104
|
pkg: string;
|
|
107
105
|
verbose?: boolean;
|
|
108
106
|
}
|
|
109
|
-
declare const lintPackage: ({ pkg, fix
|
|
107
|
+
declare const lintPackage: ({ pkg, fix }: LintParams & Required<Pick<LintParams, "pkg">>) => number;
|
|
110
108
|
declare const lint: ({ pkg, verbose, incremental, fix, }?: LintParams) => number;
|
|
111
109
|
declare const lintAllPackages: ({ fix, verbose, incremental, }?: LintParams) => number;
|
|
112
110
|
|
|
@@ -140,7 +138,6 @@ declare const packageCleanOutputs: () => number;
|
|
|
140
138
|
declare const packageCleanTypescript: () => number;
|
|
141
139
|
|
|
142
140
|
type EntryMode = 'all' | 'single' | 'auto' | 'platform';
|
|
143
|
-
type CompileMode = 'tsup' | 'tsc';
|
|
144
141
|
interface PathConfig {
|
|
145
142
|
exclude?: string[];
|
|
146
143
|
include?: string[];
|
|
@@ -153,11 +150,9 @@ interface CompileConfig {
|
|
|
153
150
|
depth?: number;
|
|
154
151
|
entryMode?: EntryMode;
|
|
155
152
|
files?: string[];
|
|
156
|
-
mode?: CompileMode;
|
|
157
153
|
}
|
|
158
154
|
type PackageCompileTsupConfig = CompileConfig & {
|
|
159
155
|
browser?: Record<string, Options | boolean>;
|
|
160
|
-
mode?: 'tsup';
|
|
161
156
|
neutral?: Record<string, Options | boolean>;
|
|
162
157
|
node?: Record<string, Options | boolean>;
|
|
163
158
|
tsup?: {
|
|
@@ -182,7 +177,7 @@ interface XyTscConfig extends XyConfigBase {
|
|
|
182
177
|
}
|
|
183
178
|
type XyConfig = XyTsupConfig | XyTscConfig;
|
|
184
179
|
|
|
185
|
-
declare const packageCompile: (inConfig?: XyConfig
|
|
180
|
+
declare const packageCompile: (inConfig?: XyConfig) => Promise<number>;
|
|
186
181
|
|
|
187
182
|
declare const packageCompileTypes: (inConfig?: XyConfig) => Promise<number>;
|
|
188
183
|
|
|
@@ -191,7 +186,7 @@ declare const packageCompileTsc: (noEmit?: boolean, config?: XyTscConfig, compil
|
|
|
191
186
|
declare const packageCompileTscTypes: (folder?: string, config?: XyConfig, compilerOptionsParam?: CompilerOptions) => number;
|
|
192
187
|
|
|
193
188
|
declare const tsupOptions: (options?: Options[]) => Options;
|
|
194
|
-
declare const packageCompileTsup: (config?: XyTsupConfig
|
|
189
|
+
declare const packageCompileTsup: (config?: XyTsupConfig) => Promise<number>;
|
|
195
190
|
|
|
196
191
|
interface PackageCopyAssetsParams {
|
|
197
192
|
target?: 'esm' | 'cjs';
|
|
@@ -242,7 +237,7 @@ interface RecompilePackageParams {
|
|
|
242
237
|
verbose?: boolean;
|
|
243
238
|
}
|
|
244
239
|
declare const recompile: ({ verbose, target, pkg, incremental, }: RecompileParams) => Promise<number>;
|
|
245
|
-
declare const recompilePackage: ({
|
|
240
|
+
declare const recompilePackage: ({ target, pkg }: RecompilePackageParams) => Promise<number>;
|
|
246
241
|
declare const recompileAll: ({ jobs, verbose, target, incremental, }: RecompileParams) => Promise<number>;
|
|
247
242
|
|
|
248
243
|
declare const reinstall: () => number;
|
|
@@ -256,7 +251,7 @@ interface RelintPackageParams {
|
|
|
256
251
|
pkg: string;
|
|
257
252
|
verbose?: boolean;
|
|
258
253
|
}
|
|
259
|
-
declare const relintPackage: ({ pkg
|
|
254
|
+
declare const relintPackage: ({ pkg }: RelintParams & Required<Pick<RelintParams, "pkg">>) => number;
|
|
260
255
|
declare const relint: ({ pkg, verbose, incremental, }?: RelintParams) => number;
|
|
261
256
|
declare const relintAllPackages: ({ verbose, incremental }?: RelintParams) => number;
|
|
262
257
|
|
|
@@ -391,4 +386,4 @@ declare const xyLintCommands: (args: Argv) => Argv<{}>;
|
|
|
391
386
|
|
|
392
387
|
declare const xyParseOptions: () => Argv;
|
|
393
388
|
|
|
394
|
-
export { type BuildParams, CROSS_PLATFORM_NEWLINE, type CleanPackageParams, type CleanParams, type CompileConfig, type
|
|
389
|
+
export { type BuildParams, CROSS_PLATFORM_NEWLINE, type CleanPackageParams, type CleanParams, type CompileConfig, type CompileParams, type CompileTypesParams, type CopyAssetsParams, type DepsPackageParams, type DepsParams, DuplicateDetector, type DynamicShareConfig, type EntryMode, type GenDocsPackageParams, type GenDocsParams, INIT_CWD, type LintPackageParams, type LintParams, type LiveShareConfig, type PackageCompileTscConfig, type PackageCompileTsupConfig, type PackageCopyAssetsParams, type PackageJsonEx, type PackagePublintParams, type PathConfig, type PublintPackageParams, type PublintParams, type ReadFileSyncOptions, type RebuildParams, type RecompilePackageParams, type RecompileParams, type RelintPackageParams, type RelintParams, type ScriptStep, WINDOWS_NEWLINE_REGEX, type Workspace, type XyConfig, type XyConfigBase, type XyTscConfig, type XyTsupConfig, build, checkResult, clean, cleanAll, cleanDocs, cleanPackage, compile, compileAll, compilePackage, compileTypes, compileTypesAll, compileTypesPackage, copyAssets, createBuildConfig, cycle, dead, defaultBuildConfig, defaultReadFileSyncOptions, deleteGlob, deploy, deployMajor, deployMinor, deployNext, deps, depsAll, depsPackage, detectDuplicateDependencies, dupdeps, empty, fix, genDocs, genDocsAll, genDocsPackage, generateIgnoreFiles, gitignoreGen, gitlint, gitlintFix, isYarnVersionOrGreater, license, lint, lintAllPackages, lintPackage, loadConfig, loadPackageConfig, multiLineToJSONArray, notEmpty, npmignoreGen, packageClean, packageCleanOutputs, packageCleanTypescript, packageCompile, packageCompileTsc, packageCompileTscTypes, packageCompileTsup, packageCompileTypes, packageCopyAssets, packageDeps, packageGenDocs, packageLint, packagePublint, packageRecompile, parsedPackageJSON, processEx, publint, publintAll, publintPackage, readLines, readNonEmptyLines, rebuild, recompile, recompileAll, recompilePackage, reinstall, relint, relintAllPackages, relintPackage, retest, runStepAsync, runSteps, runStepsAsync, runXy, runXyWithWarning, safeExit, safeExitAsync, sonar, statics, test, tryReadFileSync, tsupOptions, union, up, updateYarnPlugins, updateYarnVersion, updo, withErrnoException, withError, writeLines, xy, xyBuildCommands, xyCommonCommands, xyDeployCommands, xyInstallCommands, xyLintCommands, xyParseOptions, yarn3Only, yarnWorkspace, yarnWorkspaces };
|