@theholocron/tsdown-config 6.1.1 → 7.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 +2 -0
- package/dist/index.js +2 -0
- package/dist/presets/library.d.ts +11 -0
- package/dist/presets/library.js +20 -0
- package/package.json +32 -8
- package/index.js +0 -1
- package/presets/library.js +0 -22
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Options } from "tsdown";
|
|
2
|
+
//#region presets/library.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* tsdown preset for a published ESM library.
|
|
5
|
+
* Single entry point, generates types, does not bundle @theholocron/* peers.
|
|
6
|
+
*/
|
|
7
|
+
declare function library(options?: Options): import("tsdown").UserConfig;
|
|
8
|
+
/** Ready-to-use config for packages that need no customisation. */
|
|
9
|
+
declare const _default: import("tsdown").UserConfig;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { _default as default, library };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { defineConfig } from "tsdown";
|
|
2
|
+
//#region presets/library.ts
|
|
3
|
+
/**
|
|
4
|
+
* tsdown preset for a published ESM library.
|
|
5
|
+
* Single entry point, generates types, does not bundle @theholocron/* peers.
|
|
6
|
+
*/
|
|
7
|
+
function library(options = {}) {
|
|
8
|
+
return defineConfig({
|
|
9
|
+
entry: ["src/index.ts"],
|
|
10
|
+
format: "esm",
|
|
11
|
+
dts: true,
|
|
12
|
+
clean: true,
|
|
13
|
+
deps: { neverBundle: [/^@theholocron\//] },
|
|
14
|
+
...options
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
/** Ready-to-use config for packages that need no customisation. */
|
|
18
|
+
var library_default = library();
|
|
19
|
+
//#endregion
|
|
20
|
+
export { library_default as default, library };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/tsdown-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.1.0",
|
|
4
4
|
"description": "Shared tsdown configurations for @theholocron packages.",
|
|
5
5
|
"homepage": "https://github.com/theholocron/configs/tree/main/packages/tsdown-config#readme",
|
|
6
6
|
"bugs": "https://github.com/theholocron/configs/issues",
|
|
@@ -10,27 +10,51 @@
|
|
|
10
10
|
},
|
|
11
11
|
"license": "GPL-3.0",
|
|
12
12
|
"author": "Newton Koumantzelis",
|
|
13
|
+
"keywords": [
|
|
14
|
+
"tsdown",
|
|
15
|
+
"build",
|
|
16
|
+
"bundler",
|
|
17
|
+
"typescript",
|
|
18
|
+
"config",
|
|
19
|
+
"theholocron"
|
|
20
|
+
],
|
|
13
21
|
"type": "module",
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"tsdown": "^0.22.8",
|
|
24
|
+
"typescript": "^5.9.3",
|
|
25
|
+
"vitest": "^4.0.0",
|
|
26
|
+
"@theholocron/tsconfig": "7.1.0",
|
|
27
|
+
"@theholocron/vitest-config": "7.1.0"
|
|
28
|
+
},
|
|
14
29
|
"exports": {
|
|
15
30
|
".": {
|
|
16
|
-
"
|
|
17
|
-
"
|
|
31
|
+
"types": "./dist/index.d.ts",
|
|
32
|
+
"import": "./dist/index.js",
|
|
33
|
+
"default": "./dist/index.js"
|
|
18
34
|
},
|
|
19
35
|
"./presets/library": {
|
|
20
|
-
"
|
|
21
|
-
"
|
|
36
|
+
"types": "./dist/presets/library.d.ts",
|
|
37
|
+
"import": "./dist/presets/library.js",
|
|
38
|
+
"default": "./dist/presets/library.js"
|
|
22
39
|
}
|
|
23
40
|
},
|
|
24
41
|
"files": [
|
|
25
|
-
"
|
|
26
|
-
"presets/"
|
|
42
|
+
"dist/"
|
|
27
43
|
],
|
|
28
44
|
"peerDependencies": {
|
|
29
45
|
"tsdown": "^0"
|
|
30
46
|
},
|
|
47
|
+
"engines": {
|
|
48
|
+
"node": ">=22.0.0"
|
|
49
|
+
},
|
|
31
50
|
"publishConfig": {
|
|
32
51
|
"access": "public"
|
|
33
52
|
},
|
|
34
53
|
"releases": "https://github.com/theholocron/configs/releases",
|
|
35
|
-
"wiki": "https://github.com/theholocron/configs/wiki"
|
|
54
|
+
"wiki": "https://github.com/theholocron/configs/wiki",
|
|
55
|
+
"scripts": {
|
|
56
|
+
"build": "tsdown",
|
|
57
|
+
"typecheck": "tsc --noEmit",
|
|
58
|
+
"test": "vitest run"
|
|
59
|
+
}
|
|
36
60
|
}
|
package/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { library } from "./presets/library.js";
|
package/presets/library.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from "tsdown";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* tsdown preset for a published ESM library.
|
|
5
|
-
* Single entry point, generates types, does not bundle @theholocron/* peers.
|
|
6
|
-
*
|
|
7
|
-
* @param {import('tsdown').Options} [options]
|
|
8
|
-
* @returns {import('tsdown').Options}
|
|
9
|
-
*/
|
|
10
|
-
export function library(options = {}) {
|
|
11
|
-
return defineConfig({
|
|
12
|
-
entry: ["src/index.ts"],
|
|
13
|
-
format: "esm",
|
|
14
|
-
dts: true,
|
|
15
|
-
clean: true,
|
|
16
|
-
deps: { neverBundle: [/^@theholocron\//] },
|
|
17
|
-
...options,
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/** Ready-to-use config for packages that need no customisation. */
|
|
22
|
-
export default library();
|