tsdown-config-silverwind 3.0.5 → 4.0.0

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -6
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -1,12 +1,7 @@
1
1
  import { fileURLToPath } from "node:url";
2
2
 
3
3
  //#region index.ts
4
- const suppressedWarnings = /* @__PURE__ */ new Set(["The `tsgo` option is experimental and may change in the future.", "TypeScript 7.0 does not yet have a stable API and is experimental. Some options will be unavailable."]);
5
- const origWarn = console.warn;
6
- console.warn = (...args) => {
7
- if (typeof args[0] === "string" && suppressedWarnings.has(args[0])) return;
8
- origWarn(...args);
9
- };
4
+ const suppressWarnings = ["The `tsgo` option is experimental", "TypeScript 7.0 does not yet have a stable API"];
10
5
  function isObject(obj) {
11
6
  return Object.prototype.toString.call(obj) === "[object Object]";
12
7
  }
@@ -36,6 +31,7 @@ function base({ url, entry, report, loader, outputOptions, deps, ...other }) {
36
31
  },
37
32
  fixedExtension: false,
38
33
  failOnWarn: true,
34
+ suppressWarnings,
39
35
  globImport: false,
40
36
  dts: { tsgo: true },
41
37
  deps: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tsdown-config-silverwind",
3
- "version": "3.0.5",
3
+ "version": "4.0.0",
4
4
  "description": "Shared tsdown configuration",
5
5
  "author": "silverwind <me@silverwind.io>",
6
6
  "repository": {
@@ -25,16 +25,16 @@
25
25
  "devDependencies": {
26
26
  "@types/node": "26.1.1",
27
27
  "@typescript/native-preview": "7.0.0-dev.20260707.2",
28
- "eslint": "10.6.0",
29
- "eslint-config-silverwind": "140.1.2",
28
+ "eslint": "10.7.0",
29
+ "eslint-config-silverwind": "140.2.0",
30
30
  "jest-extended": "7.0.0",
31
- "tsdown": "0.22.4",
31
+ "tsdown": "0.22.7",
32
32
  "typescript": "6.0.3",
33
- "typescript-config-silverwind": "20.0.0",
33
+ "typescript-config-silverwind": "20.0.1",
34
34
  "updates": "17.18.2",
35
35
  "updates-config-silverwind": "4.0.1",
36
36
  "versions": "15.1.3",
37
37
  "vitest": "4.1.10",
38
- "vitest-config-silverwind": "11.3.6"
38
+ "vitest-config-silverwind": "11.3.7"
39
39
  }
40
40
  }