@xylabs/ts-scripts-yarn3 3.0.25 → 3.0.27

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.
@@ -29,10 +29,14 @@ var import_tscTypes = require("./tscTypes");
29
29
  const compileSubDir = async (subDir, options, verbose) => {
30
30
  const dir = subDir === "." ? void 0 : subDir;
31
31
  const input = await (0, import_inputs.getInputs)(dir);
32
+ if (input.length === 0) {
33
+ return 0;
34
+ }
32
35
  const optionsResult = (0, import_tsup.defineConfig)({
33
36
  bundle: true,
34
37
  cjsInterop: true,
35
38
  clean: true,
39
+ dts: false,
36
40
  /*dts: {
37
41
  compilerOptions: {
38
42
  skipDefaultLibCheck: true,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/actions/package/compile/tsup.ts"],"sourcesContent":["import chalk from 'chalk'\nimport { build, defineConfig, Options } from 'tsup'\n\nimport { loadConfig } from '../../../lib'\nimport { packagePublint } from '../publint'\nimport { CompileParams } from './CompileParams'\nimport { getInputDirs, getInputs } from './inputs'\nimport { packageCompileTscTypes } from './tscTypes'\n\nexport type PackageCompileTsupParams = Partial<\n CompileParams & {\n compile?: {\n tsup?: {\n options?: Options\n }\n }\n }\n>\n\nconst compileSubDir = async (subDir?: string, options?: Options, verbose?: boolean) => {\n const dir = subDir === '.' ? undefined : subDir\n const input = await getInputs(dir)\n const optionsResult = defineConfig({\n bundle: true,\n cjsInterop: true,\n clean: true,\n /*dts: {\n compilerOptions: {\n skipDefaultLibCheck: true,\n skipLibCheck: true,\n },\n entry: input.map((entry) => `src/${entry}`),\n only: false,\n resolve: false,\n },*/\n entry: subDir ? input.map((file) => `./src/${file}`) : ['./src/index.ts'],\n format: ['cjs', 'esm'],\n outDir: subDir ? `dist/${subDir}` : 'dist',\n sourcemap: true,\n splitting: false,\n tsconfig: 'tsconfig.json',\n ...options,\n })\n const optionsList = (\n await Promise.all(\n (Array.isArray(optionsResult) ? optionsResult : [optionsResult])\n .map<Promise<Options[]>>(async (options) => {\n const result = typeof options === 'function' ? await options({}) : [options]\n return Array.isArray(result) ? result : [result]\n })\n .flat(),\n )\n ).flat()\n await Promise.all(optionsList.map((options) => build(options)))\n\n return await packageCompileTscTypes({ verbose })\n}\n\nexport const packageCompileTsup = async (params?: PackageCompileTsupParams) => {\n const config = await loadConfig(params)\n const publint = config.compile?.publint ?? true\n if (config.verbose) {\n console.log(`Compiling with TSUP [Depth: ${config.compile?.depth}]`)\n }\n const inputDirs = await getInputDirs(config.compile?.depth)\n\n if (inputDirs.length) {\n const result = (\n await Promise.all(\n inputDirs.map(async (inputDir) => {\n return await compileSubDir(inputDir, config.compile?.tsup?.options, config.verbose)\n }),\n )\n ).reduce((prev, result) => prev + result, 0)\n return result + (publint ? await packagePublint() : 0)\n } else {\n const result = await compileSubDir(undefined, config.compile?.tsup?.options, config.verbose)\n return result + (publint ? await packagePublint() : 0)\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,kBAA6C;AAE7C,iBAA2B;AAC3B,qBAA+B;AAE/B,oBAAwC;AACxC,sBAAuC;AAYvC,MAAM,gBAAgB,OAAO,QAAiB,SAAmB,YAAsB;AACrF,QAAM,MAAM,WAAW,MAAM,SAAY;AACzC,QAAM,QAAQ,UAAM,yBAAU,GAAG;AACjC,QAAM,oBAAgB,0BAAa;AAAA,IACjC,QAAQ;AAAA,IACR,YAAY;AAAA,IACZ,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAUP,OAAO,SAAS,MAAM,IAAI,CAAC,SAAS,SAAS,IAAI,EAAE,IAAI,CAAC,gBAAgB;AAAA,IACxE,QAAQ,CAAC,OAAO,KAAK;AAAA,IACrB,QAAQ,SAAS,QAAQ,MAAM,KAAK;AAAA,IACpC,WAAW;AAAA,IACX,WAAW;AAAA,IACX,UAAU;AAAA,IACV,GAAG;AAAA,EACL,CAAC;AACD,QAAM,eACJ,MAAM,QAAQ;AAAA,KACX,MAAM,QAAQ,aAAa,IAAI,gBAAgB,CAAC,aAAa,GAC3D,IAAwB,OAAOA,aAAY;AAC1C,YAAM,SAAS,OAAOA,aAAY,aAAa,MAAMA,SAAQ,CAAC,CAAC,IAAI,CAACA,QAAO;AAC3E,aAAO,MAAM,QAAQ,MAAM,IAAI,SAAS,CAAC,MAAM;AAAA,IACjD,CAAC,EACA,KAAK;AAAA,EACV,GACA,KAAK;AACP,QAAM,QAAQ,IAAI,YAAY,IAAI,CAACA,iBAAY,mBAAMA,QAAO,CAAC,CAAC;AAE9D,SAAO,UAAM,wCAAuB,EAAE,QAAQ,CAAC;AACjD;AAEO,MAAM,qBAAqB,OAAO,WAAsC;AAC7E,QAAM,SAAS,UAAM,uBAAW,MAAM;AACtC,QAAM,UAAU,OAAO,SAAS,WAAW;AAC3C,MAAI,OAAO,SAAS;AAClB,YAAQ,IAAI,+BAA+B,OAAO,SAAS,KAAK,GAAG;AAAA,EACrE;AACA,QAAM,YAAY,UAAM,4BAAa,OAAO,SAAS,KAAK;AAE1D,MAAI,UAAU,QAAQ;AACpB,UAAM,UACJ,MAAM,QAAQ;AAAA,MACZ,UAAU,IAAI,OAAO,aAAa;AAChC,eAAO,MAAM,cAAc,UAAU,OAAO,SAAS,MAAM,SAAS,OAAO,OAAO;AAAA,MACpF,CAAC;AAAA,IACH,GACA,OAAO,CAAC,MAAMC,YAAW,OAAOA,SAAQ,CAAC;AAC3C,WAAO,UAAU,UAAU,UAAM,+BAAe,IAAI;AAAA,EACtD,OAAO;AACL,UAAM,SAAS,MAAM,cAAc,QAAW,OAAO,SAAS,MAAM,SAAS,OAAO,OAAO;AAC3F,WAAO,UAAU,UAAU,UAAM,+BAAe,IAAI;AAAA,EACtD;AACF;","names":["options","result"]}
1
+ {"version":3,"sources":["../../../../src/actions/package/compile/tsup.ts"],"sourcesContent":["import chalk from 'chalk'\nimport { build, defineConfig, Options } from 'tsup'\n\nimport { loadConfig } from '../../../lib'\nimport { packagePublint } from '../publint'\nimport { CompileParams } from './CompileParams'\nimport { getInputDirs, getInputs } from './inputs'\nimport { packageCompileTscTypes } from './tscTypes'\n\nexport type PackageCompileTsupParams = Partial<\n CompileParams & {\n compile?: {\n tsup?: {\n options?: Options\n }\n }\n }\n>\n\nconst compileSubDir = async (subDir?: string, options?: Options, verbose?: boolean) => {\n const dir = subDir === '.' ? undefined : subDir\n const input = await getInputs(dir)\n if (input.length === 0) {\n return 0\n }\n const optionsResult = defineConfig({\n bundle: true,\n cjsInterop: true,\n clean: true,\n dts: false,\n /*dts: {\n compilerOptions: {\n skipDefaultLibCheck: true,\n skipLibCheck: true,\n },\n entry: input.map((entry) => `src/${entry}`),\n only: false,\n resolve: false,\n },*/\n entry: subDir ? input.map((file) => `./src/${file}`) : ['./src/index.ts'],\n format: ['cjs', 'esm'],\n outDir: subDir ? `dist/${subDir}` : 'dist',\n sourcemap: true,\n splitting: false,\n tsconfig: 'tsconfig.json',\n ...options,\n })\n const optionsList = (\n await Promise.all(\n (Array.isArray(optionsResult) ? optionsResult : [optionsResult])\n .map<Promise<Options[]>>(async (options) => {\n const result = typeof options === 'function' ? await options({}) : [options]\n return Array.isArray(result) ? result : [result]\n })\n .flat(),\n )\n ).flat()\n await Promise.all(optionsList.map((options) => build(options)))\n\n return await packageCompileTscTypes({ verbose })\n}\n\nexport const packageCompileTsup = async (params?: PackageCompileTsupParams) => {\n const config = await loadConfig(params)\n const publint = config.compile?.publint ?? true\n if (config.verbose) {\n console.log(`Compiling with TSUP [Depth: ${config.compile?.depth}]`)\n }\n const inputDirs = await getInputDirs(config.compile?.depth)\n\n if (inputDirs.length) {\n const result = (\n await Promise.all(\n inputDirs.map(async (inputDir) => {\n return await compileSubDir(inputDir, config.compile?.tsup?.options, config.verbose)\n }),\n )\n ).reduce((prev, result) => prev + result, 0)\n return result + (publint ? await packagePublint() : 0)\n } else {\n const result = await compileSubDir(undefined, config.compile?.tsup?.options, config.verbose)\n return result + (publint ? await packagePublint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MAAM;AACtC,QAAM,UAAU,OAAO,SAAS,WAAW;AAC3C,MAAI,OAAO,SAAS;AAClB,YAAQ,IAAI,+BAA+B,OAAO,SAAS,KAAK,GAAG;AAAA,EACrE;AACA,QAAM,YAAY,UAAM,4BAAa,OAAO,SAAS,KAAK;AAE1D,MAAI,UAAU,QAAQ;AACpB,UAAM,UACJ,MAAM,QAAQ;AAAA,MACZ,UAAU,IAAI,OAAO,aAAa;AAChC,eAAO,MAAM,cAAc,UAAU,OAAO,SAAS,MAAM,SAAS,OAAO,OAAO;AAAA,MACpF,CAAC;AAAA,IACH,GACA,OAAO,CAAC,MAAMC,YAAW,OAAOA,SAAQ,CAAC;AAC3C,WAAO,UAAU,UAAU,UAAM,+BAAe,IAAI;AAAA,EACtD,OAAO;AACL,UAAM,SAAS,MAAM,cAAc,QAAW,OAAO,SAAS,MAAM,SAAS,OAAO,OAAO;AAC3F,WAAO,UAAU,UAAU,UAAM,+BAAe,IAAI;AAAA,EACtD;AACF;","names":["options","result"]}
@@ -6,10 +6,14 @@ import { packageCompileTscTypes } from "./tscTypes";
6
6
  const compileSubDir = async (subDir, options, verbose) => {
7
7
  const dir = subDir === "." ? void 0 : subDir;
8
8
  const input = await getInputs(dir);
9
+ if (input.length === 0) {
10
+ return 0;
11
+ }
9
12
  const optionsResult = defineConfig({
10
13
  bundle: true,
11
14
  cjsInterop: true,
12
15
  clean: true,
16
+ dts: false,
13
17
  /*dts: {
14
18
  compilerOptions: {
15
19
  skipDefaultLibCheck: true,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/actions/package/compile/tsup.ts"],"sourcesContent":["import chalk from 'chalk'\nimport { build, defineConfig, Options } from 'tsup'\n\nimport { loadConfig } from '../../../lib'\nimport { packagePublint } from '../publint'\nimport { CompileParams } from './CompileParams'\nimport { getInputDirs, getInputs } from './inputs'\nimport { packageCompileTscTypes } from './tscTypes'\n\nexport type PackageCompileTsupParams = Partial<\n CompileParams & {\n compile?: {\n tsup?: {\n options?: Options\n }\n }\n }\n>\n\nconst compileSubDir = async (subDir?: string, options?: Options, verbose?: boolean) => {\n const dir = subDir === '.' ? undefined : subDir\n const input = await getInputs(dir)\n const optionsResult = defineConfig({\n bundle: true,\n cjsInterop: true,\n clean: true,\n /*dts: {\n compilerOptions: {\n skipDefaultLibCheck: true,\n skipLibCheck: true,\n },\n entry: input.map((entry) => `src/${entry}`),\n only: false,\n resolve: false,\n },*/\n entry: subDir ? input.map((file) => `./src/${file}`) : ['./src/index.ts'],\n format: ['cjs', 'esm'],\n outDir: subDir ? `dist/${subDir}` : 'dist',\n sourcemap: true,\n splitting: false,\n tsconfig: 'tsconfig.json',\n ...options,\n })\n const optionsList = (\n await Promise.all(\n (Array.isArray(optionsResult) ? optionsResult : [optionsResult])\n .map<Promise<Options[]>>(async (options) => {\n const result = typeof options === 'function' ? await options({}) : [options]\n return Array.isArray(result) ? result : [result]\n })\n .flat(),\n )\n ).flat()\n await Promise.all(optionsList.map((options) => build(options)))\n\n return await packageCompileTscTypes({ verbose })\n}\n\nexport const packageCompileTsup = async (params?: PackageCompileTsupParams) => {\n const config = await loadConfig(params)\n const publint = config.compile?.publint ?? true\n if (config.verbose) {\n console.log(`Compiling with TSUP [Depth: ${config.compile?.depth}]`)\n }\n const inputDirs = await getInputDirs(config.compile?.depth)\n\n if (inputDirs.length) {\n const result = (\n await Promise.all(\n inputDirs.map(async (inputDir) => {\n return await compileSubDir(inputDir, config.compile?.tsup?.options, config.verbose)\n }),\n )\n ).reduce((prev, result) => prev + result, 0)\n return result + (publint ? await packagePublint() : 0)\n } else {\n const result = await compileSubDir(undefined, config.compile?.tsup?.options, config.verbose)\n return result + (publint ? await packagePublint() : 0)\n }\n}\n"],"mappings":"AACA,SAAS,OAAO,oBAA6B;AAE7C,SAAS,kBAAkB;AAC3B,SAAS,sBAAsB;AAE/B,SAAS,cAAc,iBAAiB;AACxC,SAAS,8BAA8B;AAYvC,MAAM,gBAAgB,OAAO,QAAiB,SAAmB,YAAsB;AACr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eAAO,MAAM,cAAc,UAAU,OAAO,SAAS,MAAM,SAAS,OAAO,OAAO;AAAA,MACpF,CAAC;AAAA,IACH,GACA,OAAO,CAAC,MAAMC,YAAW,OAAOA,SAAQ,CAAC;AAC3C,WAAO,UAAU,UAAU,MAAM,eAAe,IAAI;AAAA,EACtD,OAAO;AACL,UAAM,SAAS,MAAM,cAAc,QAAW,OAAO,SAAS,MAAM,SAAS,OAAO,OAAO;AAC3F,WAAO,UAAU,UAAU,MAAM,eAAe,IAAI;AAAA,EACtD;AACF;","names":["options","result"]}
1
+ {"version":3,"sources":["../../../../src/actions/package/compile/tsup.ts"],"sourcesContent":["import chalk from 'chalk'\nimport { build, defineConfig, Options } from 'tsup'\n\nimport { loadConfig } from '../../../lib'\nimport { packagePublint } from '../publint'\nimport { CompileParams } from './CompileParams'\nimport { getInputDirs, getInputs } from './inputs'\nimport { packageCompileTscTypes } from './tscTypes'\n\nexport type PackageCompileTsupParams = Partial<\n CompileParams & {\n compile?: {\n tsup?: {\n options?: Options\n }\n }\n }\n>\n\nconst compileSubDir = async (subDir?: string, options?: Options, verbose?: boolean) => {\n const dir = subDir === '.' ? undefined : subDir\n const input = await getInputs(dir)\n if (input.length === 0) {\n return 0\n }\n const optionsResult = defineConfig({\n bundle: true,\n cjsInterop: true,\n clean: true,\n dts: false,\n /*dts: {\n compilerOptions: {\n skipDefaultLibCheck: true,\n skipLibCheck: true,\n },\n entry: input.map((entry) => `src/${entry}`),\n only: false,\n resolve: false,\n },*/\n entry: subDir ? input.map((file) => `./src/${file}`) : ['./src/index.ts'],\n format: ['cjs', 'esm'],\n outDir: subDir ? `dist/${subDir}` : 'dist',\n sourcemap: true,\n splitting: false,\n tsconfig: 'tsconfig.json',\n ...options,\n })\n const optionsList = (\n await Promise.all(\n (Array.isArray(optionsResult) ? optionsResult : [optionsResult])\n .map<Promise<Options[]>>(async (options) => {\n const result = typeof options === 'function' ? await options({}) : [options]\n return Array.isArray(result) ? result : [result]\n })\n .flat(),\n )\n ).flat()\n await Promise.all(optionsList.map((options) => build(options)))\n\n return await packageCompileTscTypes({ verbose })\n}\n\nexport const packageCompileTsup = async (params?: PackageCompileTsupParams) => {\n const config = await loadConfig(params)\n const publint = config.compile?.publint ?? true\n if (config.verbose) {\n console.log(`Compiling with TSUP [Depth: ${config.compile?.depth}]`)\n }\n const inputDirs = await getInputDirs(config.compile?.depth)\n\n if (inputDirs.length) {\n const result = (\n await Promise.all(\n inputDirs.map(async (inputDir) => {\n return await compileSubDir(inputDir, config.compile?.tsup?.options, config.verbose)\n }),\n )\n ).reduce((prev, result) => prev + result, 0)\n return result + (publint ? await packagePublint() : 0)\n } else {\n const result = await compileSubDir(undefined, config.compile?.tsup?.options, config.verbose)\n return result + (publint ? await packagePublint() : 0)\n }\n}\n"],"mappings":"AACA,SAAS,OAAO,oBAA6B;AAE7C,SAAS,kBAAkB;AAC3B,SAAS,sBAAsB;AAE/B,SAAS,cAAc,iBAAiB;AACxC,SAAS,8BAA8B;AAYvC,MAAM,gBAAgB,OAAO,QAAiB,SAAmB,YAAsB;AACrF,QAAM,MAAM,WAAW,MAAM,SAAY;AACzC,QAAM,QAAQ,MAAM,UAAU,GAAG;AACjC,MAAI,MAAM,WAAW,GAAG;AACtB,WAAO;AAAA,EACT;AACA,QAAM,gBAAgB,aAAa;AAAA,IACjC,QAAQ;AAAA,IACR,YAAY;AAAA,IACZ,OAAO;AAAA,IACP,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAUL,OAAO,SAAS,MAAM,IAAI,CAAC,SAAS,SAAS,IAAI,EAAE,IAAI,CAAC,gBAAgB;AAAA,IACxE,QAAQ,CAAC,OAAO,KAAK;AAAA,IACrB,QAAQ,SAAS,QAAQ,MAAM,KAAK;AAAA,IACpC,WAAW;AAAA,IACX,WAAW;AAAA,IACX,UAAU;AAAA,IACV,GAAG;AAAA,EACL,CAAC;AACD,QAAM,eACJ,MAAM,QAAQ;AAAA,KACX,MAAM,QAAQ,aAAa,IAAI,gBAAgB,CAAC,aAAa,GAC3D,IAAwB,OAAOA,aAAY;AAC1C,YAAM,SAAS,OAAOA,aAAY,aAAa,MAAMA,SAAQ,CAAC,CAAC,IAAI,CAACA,QAAO;AAC3E,aAAO,MAAM,QAAQ,MAAM,IAAI,SAAS,CAAC,MAAM;AAAA,IACjD,CAAC,EACA,KAAK;AAAA,EACV,GACA,KAAK;AACP,QAAM,QAAQ,IAAI,YAAY,IAAI,CAACA,aAAY,MAAMA,QAAO,CAAC,CAAC;AAE9D,SAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC;AACjD;AAEO,MAAM,qBAAqB,OAAO,WAAsC;AAC7E,QAAM,SAAS,MAAM,WAAW,MAAM;AACtC,QAAM,UAAU,OAAO,SAAS,WAAW;AAC3C,MAAI,OAAO,SAAS;AAClB,YAAQ,IAAI,+BAA+B,OAAO,SAAS,KAAK,GAAG;AAAA,EACrE;AACA,QAAM,YAAY,MAAM,aAAa,OAAO,SAAS,KAAK;AAE1D,MAAI,UAAU,QAAQ;AACpB,UAAM,UACJ,MAAM,QAAQ;AAAA,MACZ,UAAU,IAAI,OAAO,aAAa;AAChC,eAAO,MAAM,cAAc,UAAU,OAAO,SAAS,MAAM,SAAS,OAAO,OAAO;AAAA,MACpF,CAAC;AAAA,IACH,GACA,OAAO,CAAC,MAAMC,YAAW,OAAOA,SAAQ,CAAC;AAC3C,WAAO,UAAU,UAAU,MAAM,eAAe,IAAI;AAAA,EACtD,OAAO;AACL,UAAM,SAAS,MAAM,cAAc,QAAW,OAAO,SAAS,MAAM,SAAS,OAAO,OAAO;AAC3F,WAAO,UAAU,UAAU,MAAM,eAAe,IAAI;AAAA,EACtD;AACF;","names":["options","result"]}
package/package.json CHANGED
@@ -66,7 +66,7 @@
66
66
  "@types/yargs": "^17.0.24",
67
67
  "@typescript-eslint/eslint-plugin": "^6.7.0",
68
68
  "@typescript-eslint/parser": "^6.7.0",
69
- "@xylabs/tsconfig": "~3.0.25",
69
+ "@xylabs/tsconfig": "~3.0.27",
70
70
  "chalk": "^4.1.2",
71
71
  "cosmiconfig": "^8.3.6",
72
72
  "cpy": "^8.1.2",
@@ -110,8 +110,8 @@
110
110
  "@types/license-checker": "^25.0.4",
111
111
  "@types/lodash": "^4.14.198",
112
112
  "@types/parse-git-config": "^3.0.1",
113
- "@xylabs/eslint-config": "^3.0.25",
114
- "@xylabs/tsconfig": "^3.0.25",
113
+ "@xylabs/eslint-config": "^3.0.27",
114
+ "@xylabs/tsconfig": "^3.0.27",
115
115
  "publint": "^0.2.2",
116
116
  "typescript": "^5.2.2"
117
117
  },
@@ -168,5 +168,5 @@
168
168
  "package-clean": "echo Not cleaning..."
169
169
  },
170
170
  "sideEffects": false,
171
- "version": "3.0.25"
171
+ "version": "3.0.27"
172
172
  }
@@ -20,10 +20,14 @@ export type PackageCompileTsupParams = Partial<
20
20
  const compileSubDir = async (subDir?: string, options?: Options, verbose?: boolean) => {
21
21
  const dir = subDir === '.' ? undefined : subDir
22
22
  const input = await getInputs(dir)
23
+ if (input.length === 0) {
24
+ return 0
25
+ }
23
26
  const optionsResult = defineConfig({
24
27
  bundle: true,
25
28
  cjsInterop: true,
26
29
  clean: true,
30
+ dts: false,
27
31
  /*dts: {
28
32
  compilerOptions: {
29
33
  skipDefaultLibCheck: true,