@xylabs/ts-scripts-yarn3 3.14.1 → 3.14.2

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.
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/actions/package/compile/XyConfig.ts"],"sourcesContent":["import { Options } from 'tsup'\n\nexport type EntryMode = 'all' | 'single' | 'auto' | 'platform'\n\nexport type CompileMode = 'tsup' | 'tsc'\n\nexport interface LiveShareConfig {\n exclude?: string[]\n include?: string[]\n}\n\nexport interface CompileConfig {\n depth?: number\n /** @param entryMode all, single, platform, or auto */\n entryMode?: EntryMode\n /** @param files Manually specify the files to be compiled */\n files?: string[]\n mode?: CompileMode\n}\n\nexport type PackageCompileTsupConfig = CompileConfig & {\n browser?: Record<string, Options | boolean>\n mode?: 'tsup'\n neutral?: Record<string, Options | boolean>\n node?: Record<string, Options | boolean>\n tsup?: {\n options?: Options\n }\n}\n\nexport type PackageCompileTscConfig = CompileConfig & {\n mode: 'tsc'\n}\n\nexport interface XyConfigBase {\n compile?: CompileConfig\n liveShare?: LiveShareConfig\n publint?: boolean\n verbose?: boolean\n}\n\nexport interface XyTsupConfig extends XyConfigBase {\n compile?: PackageCompileTsupConfig\n}\n\nexport interface XyTscConfig extends XyConfigBase {\n compile?: PackageCompileTscConfig\n}\n\nexport type XyConfig = XyTsupConfig | XyTscConfig\n"],"mappings":";;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
1
+ {"version":3,"sources":["../../../../src/actions/package/compile/XyConfig.ts"],"sourcesContent":["import { Options } from 'tsup'\n\nexport type EntryMode = 'all' | 'single' | 'auto' | 'platform'\n\nexport type CompileMode = 'tsup' | 'tsc'\n\n/**\n * Configuration for specifying which paths are targeted.\n */\nexport interface PathConfig {\n /**\n * Glob patterns to exclude (takes precedence over include).\n */\n exclude?: string[]\n /**\n * Glob patterns to include.\n */\n include?: string[]\n}\n\n/**\n * Configuration for Dynamic Share.\n */\nexport interface DynamicShareConfig extends PathConfig {}\n\n/**\n * Configuration for Live Share.\n */\nexport interface LiveShareConfig extends PathConfig {}\n\nexport interface CompileConfig {\n depth?: number\n /** @param entryMode all, single, platform, or auto */\n entryMode?: EntryMode\n /** @param files Manually specify the files to be compiled */\n files?: string[]\n mode?: CompileMode\n}\n\nexport type PackageCompileTsupConfig = CompileConfig & {\n browser?: Record<string, Options | boolean>\n mode?: 'tsup'\n neutral?: Record<string, Options | boolean>\n node?: Record<string, Options | boolean>\n tsup?: {\n options?: Options\n }\n}\n\nexport type PackageCompileTscConfig = CompileConfig & {\n mode: 'tsc'\n}\n\nexport interface XyConfigBase {\n compile?: CompileConfig\n dynamicShare?: DynamicShareConfig\n liveShare?: LiveShareConfig\n publint?: boolean\n verbose?: boolean\n}\n\nexport interface XyTsupConfig extends XyConfigBase {\n compile?: PackageCompileTsupConfig\n}\n\nexport interface XyTscConfig extends XyConfigBase {\n compile?: PackageCompileTscConfig\n}\n\nexport type XyConfig = XyTsupConfig | XyTscConfig\n"],"mappings":";;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
package/dist/index.d.mts CHANGED
@@ -126,10 +126,29 @@ declare const packageCleanTypescript: () => Promise<number>;
126
126
 
127
127
  type EntryMode = 'all' | 'single' | 'auto' | 'platform';
128
128
  type CompileMode = 'tsup' | 'tsc';
129
- interface LiveShareConfig {
129
+ /**
130
+ * Configuration for specifying which paths are targeted.
131
+ */
132
+ interface PathConfig {
133
+ /**
134
+ * Glob patterns to exclude (takes precedence over include).
135
+ */
130
136
  exclude?: string[];
137
+ /**
138
+ * Glob patterns to include.
139
+ */
131
140
  include?: string[];
132
141
  }
142
+ /**
143
+ * Configuration for Dynamic Share.
144
+ */
145
+ interface DynamicShareConfig extends PathConfig {
146
+ }
147
+ /**
148
+ * Configuration for Live Share.
149
+ */
150
+ interface LiveShareConfig extends PathConfig {
151
+ }
133
152
  interface CompileConfig {
134
153
  depth?: number;
135
154
  /** @param entryMode all, single, platform, or auto */
@@ -152,6 +171,7 @@ type PackageCompileTscConfig = CompileConfig & {
152
171
  };
153
172
  interface XyConfigBase {
154
173
  compile?: CompileConfig;
174
+ dynamicShare?: DynamicShareConfig;
155
175
  liveShare?: LiveShareConfig;
156
176
  publint?: boolean;
157
177
  verbose?: boolean;
@@ -354,4 +374,4 @@ declare const xyLintCommands: (args: Argv) => Argv<{}>;
354
374
 
355
375
  declare const xyParseOptions: () => Argv;
356
376
 
357
- export { type BuildParams, CROSS_PLATFORM_NEWLINE, type CleanPackageParams, type CleanParams, type CompileConfig, type CompileMode, type CompileParams, type CopyAssetsParams, type DepsPackageParams, type DepsParams, DuplicateDetector, 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 PublintPackageParams, type PublintParams, type ReadFileSyncOptions, type RebuildParams, type RecompilePackageParams, type RecompileParams, type ScriptStep, WINDOWS_NEWLINE_REGEX, type Workspace, type XyConfig, type XyConfigBase, type XyTscConfig, type XyTsupConfig, build, checkResult, clean, cleanAll, cleanDocs, cleanPackage, compile, compileAll, compilePackage, copyAssets, createBuildConfig, cycle, dead, defaultBuildConfig, defaultReadFileSyncOptions, deploy, deployMajor, deployMinor, deployNext, deps, depsAll, depsPackage, detectDuplicateDependencies, dupdeps, empty, fix, genDocs, genDocsAll, genDocsPackage, generateIgnoreFiles, gitignoreGen, gitlint, gitlintFix, isYarnVersionOrGreater, license, lint, lintAll, lintClean, lintPackage, lintProfile, loadConfig, loadPackageConfig, multiLineToJSONArray, notEmpty, npmignoreGen, packageClean, packageCleanOutputs, packageCleanTypescript, packageCompile, packageCompileTsc, packageCompileTsup, packageCopyAssets, packageDeps, packageGenDocs, packagePublint, packageRecompile, parsedPackageJSON, processEx, publint, publintAll, publintPackage, readLines, readNonEmptyLines, rebuild, recompile, recompileAll, recompilePackage, reinstall, relint, retest, runStepAsync, runSteps, runStepsAsync, runXy, runXyWithWarning, safeExit, safeExitAsync, sonar, statics, test, tryReadFileSync, union, up, updateYarnPlugins, updateYarnVersion, updo, withErrnoException, withError, writeLines, xy, xyBuildCommands, xyCommonCommands, xyDeployCommands, xyInstallCommands, xyLintCommands, xyParseOptions, yarn3Only, yarnWorkspace, yarnWorkspaces };
377
+ export { type BuildParams, CROSS_PLATFORM_NEWLINE, type CleanPackageParams, type CleanParams, type CompileConfig, type CompileMode, type CompileParams, 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 ScriptStep, WINDOWS_NEWLINE_REGEX, type Workspace, type XyConfig, type XyConfigBase, type XyTscConfig, type XyTsupConfig, build, checkResult, clean, cleanAll, cleanDocs, cleanPackage, compile, compileAll, compilePackage, copyAssets, createBuildConfig, cycle, dead, defaultBuildConfig, defaultReadFileSyncOptions, deploy, deployMajor, deployMinor, deployNext, deps, depsAll, depsPackage, detectDuplicateDependencies, dupdeps, empty, fix, genDocs, genDocsAll, genDocsPackage, generateIgnoreFiles, gitignoreGen, gitlint, gitlintFix, isYarnVersionOrGreater, license, lint, lintAll, lintClean, lintPackage, lintProfile, loadConfig, loadPackageConfig, multiLineToJSONArray, notEmpty, npmignoreGen, packageClean, packageCleanOutputs, packageCleanTypescript, packageCompile, packageCompileTsc, packageCompileTsup, packageCopyAssets, packageDeps, packageGenDocs, packagePublint, packageRecompile, parsedPackageJSON, processEx, publint, publintAll, publintPackage, readLines, readNonEmptyLines, rebuild, recompile, recompileAll, recompilePackage, reinstall, relint, retest, runStepAsync, runSteps, runStepsAsync, runXy, runXyWithWarning, safeExit, safeExitAsync, sonar, statics, test, tryReadFileSync, union, up, updateYarnPlugins, updateYarnVersion, updo, withErrnoException, withError, writeLines, xy, xyBuildCommands, xyCommonCommands, xyDeployCommands, xyInstallCommands, xyLintCommands, xyParseOptions, yarn3Only, yarnWorkspace, yarnWorkspaces };
package/dist/index.d.ts CHANGED
@@ -126,10 +126,29 @@ declare const packageCleanTypescript: () => Promise<number>;
126
126
 
127
127
  type EntryMode = 'all' | 'single' | 'auto' | 'platform';
128
128
  type CompileMode = 'tsup' | 'tsc';
129
- interface LiveShareConfig {
129
+ /**
130
+ * Configuration for specifying which paths are targeted.
131
+ */
132
+ interface PathConfig {
133
+ /**
134
+ * Glob patterns to exclude (takes precedence over include).
135
+ */
130
136
  exclude?: string[];
137
+ /**
138
+ * Glob patterns to include.
139
+ */
131
140
  include?: string[];
132
141
  }
142
+ /**
143
+ * Configuration for Dynamic Share.
144
+ */
145
+ interface DynamicShareConfig extends PathConfig {
146
+ }
147
+ /**
148
+ * Configuration for Live Share.
149
+ */
150
+ interface LiveShareConfig extends PathConfig {
151
+ }
133
152
  interface CompileConfig {
134
153
  depth?: number;
135
154
  /** @param entryMode all, single, platform, or auto */
@@ -152,6 +171,7 @@ type PackageCompileTscConfig = CompileConfig & {
152
171
  };
153
172
  interface XyConfigBase {
154
173
  compile?: CompileConfig;
174
+ dynamicShare?: DynamicShareConfig;
155
175
  liveShare?: LiveShareConfig;
156
176
  publint?: boolean;
157
177
  verbose?: boolean;
@@ -354,4 +374,4 @@ declare const xyLintCommands: (args: Argv) => Argv<{}>;
354
374
 
355
375
  declare const xyParseOptions: () => Argv;
356
376
 
357
- export { type BuildParams, CROSS_PLATFORM_NEWLINE, type CleanPackageParams, type CleanParams, type CompileConfig, type CompileMode, type CompileParams, type CopyAssetsParams, type DepsPackageParams, type DepsParams, DuplicateDetector, 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 PublintPackageParams, type PublintParams, type ReadFileSyncOptions, type RebuildParams, type RecompilePackageParams, type RecompileParams, type ScriptStep, WINDOWS_NEWLINE_REGEX, type Workspace, type XyConfig, type XyConfigBase, type XyTscConfig, type XyTsupConfig, build, checkResult, clean, cleanAll, cleanDocs, cleanPackage, compile, compileAll, compilePackage, copyAssets, createBuildConfig, cycle, dead, defaultBuildConfig, defaultReadFileSyncOptions, deploy, deployMajor, deployMinor, deployNext, deps, depsAll, depsPackage, detectDuplicateDependencies, dupdeps, empty, fix, genDocs, genDocsAll, genDocsPackage, generateIgnoreFiles, gitignoreGen, gitlint, gitlintFix, isYarnVersionOrGreater, license, lint, lintAll, lintClean, lintPackage, lintProfile, loadConfig, loadPackageConfig, multiLineToJSONArray, notEmpty, npmignoreGen, packageClean, packageCleanOutputs, packageCleanTypescript, packageCompile, packageCompileTsc, packageCompileTsup, packageCopyAssets, packageDeps, packageGenDocs, packagePublint, packageRecompile, parsedPackageJSON, processEx, publint, publintAll, publintPackage, readLines, readNonEmptyLines, rebuild, recompile, recompileAll, recompilePackage, reinstall, relint, retest, runStepAsync, runSteps, runStepsAsync, runXy, runXyWithWarning, safeExit, safeExitAsync, sonar, statics, test, tryReadFileSync, union, up, updateYarnPlugins, updateYarnVersion, updo, withErrnoException, withError, writeLines, xy, xyBuildCommands, xyCommonCommands, xyDeployCommands, xyInstallCommands, xyLintCommands, xyParseOptions, yarn3Only, yarnWorkspace, yarnWorkspaces };
377
+ export { type BuildParams, CROSS_PLATFORM_NEWLINE, type CleanPackageParams, type CleanParams, type CompileConfig, type CompileMode, type CompileParams, 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 ScriptStep, WINDOWS_NEWLINE_REGEX, type Workspace, type XyConfig, type XyConfigBase, type XyTscConfig, type XyTsupConfig, build, checkResult, clean, cleanAll, cleanDocs, cleanPackage, compile, compileAll, compilePackage, copyAssets, createBuildConfig, cycle, dead, defaultBuildConfig, defaultReadFileSyncOptions, deploy, deployMajor, deployMinor, deployNext, deps, depsAll, depsPackage, detectDuplicateDependencies, dupdeps, empty, fix, genDocs, genDocsAll, genDocsPackage, generateIgnoreFiles, gitignoreGen, gitlint, gitlintFix, isYarnVersionOrGreater, license, lint, lintAll, lintClean, lintPackage, lintProfile, loadConfig, loadPackageConfig, multiLineToJSONArray, notEmpty, npmignoreGen, packageClean, packageCleanOutputs, packageCleanTypescript, packageCompile, packageCompileTsc, packageCompileTsup, packageCopyAssets, packageDeps, packageGenDocs, packagePublint, packageRecompile, parsedPackageJSON, processEx, publint, publintAll, publintPackage, readLines, readNonEmptyLines, rebuild, recompile, recompileAll, recompilePackage, reinstall, relint, retest, runStepAsync, runSteps, runStepsAsync, runXy, runXyWithWarning, safeExit, safeExitAsync, sonar, statics, test, tryReadFileSync, union, up, updateYarnPlugins, updateYarnVersion, updo, withErrnoException, withError, writeLines, xy, xyBuildCommands, xyCommonCommands, xyDeployCommands, xyInstallCommands, xyLintCommands, xyParseOptions, yarn3Only, yarnWorkspace, yarnWorkspaces };
package/package.json CHANGED
@@ -65,8 +65,8 @@
65
65
  "@types/yargs": "^17.0.32",
66
66
  "@typescript-eslint/eslint-plugin": "^7.16.1",
67
67
  "@typescript-eslint/parser": "^7.16.1",
68
- "@xylabs/tsconfig": "^3.14.1",
69
- "@xylabs/tsconfig-dom": "^3.14.1",
68
+ "@xylabs/tsconfig": "^3.14.2",
69
+ "@xylabs/tsconfig-dom": "^3.14.2",
70
70
  "async-mutex": "^0.5.0",
71
71
  "chalk": "^4.1.2",
72
72
  "cosmiconfig": "^9.0.0",
@@ -114,8 +114,8 @@
114
114
  "@types/license-checker": "^25.0.6",
115
115
  "@types/lodash": "^4.17.7",
116
116
  "@types/parse-git-config": "^3.0.4",
117
- "@xylabs/eslint-config": "^3.14.1",
118
- "@xylabs/tsconfig": "^3.14.1",
117
+ "@xylabs/eslint-config": "^3.14.2",
118
+ "@xylabs/tsconfig": "^3.14.2",
119
119
  "publint": "^0.2.9",
120
120
  "typescript": "^5.5.3"
121
121
  },
@@ -168,6 +168,6 @@
168
168
  "package-clean": "echo Not cleaning..."
169
169
  },
170
170
  "sideEffects": false,
171
- "version": "3.14.1",
171
+ "version": "3.14.2",
172
172
  "type": "commonjs"
173
173
  }
@@ -4,11 +4,30 @@ export type EntryMode = 'all' | 'single' | 'auto' | 'platform'
4
4
 
5
5
  export type CompileMode = 'tsup' | 'tsc'
6
6
 
7
- export interface LiveShareConfig {
7
+ /**
8
+ * Configuration for specifying which paths are targeted.
9
+ */
10
+ export interface PathConfig {
11
+ /**
12
+ * Glob patterns to exclude (takes precedence over include).
13
+ */
8
14
  exclude?: string[]
15
+ /**
16
+ * Glob patterns to include.
17
+ */
9
18
  include?: string[]
10
19
  }
11
20
 
21
+ /**
22
+ * Configuration for Dynamic Share.
23
+ */
24
+ export interface DynamicShareConfig extends PathConfig {}
25
+
26
+ /**
27
+ * Configuration for Live Share.
28
+ */
29
+ export interface LiveShareConfig extends PathConfig {}
30
+
12
31
  export interface CompileConfig {
13
32
  depth?: number
14
33
  /** @param entryMode all, single, platform, or auto */
@@ -34,6 +53,7 @@ export type PackageCompileTscConfig = CompileConfig & {
34
53
 
35
54
  export interface XyConfigBase {
36
55
  compile?: CompileConfig
56
+ dynamicShare?: DynamicShareConfig
37
57
  liveShare?: LiveShareConfig
38
58
  publint?: boolean
39
59
  verbose?: boolean