@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 CHANGED
@@ -10,7 +10,7 @@
10
10
  "padosoft"
11
11
  ],
12
12
  "type": "module",
13
- "version": "1.3.0",
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
  },
@@ -1,29 +0,0 @@
1
- $ tsdown
2
- ℹ tsdown v0.22.3 powered by rolldown v1.1.1
3
- ℹ config file: /home/runner/work/ts-support/ts-support/packages/config/tsdown.config.ts
4
- ℹ entry: src/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
5
- ℹ tsconfig: tsconfig.json
6
- ℹ Build start
7
- ℹ Granting execute permission to dist/cli/index.mjs
8
- ℹ dist/cli/index.mjs 1.81 kB │ gzip: 0.82 kB
9
- ℹ dist/compiler/tsdown.mjs 0.33 kB │ gzip: 0.25 kB
10
- ℹ dist/compiler/plugins/hono-zod.mjs 0.24 kB │ gzip: 0.19 kB
11
- ℹ dist/compiler/utils/exports.mjs 0.08 kB │ gzip: 0.09 kB
12
- ℹ dist/compiler/utils/index.mjs 0.08 kB │ gzip: 0.09 kB
13
- ℹ dist/types/css.mjs 0.01 kB │ gzip: 0.03 kB
14
- ℹ dist/types/expo-router.mjs 0.01 kB │ gzip: 0.03 kB
15
- ℹ dist/types/i18next.mjs 0.01 kB │ gzip: 0.03 kB
16
- ℹ dist/types/nativewind.mjs 0.01 kB │ gzip: 0.03 kB
17
- ℹ dist/exports-Cp7dWSTV.mjs 0.42 kB │ gzip: 0.26 kB
18
- ℹ dist/types/i18next.d.mts 1.29 kB │ gzip: 0.62 kB
19
- ℹ dist/types/expo-router.d.mts 0.84 kB │ gzip: 0.32 kB
20
- ℹ dist/types/css.d.mts 0.23 kB │ gzip: 0.15 kB
21
- ℹ dist/compiler/plugins/hono-zod.d.mts 0.20 kB │ gzip: 0.15 kB
22
- ℹ dist/compiler/tsdown.d.mts 0.19 kB │ gzip: 0.15 kB
23
- ℹ dist/compiler/utils/exports.d.mts 0.10 kB │ gzip: 0.09 kB
24
- ℹ dist/compiler/utils/index.d.mts 0.10 kB │ gzip: 0.09 kB
25
- ℹ dist/cli/index.d.mts 0.01 kB │ gzip: 0.03 kB
26
- ℹ dist/types/nativewind.d.mts 0.01 kB │ gzip: 0.03 kB
27
- ℹ dist/exports-FMOinUbl.d.mts 0.25 kB │ gzip: 0.19 kB
28
- ℹ 20 files, total: 6.24 kB
29
- ✔ Build complete in 134ms
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
@@ -1,9 +0,0 @@
1
- {
2
- "$schema": "https://json.schemastore.org/tsconfig",
3
- "extends": "./src/typescript/compiler",
4
- "compilerOptions": {
5
- "moduleResolution": "nodenext",
6
- "module": "nodenext"
7
- },
8
- "exclude": ["dist"]
9
- }
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;