@padosoft/config 1.3.0 → 1.3.1
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/package.json +5 -1
- package/.turbo/turbo-build.log +0 -29
- package/CHANGELOG.md +0 -89
- package/tsconfig.json +0 -9
- package/tsdown.config.ts +0 -47
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"padosoft"
|
|
11
11
|
],
|
|
12
12
|
"type": "module",
|
|
13
|
-
"version": "1.3.
|
|
13
|
+
"version": "1.3.1",
|
|
14
14
|
"repository": {
|
|
15
15
|
"url": "git+https://github.com/padosoft/ts-support.git"
|
|
16
16
|
},
|
|
@@ -22,6 +22,10 @@
|
|
|
22
22
|
"build": "tsdown",
|
|
23
23
|
"ts:check": "tsc --noEmit"
|
|
24
24
|
},
|
|
25
|
+
"files": [
|
|
26
|
+
"dist",
|
|
27
|
+
"src"
|
|
28
|
+
],
|
|
25
29
|
"bin": {
|
|
26
30
|
"padosoft-config": "./dist/cli/index.mjs"
|
|
27
31
|
},
|
package/.turbo/turbo-build.log
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
$ tsdown
|
|
2
|
-
[34mℹ[39m [34mtsdown v0.22.3[39m powered by [38;2;255;126;23mrolldown v1.1.1[39m
|
|
3
|
-
[34mℹ[39m config file: [4m/home/runner/work/ts-support/ts-support/packages/config/tsdown.config.ts[24m
|
|
4
|
-
[34mℹ[39m entry: [34msrc/cli/index.ts, src/compiler/tsdown.ts, src/types/css.ts, src/types/expo-router.ts, src/types/i18next.ts, src/types/nativewind.ts, src/compiler/plugins/hono-zod.ts, src/compiler/utils/exports.ts, src/compiler/utils/index.ts[39m
|
|
5
|
-
[34mℹ[39m tsconfig: [34mtsconfig.json[39m
|
|
6
|
-
[34mℹ[39m Build start
|
|
7
|
-
[34mℹ[39m Granting execute permission to [4mdist/cli/index.mjs[24m
|
|
8
|
-
[34mℹ[39m [2mdist/[22m[1mcli/index.mjs[22m [2m1.81 kB[22m [2m│ gzip: 0.82 kB[22m
|
|
9
|
-
[34mℹ[39m [2mdist/[22m[1mcompiler/tsdown.mjs[22m [2m0.33 kB[22m [2m│ gzip: 0.25 kB[22m
|
|
10
|
-
[34mℹ[39m [2mdist/[22m[1mcompiler/plugins/hono-zod.mjs[22m [2m0.24 kB[22m [2m│ gzip: 0.19 kB[22m
|
|
11
|
-
[34mℹ[39m [2mdist/[22m[1mcompiler/utils/exports.mjs[22m [2m0.08 kB[22m [2m│ gzip: 0.09 kB[22m
|
|
12
|
-
[34mℹ[39m [2mdist/[22m[1mcompiler/utils/index.mjs[22m [2m0.08 kB[22m [2m│ gzip: 0.09 kB[22m
|
|
13
|
-
[34mℹ[39m [2mdist/[22m[1mtypes/css.mjs[22m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
14
|
-
[34mℹ[39m [2mdist/[22m[1mtypes/expo-router.mjs[22m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
15
|
-
[34mℹ[39m [2mdist/[22m[1mtypes/i18next.mjs[22m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
16
|
-
[34mℹ[39m [2mdist/[22m[1mtypes/nativewind.mjs[22m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
17
|
-
[34mℹ[39m [2mdist/[22mexports-Cp7dWSTV.mjs [2m0.42 kB[22m [2m│ gzip: 0.26 kB[22m
|
|
18
|
-
[34mℹ[39m [2mdist/[22m[32m[1mtypes/i18next.d.mts[22m[39m [2m1.29 kB[22m [2m│ gzip: 0.62 kB[22m
|
|
19
|
-
[34mℹ[39m [2mdist/[22m[32m[1mtypes/expo-router.d.mts[22m[39m [2m0.84 kB[22m [2m│ gzip: 0.32 kB[22m
|
|
20
|
-
[34mℹ[39m [2mdist/[22m[32m[1mtypes/css.d.mts[22m[39m [2m0.23 kB[22m [2m│ gzip: 0.15 kB[22m
|
|
21
|
-
[34mℹ[39m [2mdist/[22m[32m[1mcompiler/plugins/hono-zod.d.mts[22m[39m [2m0.20 kB[22m [2m│ gzip: 0.15 kB[22m
|
|
22
|
-
[34mℹ[39m [2mdist/[22m[32m[1mcompiler/tsdown.d.mts[22m[39m [2m0.19 kB[22m [2m│ gzip: 0.15 kB[22m
|
|
23
|
-
[34mℹ[39m [2mdist/[22m[32m[1mcompiler/utils/exports.d.mts[22m[39m [2m0.10 kB[22m [2m│ gzip: 0.09 kB[22m
|
|
24
|
-
[34mℹ[39m [2mdist/[22m[32m[1mcompiler/utils/index.d.mts[22m[39m [2m0.10 kB[22m [2m│ gzip: 0.09 kB[22m
|
|
25
|
-
[34mℹ[39m [2mdist/[22m[32m[1mcli/index.d.mts[22m[39m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
26
|
-
[34mℹ[39m [2mdist/[22m[32m[1mtypes/nativewind.d.mts[22m[39m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
27
|
-
[34mℹ[39m [2mdist/[22m[32mexports-FMOinUbl.d.mts[39m [2m0.25 kB[22m [2m│ gzip: 0.19 kB[22m
|
|
28
|
-
[34mℹ[39m 20 files, total: 6.24 kB
|
|
29
|
-
[32m✔[39m Build complete in [32m134ms[39m
|
package/CHANGELOG.md
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
# @padosoft/config
|
|
2
|
-
|
|
3
|
-
## 1.3.0
|
|
4
|
-
|
|
5
|
-
### Minor Changes
|
|
6
|
-
|
|
7
|
-
- [`3a27e7c`](https://github.com/padosoft/ts-support/commit/3a27e7cef1b942f5b09cf4322cf0daa38c7668df) Thanks [@47PADO47](https://github.com/47PADO47)! - Add `init editor` CLI command to scaffold `.vscode/settings.json` and `.zed/settings.json` from canonical Biome-focused editor settings.
|
|
8
|
-
|
|
9
|
-
Usage: `bunx @padosoft/config init editor [--force]`
|
|
10
|
-
|
|
11
|
-
## 1.2.2
|
|
12
|
-
|
|
13
|
-
### Patch Changes
|
|
14
|
-
|
|
15
|
-
- [`b017a2c`](https://github.com/padosoft/ts-support/commit/b017a2cd9669260f2dd28eec06579a902175aece) Thanks [@47PADO47](https://github.com/47PADO47)! - bump deps
|
|
16
|
-
|
|
17
|
-
## 1.2.1
|
|
18
|
-
|
|
19
|
-
### Patch Changes
|
|
20
|
-
|
|
21
|
-
- [`d01b29f`](https://github.com/padosoft/ts-support/commit/d01b29fb568b4b513a89c806c7f19f056fd7797f) Thanks [@47PADO47](https://github.com/47PADO47)! - update deps
|
|
22
|
-
|
|
23
|
-
## 1.2.0
|
|
24
|
-
|
|
25
|
-
### Minor Changes
|
|
26
|
-
|
|
27
|
-
- [`ab3d36e`](https://github.com/padosoft/ts-support/commit/ab3d36e1cd5002925e63f59683fc66e7c8f8c1f7) Thanks [@47PADO47](https://github.com/47PADO47)! - update to typescript@6
|
|
28
|
-
|
|
29
|
-
- [`ab3d36e`](https://github.com/padosoft/ts-support/commit/ab3d36e1cd5002925e63f59683fc66e7c8f8c1f7) Thanks [@47PADO47](https://github.com/47PADO47)! - update tsdown
|
|
30
|
-
|
|
31
|
-
### Patch Changes
|
|
32
|
-
|
|
33
|
-
- [`ab3d36e`](https://github.com/padosoft/ts-support/commit/ab3d36e1cd5002925e63f59683fc66e7c8f8c1f7) Thanks [@47PADO47](https://github.com/47PADO47)! - update deps
|
|
34
|
-
|
|
35
|
-
## 1.1.7
|
|
36
|
-
|
|
37
|
-
### Patch Changes
|
|
38
|
-
|
|
39
|
-
- [`e4f1ba8`](https://github.com/padosoft/ts-support/commit/e4f1ba8acf343670ebfd5251774af6c3c98a08ff) Thanks [@47PADO47](https://github.com/47PADO47)! - update deps
|
|
40
|
-
|
|
41
|
-
## 1.1.6
|
|
42
|
-
|
|
43
|
-
### Patch Changes
|
|
44
|
-
|
|
45
|
-
- [`873297d`](https://github.com/padosoft/ts-support/commit/873297d85c8088ec344d8380e88cbc069da489d6) Thanks [@47PADO47](https://github.com/47PADO47)! - fix types exports
|
|
46
|
-
|
|
47
|
-
## 1.1.5
|
|
48
|
-
|
|
49
|
-
### Patch Changes
|
|
50
|
-
|
|
51
|
-
- [`9dec4cc`](https://github.com/padosoft/ts-support/commit/9dec4cc15a9c3b5952da7ed399afea197eee51cf) Thanks [@47PADO47](https://github.com/47PADO47)! - update tsdown
|
|
52
|
-
|
|
53
|
-
## 1.1.4
|
|
54
|
-
|
|
55
|
-
### Patch Changes
|
|
56
|
-
|
|
57
|
-
- [`2acb73a`](https://github.com/padosoft/ts-support/commit/2acb73a9756df5e8b1c948c90859220af0a9e263) Thanks [@47PADO47](https://github.com/47PADO47)! - update tools config
|
|
58
|
-
|
|
59
|
-
## 1.1.3
|
|
60
|
-
|
|
61
|
-
### Patch Changes
|
|
62
|
-
|
|
63
|
-
- [`5a9c998`](https://github.com/padosoft/ts-support/commit/5a9c998e2bb601458bf3aed0e8e6ec5323f7dd2f) Thanks [@47PADO47](https://github.com/47PADO47)! - update exports
|
|
64
|
-
|
|
65
|
-
## 1.1.2
|
|
66
|
-
|
|
67
|
-
### Patch Changes
|
|
68
|
-
|
|
69
|
-
- [`40564ee`](https://github.com/padosoft/ts-support/commit/40564ee614b8b065cb07ebb862044739b2ec9ed4) Thanks [@47PADO47](https://github.com/47PADO47)! - fix defaultCustomExports location update
|
|
70
|
-
|
|
71
|
-
## 1.1.1
|
|
72
|
-
|
|
73
|
-
### Patch Changes
|
|
74
|
-
|
|
75
|
-
- [`2aedb22`](https://github.com/padosoft/ts-support/commit/2aedb22d494e362ef7aa2f973294cf6109da4684) Thanks [@47PADO47](https://github.com/47PADO47)! - add config package.json exports
|
|
76
|
-
|
|
77
|
-
- [`f51d05b`](https://github.com/padosoft/ts-support/commit/f51d05b30bb2335fbbddf043815238e34ea29361) Thanks [@47PADO47](https://github.com/47PADO47)! - fix package.json exports
|
|
78
|
-
|
|
79
|
-
## 1.1.0
|
|
80
|
-
|
|
81
|
-
### Minor Changes
|
|
82
|
-
|
|
83
|
-
- bdf8d88: Migrate compiler to tsdown
|
|
84
|
-
|
|
85
|
-
## 1.0.1
|
|
86
|
-
|
|
87
|
-
### Patch Changes
|
|
88
|
-
|
|
89
|
-
- ef3d6dc: Compile @padosoft/config .ts files
|
package/tsconfig.json
DELETED
package/tsdown.config.ts
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { readdir } from "node:fs/promises";
|
|
2
|
-
import path from "node:path";
|
|
3
|
-
import { fileURLToPath } from "node:url";
|
|
4
|
-
import type { UserConfigFn } from "tsdown";
|
|
5
|
-
import { tsdown } from "./src/compiler/tsdown.ts";
|
|
6
|
-
import { defaultCustomExports } from "./src/compiler/utils/index.ts";
|
|
7
|
-
|
|
8
|
-
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
9
|
-
|
|
10
|
-
const assetsDirs = ["typescript", "tools"];
|
|
11
|
-
const assetsExts = ["json"];
|
|
12
|
-
|
|
13
|
-
const config: UserConfigFn = tsdown({
|
|
14
|
-
entry: ["src/**/*.ts"],
|
|
15
|
-
deps: {
|
|
16
|
-
neverBundle: ["tsdown", "rolldown"],
|
|
17
|
-
},
|
|
18
|
-
exports: {
|
|
19
|
-
bin: { "padosoft-config": "./src/cli/index.ts" },
|
|
20
|
-
customExports: async (exports, context) => {
|
|
21
|
-
const assetExports: Record<string, string> = {
|
|
22
|
-
...exports,
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
for (const dir of assetsDirs) {
|
|
26
|
-
const absDir = path.join(__dirname, "src", dir);
|
|
27
|
-
const files = await readdir(absDir);
|
|
28
|
-
|
|
29
|
-
for (const file of files) {
|
|
30
|
-
const ext = path.extname(file).slice(1);
|
|
31
|
-
|
|
32
|
-
if (!assetsExts.includes(ext)) continue;
|
|
33
|
-
|
|
34
|
-
const base = path.basename(file, `.${ext}`);
|
|
35
|
-
const relPath = `./${dir}/${base}`;
|
|
36
|
-
const fullRelPath = `./src/${dir}/${file}`;
|
|
37
|
-
|
|
38
|
-
assetExports[relPath] = fullRelPath;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
return await defaultCustomExports(assetExports, context);
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
export default config;
|