@rstackjs/load-config 0.0.0 → 0.1.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.
Files changed (2) hide show
  1. package/dist/types.d.ts +3 -0
  2. package/package.json +15 -13
package/dist/types.d.ts CHANGED
@@ -20,6 +20,9 @@ export type LoadConfigOptions<Params extends unknown[] = []> = {
20
20
  configFileNames?: string[];
21
21
  /**
22
22
  * Specify the config loader, can be `auto`, `jiti` or `native`.
23
+ * - 'auto': Use native Node.js loader first, fallback to jiti if failed
24
+ * - 'jiti': Use `jiti` as loader, which supports TypeScript and ESM out of the box
25
+ * - 'native': Use native Node.js loader, requires TypeScript support in Node.js >= 22.6
23
26
  * @default 'auto'
24
27
  */
25
28
  loader?: ConfigLoader;
package/package.json CHANGED
@@ -1,7 +1,10 @@
1
1
  {
2
2
  "name": "@rstackjs/load-config",
3
- "version": "0.0.0",
4
- "repository": "https://github.com/rstackjs/load-config",
3
+ "version": "0.1.1",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "https://github.com/rstackjs/load-config"
7
+ },
5
8
  "license": "MIT",
6
9
  "type": "module",
7
10
  "exports": {
@@ -14,21 +17,13 @@
14
17
  "files": [
15
18
  "dist"
16
19
  ],
17
- "scripts": {
18
- "build": "rs lib",
19
- "dev": "rs lib -w",
20
- "lint": "rs lint && prettier -c .",
21
- "lint:write": "rs lint --fix && prettier -w .",
22
- "test": "rs test",
23
- "bump": "pnpx bumpp"
24
- },
25
20
  "devDependencies": {
26
21
  "@types/node": "^24.13.2",
27
22
  "fresh-import": "^0.2.1",
28
23
  "jiti": "^2.7.0",
29
24
  "prettier": "^3.9.4",
30
25
  "rstack": "0.0.2",
31
- "typescript": "^6.0.3"
26
+ "typescript": "^7.0.2"
32
27
  },
33
28
  "peerDependencies": {
34
29
  "jiti": "^2.0.0"
@@ -38,9 +33,16 @@
38
33
  "optional": true
39
34
  }
40
35
  },
41
- "packageManager": "pnpm@11.9.0",
42
36
  "publishConfig": {
43
37
  "access": "public",
44
38
  "registry": "https://registry.npmjs.org/"
39
+ },
40
+ "scripts": {
41
+ "build": "rs lib",
42
+ "dev": "rs lib -w",
43
+ "lint": "rs lint && prettier -c .",
44
+ "lint:write": "rs lint --fix && prettier -w .",
45
+ "test": "rs test",
46
+ "bump": "pnpx bumpp"
45
47
  }
46
- }
48
+ }