@xylabs/ts-scripts-yarn3 5.0.22 → 5.0.23

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xylabs/ts-scripts-yarn3",
3
- "version": "5.0.22",
3
+ "version": "5.0.23",
4
4
  "description": "TypeScript project scripts",
5
5
  "keywords": [
6
6
  "xylabs",
@@ -94,8 +94,8 @@
94
94
  "@swc/core": "^1.10.14",
95
95
  "@types/node": "^22.13.1",
96
96
  "@types/yargs": "^17.0.33",
97
- "@xylabs/tsconfig": "^5.0.22",
98
- "@xylabs/tsconfig-dom": "^5.0.22",
97
+ "@xylabs/tsconfig": "^5.0.23",
98
+ "@xylabs/tsconfig-dom": "^5.0.23",
99
99
  "async-mutex": "^0.5.0",
100
100
  "chalk": "^5.4.1",
101
101
  "cosmiconfig": "^9.0.0",
@@ -134,7 +134,7 @@
134
134
  "@types/eslint": "^9.6.1",
135
135
  "@types/license-checker": "^25.0.6",
136
136
  "@types/parse-git-config": "^3.0.4",
137
- "@xylabs/tsconfig": "^5.0.22",
137
+ "@xylabs/tsconfig": "^5.0.23",
138
138
  "publint": "^0.3.2",
139
139
  "rimraf": "^6.0.1",
140
140
  "typescript": "^5.7.3"
@@ -2,7 +2,6 @@ import type { Loader } from 'esbuild'
2
2
  import type { Options } from 'tsup'
3
3
  import { build, defineConfig } from 'tsup'
4
4
 
5
- import { packagePublint } from '../publint.ts'
6
5
  import { buildEntries } from './buildEntries.ts'
7
6
  import { packageCompileTscTypes } from './packageCompileTscTypes.ts'
8
7
  import type { EntryMode, XyTsupConfig } from './XyConfig.ts'
@@ -30,12 +29,6 @@ const compileFolder = async (
30
29
  tsconfig: 'tsconfig.json',
31
30
  ...options,
32
31
  })
33
- if (types === 'tsc') {
34
- const errors = packageCompileTscTypes(folder, { verbose }, { outDir })
35
- if (errors) {
36
- return errors
37
- }
38
- }
39
32
  const optionsList = (
40
33
  await Promise.all(
41
34
  (Array.isArray(optionsResult) ? optionsResult : [optionsResult]).flatMap<Promise<Options[]>>(async (options) => {
@@ -46,14 +39,18 @@ const compileFolder = async (
46
39
  ).flat()
47
40
 
48
41
  await Promise.all(optionsList.map(options => build(options)))
42
+ if (types === 'tsc') {
43
+ const errors = packageCompileTscTypes(folder, { verbose }, { outDir })
44
+ if (errors) {
45
+ return errors
46
+ }
47
+ }
49
48
  return 0
50
49
  }
51
50
 
52
- // eslint-disable-next-line complexity
53
51
  export const packageCompileTsup = async (config?: XyTsupConfig, types: 'tsc' | 'tsup' = 'tsup') => {
54
52
  console.warn('packageCompileTsup-types', types)
55
53
  const compile = config?.compile
56
- const publint = config?.publint ?? true
57
54
  const verbose = config?.verbose ?? false
58
55
  if (verbose) {
59
56
  console.log(`Compiling with TSUP [Depth: ${compile?.depth}]`)
@@ -155,6 +152,6 @@ export const packageCompileTsup = async (config?: XyTsupConfig, types: 'tsc' | '
155
152
  }),
156
153
  )
157
154
  ).reduce((prev, value) => prev + value, 0)
158
- || (publint ? await packagePublint() : 0)
155
+ || 0
159
156
  )
160
157
  }