tsdown-config-silverwind 3.0.4 → 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.
- package/dist/index.d.ts +4 -26
- package/dist/index.js +2 -5
- package/package.json +12 -12
package/dist/index.d.ts
CHANGED
|
@@ -1,33 +1,11 @@
|
|
|
1
1
|
import { UserConfig } from "tsdown";
|
|
2
|
-
|
|
3
2
|
//#region index.d.ts
|
|
4
3
|
type CustomConfig = UserConfig & {
|
|
5
4
|
url: string;
|
|
6
5
|
};
|
|
7
|
-
declare function base({
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
loader,
|
|
12
|
-
outputOptions,
|
|
13
|
-
deps,
|
|
14
|
-
...other
|
|
15
|
-
}: CustomConfig): UserConfig;
|
|
16
|
-
declare function nodeLib({
|
|
17
|
-
url,
|
|
18
|
-
entry,
|
|
19
|
-
outputOptions,
|
|
20
|
-
...other
|
|
21
|
-
}: CustomConfig): UserConfig;
|
|
22
|
-
declare function webLib({
|
|
23
|
-
url,
|
|
24
|
-
...other
|
|
25
|
-
}: CustomConfig): UserConfig;
|
|
26
|
-
declare function nodeCli({
|
|
27
|
-
url,
|
|
28
|
-
entry,
|
|
29
|
-
outputOptions,
|
|
30
|
-
...other
|
|
31
|
-
}: CustomConfig): UserConfig;
|
|
6
|
+
declare function base({ url, entry, report, loader, outputOptions, deps, ...other }: CustomConfig): UserConfig;
|
|
7
|
+
declare function nodeLib({ url, entry, outputOptions, ...other }: CustomConfig): UserConfig;
|
|
8
|
+
declare function webLib({ url, ...other }: CustomConfig): UserConfig;
|
|
9
|
+
declare function nodeCli({ url, entry, outputOptions, ...other }: CustomConfig): UserConfig;
|
|
32
10
|
//#endregion
|
|
33
11
|
export { base, nodeCli, nodeLib, webLib };
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import { fileURLToPath } from "node:url";
|
|
2
2
|
|
|
3
3
|
//#region index.ts
|
|
4
|
-
const
|
|
5
|
-
console.warn = (...args) => {
|
|
6
|
-
if (typeof args[0] === "string" && args[0].includes("`tsgo` option is experimental")) return;
|
|
7
|
-
origWarn(...args);
|
|
8
|
-
};
|
|
4
|
+
const suppressWarnings = ["The `tsgo` option is experimental", "TypeScript 7.0 does not yet have a stable API"];
|
|
9
5
|
function isObject(obj) {
|
|
10
6
|
return Object.prototype.toString.call(obj) === "[object Object]";
|
|
11
7
|
}
|
|
@@ -35,6 +31,7 @@ function base({ url, entry, report, loader, outputOptions, deps, ...other }) {
|
|
|
35
31
|
},
|
|
36
32
|
fixedExtension: false,
|
|
37
33
|
failOnWarn: true,
|
|
34
|
+
suppressWarnings,
|
|
38
35
|
globImport: false,
|
|
39
36
|
dts: { tsgo: true },
|
|
40
37
|
deps: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tsdown-config-silverwind",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "Shared tsdown configuration",
|
|
5
5
|
"author": "silverwind <me@silverwind.io>",
|
|
6
6
|
"repository": {
|
|
@@ -23,18 +23,18 @@
|
|
|
23
23
|
"tsdown": "*"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@types/node": "
|
|
27
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
28
|
-
"eslint": "10.
|
|
29
|
-
"eslint-config-silverwind": "
|
|
26
|
+
"@types/node": "26.1.1",
|
|
27
|
+
"@typescript/native-preview": "7.0.0-dev.20260707.2",
|
|
28
|
+
"eslint": "10.7.0",
|
|
29
|
+
"eslint-config-silverwind": "140.2.0",
|
|
30
30
|
"jest-extended": "7.0.0",
|
|
31
|
-
"tsdown": "0.22.
|
|
31
|
+
"tsdown": "0.22.7",
|
|
32
32
|
"typescript": "6.0.3",
|
|
33
|
-
"typescript-config-silverwind": "20.0.
|
|
34
|
-
"updates": "17.18.
|
|
35
|
-
"updates-config-silverwind": "4.0.
|
|
36
|
-
"versions": "15.1.
|
|
37
|
-
"vitest": "4.1.
|
|
38
|
-
"vitest-config-silverwind": "11.3.
|
|
33
|
+
"typescript-config-silverwind": "20.0.1",
|
|
34
|
+
"updates": "17.18.2",
|
|
35
|
+
"updates-config-silverwind": "4.0.1",
|
|
36
|
+
"versions": "15.1.3",
|
|
37
|
+
"vitest": "4.1.10",
|
|
38
|
+
"vitest-config-silverwind": "11.3.7"
|
|
39
39
|
}
|
|
40
40
|
}
|