tsdown-config-silverwind 1.0.3 → 1.1.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 +7 -3
- package/dist/index.js +12 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { Options } from "tsdown";
|
|
2
2
|
|
|
3
3
|
//#region index.d.ts
|
|
4
|
-
type CustomConfig = {
|
|
4
|
+
type CustomConfig = Options & {
|
|
5
5
|
url: string;
|
|
6
|
-
}
|
|
6
|
+
};
|
|
7
7
|
declare function nodeLib({
|
|
8
8
|
url,
|
|
9
9
|
...other
|
|
10
10
|
}: CustomConfig): Options;
|
|
11
|
+
declare function webLib({
|
|
12
|
+
url,
|
|
13
|
+
...other
|
|
14
|
+
}: CustomConfig): Options;
|
|
11
15
|
//#endregion
|
|
12
|
-
export { CustomConfig, nodeLib };
|
|
16
|
+
export { CustomConfig, nodeLib, webLib };
|
package/dist/index.js
CHANGED
|
@@ -3,6 +3,10 @@ import { fileURLToPath } from "node:url";
|
|
|
3
3
|
//#region index.ts
|
|
4
4
|
const base = ({ url,...other }) => ({
|
|
5
5
|
entry: fileURLToPath(new URL("index.ts", url)),
|
|
6
|
+
report: {
|
|
7
|
+
gzip: false,
|
|
8
|
+
brotli: false
|
|
9
|
+
},
|
|
6
10
|
...other
|
|
7
11
|
});
|
|
8
12
|
function nodeLib({ url,...other }) {
|
|
@@ -12,6 +16,13 @@ function nodeLib({ url,...other }) {
|
|
|
12
16
|
...other
|
|
13
17
|
});
|
|
14
18
|
}
|
|
19
|
+
function webLib({ url,...other }) {
|
|
20
|
+
return base({
|
|
21
|
+
platform: "browser",
|
|
22
|
+
url,
|
|
23
|
+
...other
|
|
24
|
+
});
|
|
25
|
+
}
|
|
15
26
|
|
|
16
27
|
//#endregion
|
|
17
|
-
export { nodeLib };
|
|
28
|
+
export { nodeLib, webLib };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tsdown-config-silverwind",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Shared tsdown configuration",
|
|
5
5
|
"author": "silverwind <me@silverwind.io>",
|
|
6
6
|
"repository": "silverwind/tsdown-config-silverwind",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@types/node": "24.5.2",
|
|
21
21
|
"eslint": "9.36.0",
|
|
22
|
-
"eslint-config-silverwind": "105.2.
|
|
23
|
-
"tsdown": "0.15.
|
|
22
|
+
"eslint-config-silverwind": "105.2.1",
|
|
23
|
+
"tsdown": "0.15.5",
|
|
24
24
|
"typescript": "5.9.2",
|
|
25
25
|
"typescript-config-silverwind": "10.0.2",
|
|
26
26
|
"updates": "16.7.2",
|