@xylabs/ts-scripts-yarn3 5.0.22 → 5.0.24

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.24",
4
4
  "description": "TypeScript project scripts",
5
5
  "keywords": [
6
6
  "xylabs",
@@ -91,11 +91,11 @@
91
91
  "@rollup/plugin-commonjs": "^28.0.2",
92
92
  "@rollup/plugin-json": "^6.1.0",
93
93
  "@rollup/plugin-typescript": "^12.1.2",
94
- "@swc/core": "^1.10.14",
94
+ "@swc/core": "^1.10.15",
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.24",
98
+ "@xylabs/tsconfig-dom": "^5.0.24",
99
99
  "async-mutex": "^0.5.0",
100
100
  "chalk": "^5.4.1",
101
101
  "cosmiconfig": "^9.0.0",
@@ -103,8 +103,8 @@
103
103
  "cpy": "^11.1.0",
104
104
  "deepmerge": "^4.3.1",
105
105
  "depcheck": "^1.4.7",
106
- "esbuild": "^0.24.2",
107
- "eslint": "^9.19.0",
106
+ "esbuild": "^0.25.0",
107
+ "eslint": "^9.20.0",
108
108
  "glob": "^11.0.1",
109
109
  "jsonc-eslint-parser": "^2.4.0",
110
110
  "license-checker": "^25.0.1",
@@ -113,9 +113,9 @@
113
113
  "npm-package-json-lint": "^8.0.0",
114
114
  "npm-package-json-lint-config-default": "^7.0.1",
115
115
  "parse-git-config": "^3.0.0",
116
- "publint": "^0.3.2",
116
+ "publint": "^0.3.4",
117
117
  "reflect-metadata": "^0.2.2",
118
- "rollup": "^4.34.2",
118
+ "rollup": "^4.34.6",
119
119
  "rollup-plugin-exclude-dependencies-from-bundle": "^1.1.24",
120
120
  "rollup-plugin-node-externals": "^8.0.0",
121
121
  "sort-package-json": "^2.14.0",
@@ -125,7 +125,7 @@
125
125
  "tsc-prog": "^2.3.0",
126
126
  "tslib": "^2.8.1",
127
127
  "tsup": "^8.3.6",
128
- "typedoc": "^0.27.6",
128
+ "typedoc": "^0.27.7",
129
129
  "types-package-json": "^2.0.39",
130
130
  "vitest": "^3.0.5",
131
131
  "yargs": "^17.7.2"
@@ -134,8 +134,8 @@
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",
138
- "publint": "^0.3.2",
137
+ "@xylabs/tsconfig": "^5.0.24",
138
+ "publint": "^0.3.4",
139
139
  "rimraf": "^6.0.1",
140
140
  "typescript": "^5.7.3"
141
141
  },
@@ -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
  }