@xylabs/ts-scripts-yarn3 3.0.24 → 3.0.26

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.
@@ -33,6 +33,7 @@ const compileSubDir = async (subDir, options, verbose) => {
33
33
  bundle: true,
34
34
  cjsInterop: true,
35
35
  clean: true,
36
+ dts: false,
36
37
  /*dts: {
37
38
  compilerOptions: {
38
39
  skipDefaultLibCheck: true,
@@ -44,7 +45,7 @@ const compileSubDir = async (subDir, options, verbose) => {
44
45
  },*/
45
46
  entry: subDir ? input.map((file) => `./src/${file}`) : ["./src/index.ts"],
46
47
  format: ["cjs", "esm"],
47
- outDir: "dist",
48
+ outDir: subDir ? `dist/${subDir}` : "dist",
48
49
  sourcemap: true,
49
50
  splitting: false,
50
51
  tsconfig: "tsconfig.json",
@@ -63,7 +64,7 @@ const packageCompileTsup = async (params) => {
63
64
  const config = await (0, import_lib.loadConfig)(params);
64
65
  const publint = config.compile?.publint ?? true;
65
66
  if (config.verbose) {
66
- console.log("Compiling with TSUP");
67
+ console.log(`Compiling with TSUP [Depth: ${config.compile?.depth}]`);
67
68
  }
68
69
  const inputDirs = await (0, import_inputs.getInputDirs)(config.compile?.depth);
69
70
  if (inputDirs.length) {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/actions/package/compile/tsup.ts"],"sourcesContent":["import { 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: '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')\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;AAAA,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;A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AS,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 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":";;;;;;;;;;;;;;;;;;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,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,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"]}
@@ -10,6 +10,7 @@ const compileSubDir = async (subDir, options, verbose) => {
10
10
  bundle: true,
11
11
  cjsInterop: true,
12
12
  clean: true,
13
+ dts: false,
13
14
  /*dts: {
14
15
  compilerOptions: {
15
16
  skipDefaultLibCheck: true,
@@ -21,7 +22,7 @@ const compileSubDir = async (subDir, options, verbose) => {
21
22
  },*/
22
23
  entry: subDir ? input.map((file) => `./src/${file}`) : ["./src/index.ts"],
23
24
  format: ["cjs", "esm"],
24
- outDir: "dist",
25
+ outDir: subDir ? `dist/${subDir}` : "dist",
25
26
  sourcemap: true,
26
27
  splitting: false,
27
28
  tsconfig: "tsconfig.json",
@@ -40,7 +41,7 @@ const packageCompileTsup = async (params) => {
40
41
  const config = await loadConfig(params);
41
42
  const publint = config.compile?.publint ?? true;
42
43
  if (config.verbose) {
43
- console.log("Compiling with TSUP");
44
+ console.log(`Compiling with TSUP [Depth: ${config.compile?.depth}]`);
44
45
  }
45
46
  const inputDirs = await getInputDirs(config.compile?.depth);
46
47
  if (inputDirs.length) {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/actions/package/compile/tsup.ts"],"sourcesContent":["import { 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: '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')\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,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,QAAM,gBAAgB,aAAa;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;AAAA,IACR,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,qBAAqB;AAAA,EACnC;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"]}
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: 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,QAAM,gBAAgB,aAAa;AAAA,IACjC,QAAQ;AAAA,IACR,YAAY;AAAA,IACZ,OAAO;AAAA,IACP,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;A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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.24",
69
+ "@xylabs/tsconfig": "~3.0.26",
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.24",
114
- "@xylabs/tsconfig": "^3.0.24",
113
+ "@xylabs/eslint-config": "^3.0.26",
114
+ "@xylabs/tsconfig": "^3.0.26",
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.24"
171
+ "version": "3.0.26"
172
172
  }
@@ -1,3 +1,4 @@
1
+ import chalk from 'chalk'
1
2
  import { build, defineConfig, Options } from 'tsup'
2
3
 
3
4
  import { loadConfig } from '../../../lib'
@@ -23,6 +24,7 @@ const compileSubDir = async (subDir?: string, options?: Options, verbose?: boole
23
24
  bundle: true,
24
25
  cjsInterop: true,
25
26
  clean: true,
27
+ dts: false,
26
28
  /*dts: {
27
29
  compilerOptions: {
28
30
  skipDefaultLibCheck: true,
@@ -34,7 +36,7 @@ const compileSubDir = async (subDir?: string, options?: Options, verbose?: boole
34
36
  },*/
35
37
  entry: subDir ? input.map((file) => `./src/${file}`) : ['./src/index.ts'],
36
38
  format: ['cjs', 'esm'],
37
- outDir: 'dist',
39
+ outDir: subDir ? `dist/${subDir}` : 'dist',
38
40
  sourcemap: true,
39
41
  splitting: false,
40
42
  tsconfig: 'tsconfig.json',
@@ -59,7 +61,7 @@ export const packageCompileTsup = async (params?: PackageCompileTsupParams) => {
59
61
  const config = await loadConfig(params)
60
62
  const publint = config.compile?.publint ?? true
61
63
  if (config.verbose) {
62
- console.log('Compiling with TSUP')
64
+ console.log(`Compiling with TSUP [Depth: ${config.compile?.depth}]`)
63
65
  }
64
66
  const inputDirs = await getInputDirs(config.compile?.depth)
65
67