tsdown 0.11.0 → 0.11.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,4 +1,4 @@
1
- import { UserConfig, UserConfigFn } from "./options-7rAywKbw.js";
1
+ import { UserConfig, UserConfigFn } from "./options-DTjUBBGw.js";
2
2
 
3
3
  //#region src/config.d.ts
4
4
  /**
package/dist/config.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { UserConfig, UserConfigFn } from "./options-7rAywKbw.js";
2
- import { defineConfig$1 as defineConfig } from "./config-B-A_eh0M.js";
1
+ import { UserConfig, UserConfigFn } from "./options-DTjUBBGw.js";
2
+ import { defineConfig$1 as defineConfig } from "./config-CTSjQDga.js";
3
3
  export { UserConfig, UserConfigFn, defineConfig };
@@ -19,7 +19,10 @@ function debounce(fn, wait) {
19
19
  }, wait);
20
20
  };
21
21
  }
22
+ function slash(string) {
23
+ return string.replaceAll("\\", "/");
24
+ }
22
25
  const noop = (v) => v;
23
26
 
24
27
  //#endregion
25
- export { debounce, noop, resolveComma, toArray };
28
+ export { debounce, noop, resolveComma, slash, toArray };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { BuildContext, Options, ResolvedOptions, TsdownHooks, UserConfig, UserConfigFn } from "./options-7rAywKbw.js";
2
- import { defineConfig$1 as defineConfig } from "./config-B-A_eh0M.js";
1
+ import { BuildContext, Options, ResolvedOptions, TsdownHooks, UserConfig, UserConfigFn } from "./options-DTjUBBGw.js";
2
+ import { defineConfig$1 as defineConfig } from "./config-CTSjQDga.js";
3
3
 
4
4
  //#region src/utils/logger.d.ts
5
5
  declare class Logger {
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineConfig } from "./config-yiJy1jd0.js";
2
- import { ExternalPlugin, NodeProtocolPlugin, ReportPlugin, ShebangPlugin, fsCopy, fsRemove, fsStat, getPackageType, lowestCommonAncestor, normalizeFormat, prettyFormat, readPackageJson } from "./plugins-xuho_Cqn.js";
3
- import { logger } from "./logger-DKXLpcNj.js";
4
- import { debounce, resolveComma, toArray } from "./general-nv5tYplM.js";
2
+ import { ExternalPlugin, NodeProtocolPlugin, ReportPlugin, ShebangPlugin, fsCopy, fsRemove, fsStat, getPackageType, lowestCommonAncestor, normalizeFormat, prettyFormat, readPackageJson } from "./plugins-BPU33dye.js";
3
+ import { debounce, resolveComma, slash, toArray } from "./general-CPYs4M61.js";
4
+ import { logger } from "./logger-DYeY_1KP.js";
5
5
  import path from "node:path";
6
6
  import process from "node:process";
7
7
  import { fileURLToPath, pathToFileURL } from "node:url";
@@ -11,7 +11,6 @@ import { build as build$1 } from "rolldown";
11
11
  import { transformPlugin } from "rolldown/experimental";
12
12
  import { exec } from "tinyexec";
13
13
  import { glob } from "tinyglobby";
14
- import { stat } from "node:fs/promises";
15
14
  import { createHooks } from "hookable";
16
15
  import readline from "node:readline";
17
16
  import { loadConfig } from "unconfig";
@@ -44,9 +43,10 @@ async function cleanOutDir(configs) {
44
43
  }));
45
44
  debug$3("Removed %d files", removes.size);
46
45
  }
47
- function resolveClean(clean, outDir) {
48
- if (clean === true) clean = [outDir];
46
+ function resolveClean(clean, outDir, cwd) {
47
+ if (clean === true) clean = [slash(outDir)];
49
48
  else if (!clean) clean = [];
49
+ if (clean.some((item) => path.resolve(item) === cwd)) throw new Error("Cannot clean the current working directory. Please specify a different path to clean option.");
50
50
  return clean;
51
51
  }
52
52
 
@@ -58,10 +58,10 @@ async function copy(options) {
58
58
  await Promise.all(toArray(copy$1).map((dir) => {
59
59
  const from = typeof dir === "string" ? dir : dir.from;
60
60
  const to = typeof dir === "string" ? path.resolve(options.outDir, path.basename(from)) : dir.to;
61
- return cp$1(options.cwd, from, to);
61
+ return cp(options.cwd, from, to);
62
62
  }));
63
63
  }
64
- function cp$1(cwd, from, to) {
64
+ function cp(cwd, from, to) {
65
65
  return fsCopy(path.resolve(cwd, from), path.resolve(cwd, to));
66
66
  }
67
67
 
@@ -142,7 +142,7 @@ function resolveJsOutputExtension(packageType, format, fixedExtension) {
142
142
  default: return "js";
143
143
  }
144
144
  }
145
- function resolveChunkFilename({ outExtensions, fixedExtension, pkg }, inputOptions, format) {
145
+ function resolveChunkFilename({ outExtensions, fixedExtension, pkg, hash }, inputOptions, format) {
146
146
  const packageType = getPackageType(pkg);
147
147
  let jsExtension;
148
148
  let dtsExtension;
@@ -157,7 +157,7 @@ function resolveChunkFilename({ outExtensions, fixedExtension, pkg }, inputOptio
157
157
  }
158
158
  jsExtension ||= `.${resolveJsOutputExtension(packageType, format, fixedExtension)}`;
159
159
  const suffix = format === "iife" || format === "umd" ? `.${format}` : "";
160
- return [createChunkFilename(`[name]${suffix}`, jsExtension, dtsExtension), createChunkFilename(`[name]${suffix}-[hash]`, jsExtension, dtsExtension)];
160
+ return [createChunkFilename(`[name]${suffix}`, jsExtension, dtsExtension), createChunkFilename(`[name]${suffix}${hash ? "-[hash]" : ""}`, jsExtension, dtsExtension)];
161
161
  }
162
162
  function createChunkFilename(basename, jsExtension, dtsExtension) {
163
163
  if (!dtsExtension) return `${basename}${jsExtension}`;
@@ -265,9 +265,8 @@ function shortcuts(restart) {
265
265
  //#region src/features/watch.ts
266
266
  const endsWithPackageJson = /[\\/]package\.json$/;
267
267
  async function watchBuild(options, configFile, rebuild, restart) {
268
- const cwd = process.cwd();
269
- if (typeof options.watch === "boolean" && options.outDir === cwd) throw new Error(`Watch is enabled, but output directory is the same as the current working directory.Please specify a different watch directory using ${blue`watch`} option,or set ${blue`outDir`} to a different directory.`);
270
- const files = toArray(typeof options.watch === "boolean" ? cwd : options.watch);
268
+ if (typeof options.watch === "boolean" && options.outDir === options.cwd) throw new Error(`Watch is enabled, but output directory is the same as the current working directory.Please specify a different watch directory using ${blue`watch`} option,or set ${blue`outDir`} to a different directory.`);
269
+ const files = toArray(typeof options.watch === "boolean" ? options.cwd : options.watch);
271
270
  logger.info(`Watching for changes in ${files.join(", ")}`);
272
271
  if (configFile) files.push(configFile);
273
272
  const { watch } = await import("chokidar");
@@ -297,16 +296,19 @@ async function watchBuild(options, configFile, rebuild, restart) {
297
296
  //#region src/features/entry.ts
298
297
  async function resolveEntry(entry, cwd) {
299
298
  if (!entry || Object.keys(entry).length === 0) throw new Error(`No input files, try "tsdown <your-file>" instead`);
300
- const objectEntry = await toObjectEntry(entry, cwd);
301
- const entries = Object.values(objectEntry);
299
+ const entryMap = await toObjectEntry(entry, cwd);
300
+ const entries = Object.values(entryMap);
302
301
  if (entries.length === 0) throw new Error(`Cannot find entry: ${JSON.stringify(entry)}`);
303
- logger.info(`entry: ${blue(entries.join(", "))}`);
304
- return objectEntry;
302
+ logger.info(`entry: ${blue(entries.map((entry$1) => path.relative(cwd, entry$1)).join(", "))}`);
303
+ return entryMap;
305
304
  }
306
305
  async function toObjectEntry(entry, cwd) {
307
306
  if (typeof entry === "string") entry = [entry];
308
307
  if (!Array.isArray(entry)) return entry;
309
- const resolvedEntry = await glob(entry, { cwd });
308
+ const resolvedEntry = await glob(entry, {
309
+ cwd,
310
+ absolute: true
311
+ });
310
312
  const base = lowestCommonAncestor(...resolvedEntry);
311
313
  return Object.fromEntries(resolvedEntry.map((file) => {
312
314
  const relative = path.relative(base, file);
@@ -317,12 +319,15 @@ async function toObjectEntry(entry, cwd) {
317
319
  //#endregion
318
320
  //#region src/features/target.ts
319
321
  function resolveTarget(target, pkg) {
320
- if (!target) {
322
+ if (target === false) return;
323
+ if (target == null) {
321
324
  const pkgTarget = resolvePackageTarget(pkg);
322
325
  if (pkgTarget) target = pkgTarget;
323
326
  else return;
324
327
  }
325
- return resolveComma(toArray(target));
328
+ const targets = resolveComma(toArray(target));
329
+ if (targets.length) logger.info(`target${targets.length > 1 ? "s" : ""}: ${blue(targets.join(", "))}`);
330
+ return targets;
326
331
  }
327
332
  function resolvePackageTarget(pkg) {
328
333
  const nodeVersion = pkg?.engines?.node;
@@ -346,9 +351,9 @@ async function resolveTsconfig(tsconfig, cwd) {
346
351
  if (original && !tsconfig) logger.warn(`No tsconfig found in ${blue(cwd)}`);
347
352
  } else {
348
353
  const tsconfigPath = path.resolve(cwd, tsconfig);
349
- const stat$1 = await fsStat(tsconfigPath);
350
- if (stat$1?.isFile()) tsconfig = tsconfigPath;
351
- else if (stat$1?.isDirectory()) {
354
+ const stat = await fsStat(tsconfigPath);
355
+ if (stat?.isFile()) tsconfig = tsconfigPath;
356
+ else if (stat?.isDirectory()) {
352
357
  tsconfig = findTsconfig(tsconfigPath);
353
358
  if (!tsconfig) logger.warn(`No tsconfig found in ${blue(tsconfigPath)}`);
354
359
  } else {
@@ -365,24 +370,26 @@ async function resolveTsconfig(tsconfig, cwd) {
365
370
  //#region src/options.ts
366
371
  const debug$1 = Debug("tsdown:options");
367
372
  async function resolveOptions(options) {
368
- const { configs: userConfigs, file, cwd } = await loadConfigFile(options);
373
+ const { configs: userConfigs, file } = await loadConfigFile(options);
369
374
  if (userConfigs.length === 0) userConfigs.push({});
370
- debug$1("Loaded config file %s from %s", file, cwd);
371
- debug$1("User configs %o", userConfigs);
375
+ if (file) {
376
+ debug$1("Loaded config file %s", file);
377
+ debug$1("User configs %o", userConfigs);
378
+ }
372
379
  const configs = await Promise.all(userConfigs.map(async (subConfig) => {
373
380
  const subOptions = {
374
381
  ...subConfig,
375
382
  ...options
376
383
  };
377
- let { entry, format = ["es"], plugins = [], clean = true, silent = false, treeshake = true, platform = "node", outDir = "dist", sourcemap = false, dts, unused = false, watch = false, shims = false, skipNodeModulesBundle = false, publint: publint$1 = false, fromVite, alias, tsconfig, report = true, target, env = {}, copy: copy$1, publicDir } = subOptions;
384
+ let { entry, format = ["es"], plugins = [], clean = true, silent = false, treeshake = true, platform = "node", outDir = "dist", sourcemap = false, dts, unused = false, watch = false, shims = false, skipNodeModulesBundle = false, publint: publint$1 = false, fromVite, alias, tsconfig, report = true, target, env = {}, copy: copy$1, publicDir, hash, cwd = process.cwd() } = subOptions;
378
385
  outDir = path.resolve(outDir);
379
- entry = await resolveEntry(entry, cwd);
380
- clean = resolveClean(clean, outDir);
386
+ clean = resolveClean(clean, outDir, cwd);
381
387
  const pkg = await readPackageJson(cwd);
388
+ entry = await resolveEntry(entry, cwd);
382
389
  if (dts == null) dts = !!(pkg?.types || pkg?.typings);
390
+ target = resolveTarget(target, pkg);
383
391
  tsconfig = await resolveTsconfig(tsconfig, cwd);
384
392
  if (publint$1 === true) publint$1 = {};
385
- target = resolveTarget(target, pkg);
386
393
  if (publicDir) if (copy$1) throw new TypeError("`publicDir` is deprecated. Cannot be used with `copy`");
387
394
  else logger.warn(`${blue`publicDir`} is deprecated. Use ${blue`copy`} instead.`);
388
395
  if (fromVite) {
@@ -418,7 +425,8 @@ async function resolveOptions(options) {
418
425
  cwd,
419
426
  env,
420
427
  pkg,
421
- copy: publicDir || copy$1
428
+ copy: publicDir || copy$1,
429
+ hash: hash ?? true
422
430
  };
423
431
  return config;
424
432
  }));
@@ -429,15 +437,12 @@ async function resolveOptions(options) {
429
437
  }
430
438
  let loaded = false;
431
439
  async function loadConfigFile(options) {
432
- let cwd = process.cwd();
440
+ let cwd = options.cwd || process.cwd();
433
441
  let overrideConfig = false;
434
442
  let { config: filePath } = options;
435
- if (filePath === false) return {
436
- configs: [],
437
- cwd
438
- };
443
+ if (filePath === false) return { configs: [] };
439
444
  if (typeof filePath === "string") {
440
- const stats = await stat(filePath).catch(() => null);
445
+ const stats = await fsStat(filePath);
441
446
  if (stats) {
442
447
  const resolved = path.resolve(filePath);
443
448
  if (stats.isFile()) {
@@ -482,8 +487,7 @@ async function loadConfigFile(options) {
482
487
  if (typeof config === "function") config = await config(options);
483
488
  return {
484
489
  configs: toArray(config),
485
- file,
486
- cwd
490
+ file
487
491
  };
488
492
  }
489
493
  async function loadViteConfig(prefix, cwd) {
@@ -1,5 +1,5 @@
1
- import { logger } from "./logger-DKXLpcNj.js";
2
- import { version } from "./package-r0-JZYQB.js";
1
+ import { logger } from "./logger-DYeY_1KP.js";
2
+ import { version } from "./package-BFibX8Ze.js";
3
3
  import process from "node:process";
4
4
  import { bold, green, underline } from "ansis";
5
5
  import { readFile, unlink, writeFile } from "node:fs/promises";
@@ -143,7 +143,7 @@ interface Options$3 {
143
143
  * { "target": ["node18", "es2020"] }
144
144
  * ```
145
145
  */
146
- target?: string | string[];
146
+ target?: string | string[] | false;
147
147
  define?: Record<string, string>;
148
148
  /** @default false */
149
149
  shims?: boolean;
@@ -247,6 +247,16 @@ interface Options$3 {
247
247
  * import('node:fs'); // becomes import('fs')
248
248
  */
249
249
  removeNodeProtocol?: boolean;
250
+ /**
251
+ * If enabled, appends hash to chunk filenames.
252
+ * @default true
253
+ */
254
+ hash?: boolean;
255
+ /**
256
+ * The working directory of the config file.
257
+ * @default process.cwd()
258
+ */
259
+ cwd?: string;
250
260
  }
251
261
  /**
252
262
  * Options without specifying config file path.
@@ -260,9 +270,6 @@ type ResolvedOptions = Omit<Overwrite<MarkPartial<Omit<Options$3, "publicDir">,
260
270
  dts: false | Options$1;
261
271
  report: false | ReportOptions;
262
272
  tsconfig: string | false;
263
- cwd: string;
264
273
  pkg?: PackageJson;
265
- }>, "config" | "fromVite">;
266
-
267
- //#endregion
274
+ }>, "config" | "fromVite">; //#endregion
268
275
  export { BuildContext, Options$3 as Options, ReportPlugin as ReportPlugin$1, ResolvedOptions, TsdownHooks, UserConfig, UserConfigFn };
@@ -0,0 +1,5 @@
1
+ //#region package.json
2
+ var version = "0.11.2";
3
+
4
+ //#endregion
5
+ export { version };
@@ -1,5 +1,5 @@
1
- import { logger } from "./logger-DKXLpcNj.js";
2
- import { noop, resolveComma, toArray } from "./general-nv5tYplM.js";
1
+ import { noop, resolveComma, toArray } from "./general-CPYs4M61.js";
2
+ import { logger } from "./logger-DYeY_1KP.js";
3
3
  import path, { dirname, normalize, sep } from "node:path";
4
4
  import { blue, bold, dim, green, underline, yellow } from "ansis";
5
5
  import Debug from "debug";
@@ -50,14 +50,12 @@ function lowestCommonAncestor(...filepaths) {
50
50
  //#endregion
51
51
  //#region src/features/external.ts
52
52
  const debug$2 = Debug("tsdown:external");
53
- const RE_DTS$1 = /\.d\.[cm]?ts$/;
54
53
  function ExternalPlugin(options) {
55
54
  const deps = options.pkg && Array.from(getProductionDeps(options.pkg));
56
55
  return {
57
56
  name: "tsdown:external",
58
- async resolveId(id, importer, { isEntry }) {
59
- if (isEntry) return;
60
- if (importer && RE_DTS$1.test(importer)) return;
57
+ async resolveId(id, importer, extraOptions) {
58
+ if (extraOptions.isEntry) return;
61
59
  const { noExternal } = options;
62
60
  if (typeof noExternal === "function" && noExternal(id, importer)) return;
63
61
  if (noExternal) {
@@ -68,8 +66,8 @@ function ExternalPlugin(options) {
68
66
  }
69
67
  let shouldExternal = false;
70
68
  if (options.skipNodeModulesBundle) {
71
- const resolved = await this.resolve(id);
72
- if (!resolved) return;
69
+ const resolved = await this.resolve(id, importer, extraOptions);
70
+ if (!resolved) return resolved;
73
71
  shouldExternal = resolved.external || /[\\/]node_modules[\\/]/.test(resolved.id);
74
72
  }
75
73
  if (deps) shouldExternal ||= deps.some((dep) => id === dep || id.startsWith(`${dep}/`));
package/dist/plugins.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ReportPlugin$1 as ReportPlugin, ResolvedOptions } from "./options-7rAywKbw.js";
1
+ import { ReportPlugin$1 as ReportPlugin, ResolvedOptions } from "./options-DTjUBBGw.js";
2
2
  import { Plugin } from "rolldown";
3
3
  import { PackageJson } from "pkg-types";
4
4
 
package/dist/plugins.js CHANGED
@@ -1,5 +1,5 @@
1
- import { ExternalPlugin, NodeProtocolPlugin, ReportPlugin, ShebangPlugin } from "./plugins-xuho_Cqn.js";
2
- import "./logger-DKXLpcNj.js";
3
- import "./general-nv5tYplM.js";
1
+ import { ExternalPlugin, NodeProtocolPlugin, ReportPlugin, ShebangPlugin } from "./plugins-BPU33dye.js";
2
+ import "./general-CPYs4M61.js";
3
+ import "./logger-DYeY_1KP.js";
4
4
 
5
5
  export { ExternalPlugin, NodeProtocolPlugin, ReportPlugin, ShebangPlugin };
package/dist/run.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
- import { logger } from "./logger-DKXLpcNj.js";
3
- import { resolveComma, toArray } from "./general-nv5tYplM.js";
4
- import { version } from "./package-r0-JZYQB.js";
2
+ import { resolveComma, toArray } from "./general-CPYs4M61.js";
3
+ import { logger } from "./logger-DYeY_1KP.js";
4
+ import { version } from "./package-BFibX8Ze.js";
5
5
  import process from "node:process";
6
6
  import { dim } from "ansis";
7
7
  import Debug from "debug";
@@ -20,7 +20,7 @@ cli.command("[...files]", "Bundle files", { ignoreOptionDefaultValue: true }).op
20
20
  await build$1(flags);
21
21
  });
22
22
  cli.command("migrate", "Migrate from tsup to tsdown").option("-c, --cwd <dir>", "Working directory").option("-d, --dry-run", "Dry run").action(async (args) => {
23
- const { migrate } = await import("./migrate-BClsYfT0.js");
23
+ const { migrate } = await import("./migrate-efuopK8P.js");
24
24
  await migrate(args);
25
25
  });
26
26
  async function runCLI() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tsdown",
3
- "version": "0.11.0",
3
+ "version": "0.11.2",
4
4
  "description": "The Elegant Bundler for Libraries",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -43,8 +43,8 @@
43
43
  },
44
44
  "peerDependencies": {
45
45
  "publint": "^0.3.0",
46
- "unplugin-lightningcss": "^0.3.3",
47
- "unplugin-unused": "^0.4.0"
46
+ "unplugin-lightningcss": "^0.4.0",
47
+ "unplugin-unused": "^0.5.0"
48
48
  },
49
49
  "peerDependenciesMeta": {
50
50
  "publint": {
@@ -58,7 +58,7 @@
58
58
  }
59
59
  },
60
60
  "dependencies": {
61
- "ansis": "^3.17.0",
61
+ "ansis": "^4.0.0",
62
62
  "cac": "^6.7.14",
63
63
  "chokidar": "^4.0.3",
64
64
  "debug": "^4.4.0",
@@ -66,7 +66,7 @@
66
66
  "empathic": "^1.1.0",
67
67
  "hookable": "^5.5.3",
68
68
  "rolldown": "1.0.0-beta.8-commit.534fde3",
69
- "rolldown-plugin-dts": "^0.11.1",
69
+ "rolldown-plugin-dts": "^0.11.4",
70
70
  "semver": "^7.7.1",
71
71
  "tinyexec": "^1.0.1",
72
72
  "tinyglobby": "^0.2.13",
@@ -74,14 +74,14 @@
74
74
  },
75
75
  "devDependencies": {
76
76
  "@oxc-node/core": "^0.0.27",
77
- "@sxzz/eslint-config": "^6.2.0",
77
+ "@sxzz/eslint-config": "^7.0.1",
78
78
  "@sxzz/prettier-config": "^2.2.1",
79
79
  "@sxzz/test-utils": "^0.5.6",
80
80
  "@types/debug": "^4.1.12",
81
81
  "@types/diff": "^7.0.2",
82
- "@types/node": "^22.15.3",
82
+ "@types/node": "^22.15.17",
83
83
  "@types/semver": "^7.7.0",
84
- "@unocss/eslint-plugin": "^66.1.0-beta.13",
84
+ "@unocss/eslint-plugin": "^66.1.1",
85
85
  "bumpp": "^10.1.0",
86
86
  "eslint": "^9.26.0",
87
87
  "lightningcss": "^1.29.3",
@@ -89,17 +89,17 @@
89
89
  "prettier": "^3.5.3",
90
90
  "publint": "^0.3.12",
91
91
  "tsup": "^8.4.0",
92
- "typedoc": "^0.28.3",
92
+ "typedoc": "^0.28.4",
93
93
  "typedoc-plugin-markdown": "^4.6.3",
94
94
  "typescript": "~5.8.3",
95
- "unocss": "^66.1.0-beta.13",
96
- "unplugin-lightningcss": "^0.3.3",
97
- "unplugin-unused": "^0.4.4",
98
- "vite": "^6.3.4",
95
+ "unocss": "^66.1.1",
96
+ "unplugin-lightningcss": "^0.4.0",
97
+ "unplugin-unused": "^0.5.0",
98
+ "vite": "^6.3.5",
99
99
  "vitepress": "^1.6.3",
100
100
  "vitepress-plugin-group-icons": "^1.5.2",
101
101
  "vitepress-plugin-llms": "^1.1.3",
102
- "vitest": "^3.1.2",
102
+ "vitest": "^3.1.3",
103
103
  "vue": "^3.5.13"
104
104
  },
105
105
  "engines": {
@@ -107,7 +107,7 @@
107
107
  },
108
108
  "prettier": "@sxzz/prettier-config",
109
109
  "scripts": {
110
- "lint": "eslint --cache .",
110
+ "lint": "eslint --cache --max-warnings 0 .",
111
111
  "lint:fix": "pnpm run lint --fix",
112
112
  "build": "node --import @oxc-node/core/register ./src/run.ts",
113
113
  "dev": "node --import @oxc-node/core/register ./src/run.ts",
@@ -1,5 +0,0 @@
1
- //#region package.json
2
- var version = "0.11.0";
3
-
4
- //#endregion
5
- export { version };
File without changes