silgi 0.9.32 → 0.9.34
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/_chunks/index.mjs +50 -50
- package/dist/cli/prepare.mjs +1 -2
- package/dist/cli/types.mjs +1 -1
- package/dist/kit/index.mjs +2 -1
- package/dist/meta/index.d.mts +50 -50
- package/dist/meta/index.d.ts +50 -50
- package/package.json +8 -8
package/dist/_chunks/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const version = "0.9.
|
|
1
|
+
const version = "0.9.34";
|
|
2
2
|
const peerDependencies = {
|
|
3
3
|
"@fastify/deepmerge": "^2.0.2",
|
|
4
4
|
"@nuxt/kit": "^3.15.3",
|
|
@@ -11,57 +11,57 @@ const peerDependencies = {
|
|
|
11
11
|
zod: "^3.24.1"
|
|
12
12
|
};
|
|
13
13
|
const dependencies = {
|
|
14
|
-
"@clack/prompts": "
|
|
15
|
-
"@fastify/deepmerge": "
|
|
16
|
-
"@oxc-parser/wasm": "
|
|
17
|
-
"@standard-schema/spec": "
|
|
18
|
-
c12: "
|
|
19
|
-
chokidar: "
|
|
20
|
-
citty: "
|
|
21
|
-
compatx: "
|
|
22
|
-
consola: "
|
|
23
|
-
defu: "
|
|
24
|
-
destr: "
|
|
25
|
-
"dev-jiti": "
|
|
26
|
-
"dot-prop": "
|
|
27
|
-
dotenv: "
|
|
28
|
-
"escape-string-regexp": "
|
|
29
|
-
globby: "
|
|
30
|
-
hookable: "
|
|
31
|
-
ignore: "
|
|
32
|
-
klona: "
|
|
33
|
-
knitwork: "
|
|
34
|
-
mlly: "
|
|
35
|
-
ofetch: "
|
|
36
|
-
ohash: "
|
|
37
|
-
pathe: "
|
|
38
|
-
picocolors: "
|
|
39
|
-
"pkg-types": "
|
|
40
|
-
scule: "
|
|
41
|
-
semver: "
|
|
42
|
-
"std-env": "
|
|
43
|
-
ufo: "
|
|
44
|
-
unctx: "
|
|
45
|
-
unimport: "
|
|
46
|
-
unstorage: "
|
|
47
|
-
untyped: "
|
|
14
|
+
"@clack/prompts": "catalog:",
|
|
15
|
+
"@fastify/deepmerge": "catalog:",
|
|
16
|
+
"@oxc-parser/wasm": "catalog:",
|
|
17
|
+
"@standard-schema/spec": "catalog:",
|
|
18
|
+
c12: "catalog:",
|
|
19
|
+
chokidar: "catalog:",
|
|
20
|
+
citty: "catalog:",
|
|
21
|
+
compatx: "catalog:",
|
|
22
|
+
consola: "catalog:",
|
|
23
|
+
defu: "catalog:",
|
|
24
|
+
destr: "catalog:",
|
|
25
|
+
"dev-jiti": "catalog:",
|
|
26
|
+
"dot-prop": "catalog:",
|
|
27
|
+
dotenv: "catalog:",
|
|
28
|
+
"escape-string-regexp": "catalog:",
|
|
29
|
+
globby: "catalog:",
|
|
30
|
+
hookable: "catalog:",
|
|
31
|
+
ignore: "catalog:",
|
|
32
|
+
klona: "catalog:",
|
|
33
|
+
knitwork: "catalog:",
|
|
34
|
+
mlly: "catalog:",
|
|
35
|
+
ofetch: "catalog:",
|
|
36
|
+
ohash: "catalog:",
|
|
37
|
+
pathe: "catalog:",
|
|
38
|
+
picocolors: "catalog:",
|
|
39
|
+
"pkg-types": "catalog:",
|
|
40
|
+
scule: "catalog:",
|
|
41
|
+
semver: "catalog:",
|
|
42
|
+
"std-env": "catalog:",
|
|
43
|
+
ufo: "catalog:",
|
|
44
|
+
unctx: "catalog:",
|
|
45
|
+
unimport: "catalog:",
|
|
46
|
+
unstorage: "catalog:",
|
|
47
|
+
untyped: "catalog:"
|
|
48
48
|
};
|
|
49
49
|
const devDependencies = {
|
|
50
|
-
"@antfu/eslint-config": "
|
|
51
|
-
"@nuxt/kit": "
|
|
52
|
-
"@nuxt/schema": "
|
|
53
|
-
"@types/node": "
|
|
54
|
-
"@types/semver": "
|
|
55
|
-
"@vitest/coverage-v8": "
|
|
56
|
-
eslint: "
|
|
57
|
-
h3: "
|
|
58
|
-
nitropack: "
|
|
59
|
-
nuxt: "
|
|
60
|
-
typescript: "
|
|
61
|
-
unbuild: "
|
|
62
|
-
vitest: "
|
|
63
|
-
vue: "
|
|
64
|
-
zod: "
|
|
50
|
+
"@antfu/eslint-config": "catalog:",
|
|
51
|
+
"@nuxt/kit": "catalog:",
|
|
52
|
+
"@nuxt/schema": "catalog:",
|
|
53
|
+
"@types/node": "catalog:",
|
|
54
|
+
"@types/semver": "catalog:",
|
|
55
|
+
"@vitest/coverage-v8": "catalog:",
|
|
56
|
+
eslint: "catalog:",
|
|
57
|
+
h3: "catalog:",
|
|
58
|
+
nitropack: "catalog:",
|
|
59
|
+
nuxt: "catalog:",
|
|
60
|
+
typescript: "catalog:",
|
|
61
|
+
unbuild: "catalog:",
|
|
62
|
+
vitest: "catalog:",
|
|
63
|
+
vue: "catalog:",
|
|
64
|
+
zod: "catalog:"
|
|
65
65
|
};
|
|
66
66
|
const packageJson = {
|
|
67
67
|
version: version};
|
package/dist/cli/prepare.mjs
CHANGED
|
@@ -6,12 +6,11 @@ import { promises, existsSync, readFileSync, writeFileSync, mkdirSync } from 'no
|
|
|
6
6
|
import { readdir } from 'node:fs/promises';
|
|
7
7
|
import { resolvePath, parseNodeModulePath, lookupNodeModuleSubpath, resolveModuleExportNames, resolve as resolve$1 } from 'mlly';
|
|
8
8
|
import { resolveAlias } from 'pathe/utils';
|
|
9
|
-
import { relativeWithDot, isDirectory, writeFile, resolveAlias as resolveAlias$1, resolvePath as resolvePath$1, normalizeTemplate, useLogger, addTemplate, applyEnv } from 'silgi/kit';
|
|
9
|
+
import { relativeWithDot, hash, isDirectory, writeFile, resolveAlias as resolveAlias$1, resolvePath as resolvePath$1, normalizeTemplate, useLogger, addTemplate, applyEnv } from 'silgi/kit';
|
|
10
10
|
import { runtimeDir } from 'silgi/runtime/meta';
|
|
11
11
|
import { toExports, scanExports, createUnimport } from 'unimport';
|
|
12
12
|
import { createJiti } from 'dev-jiti';
|
|
13
13
|
import { readPackageJSON } from 'pkg-types';
|
|
14
|
-
import { hash } from 'ohash';
|
|
15
14
|
import { s as silgiGenerateType } from './types.mjs';
|
|
16
15
|
import { c as commonArgs } from './common.mjs';
|
|
17
16
|
import { createHooks, createDebugger } from 'hookable';
|
package/dist/cli/types.mjs
CHANGED
|
@@ -161,7 +161,7 @@ async function silgiGenerateType(silgi) {
|
|
|
161
161
|
if (typeof id !== "string") {
|
|
162
162
|
return;
|
|
163
163
|
}
|
|
164
|
-
const pkg = await readPackageJSON(id, { url: silgi.options.
|
|
164
|
+
const pkg = await readPackageJSON(id, { url: silgi.options.rootDir }).catch(() => null);
|
|
165
165
|
references.push({ types: pkg?.name || id });
|
|
166
166
|
}));
|
|
167
167
|
const declarations = [];
|
package/dist/kit/index.mjs
CHANGED
|
@@ -14,6 +14,7 @@ import { fileURLToPath } from 'node:url';
|
|
|
14
14
|
import { resolveAlias as resolveAlias$1 } from 'pathe/utils';
|
|
15
15
|
import destr from 'destr';
|
|
16
16
|
import { klona } from 'klona';
|
|
17
|
+
import { hash as hash$2 } from 'silgi/kit';
|
|
17
18
|
import 'semver/functions/satisfies.js';
|
|
18
19
|
import 'silgi/meta';
|
|
19
20
|
|
|
@@ -383,7 +384,7 @@ function normalizeTemplate(template, buildDir) {
|
|
|
383
384
|
}
|
|
384
385
|
if (!template.filename) {
|
|
385
386
|
const srcPath = parse(template.src);
|
|
386
|
-
template.filename = template.fileName || `${basename(srcPath.dir)}.${srcPath.name}.${hash$
|
|
387
|
+
template.filename = template.fileName || `${basename(srcPath.dir)}.${srcPath.name}.${hash$2(template.src)}${srcPath.ext}`;
|
|
387
388
|
}
|
|
388
389
|
}
|
|
389
390
|
if (!template.src && !template.getContents) {
|
package/dist/meta/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const version = "0.9.
|
|
1
|
+
const version = "0.9.34";
|
|
2
2
|
const peerDependencies = {
|
|
3
3
|
"@fastify/deepmerge": "^2.0.2",
|
|
4
4
|
"@nuxt/kit": "^3.15.3",
|
|
@@ -11,57 +11,57 @@ const peerDependencies = {
|
|
|
11
11
|
zod: "^3.24.1"
|
|
12
12
|
};
|
|
13
13
|
const dependencies = {
|
|
14
|
-
"@clack/prompts": "
|
|
15
|
-
"@fastify/deepmerge": "
|
|
16
|
-
"@oxc-parser/wasm": "
|
|
17
|
-
"@standard-schema/spec": "
|
|
18
|
-
c12: "
|
|
19
|
-
chokidar: "
|
|
20
|
-
citty: "
|
|
21
|
-
compatx: "
|
|
22
|
-
consola: "
|
|
23
|
-
defu: "
|
|
24
|
-
destr: "
|
|
25
|
-
"dev-jiti": "
|
|
26
|
-
"dot-prop": "
|
|
27
|
-
dotenv: "
|
|
28
|
-
"escape-string-regexp": "
|
|
29
|
-
globby: "
|
|
30
|
-
hookable: "
|
|
31
|
-
ignore: "
|
|
32
|
-
klona: "
|
|
33
|
-
knitwork: "
|
|
34
|
-
mlly: "
|
|
35
|
-
ofetch: "
|
|
36
|
-
ohash: "
|
|
37
|
-
pathe: "
|
|
38
|
-
picocolors: "
|
|
39
|
-
"pkg-types": "
|
|
40
|
-
scule: "
|
|
41
|
-
semver: "
|
|
42
|
-
"std-env": "
|
|
43
|
-
ufo: "
|
|
44
|
-
unctx: "
|
|
45
|
-
unimport: "
|
|
46
|
-
unstorage: "
|
|
47
|
-
untyped: "
|
|
14
|
+
"@clack/prompts": "catalog:",
|
|
15
|
+
"@fastify/deepmerge": "catalog:",
|
|
16
|
+
"@oxc-parser/wasm": "catalog:",
|
|
17
|
+
"@standard-schema/spec": "catalog:",
|
|
18
|
+
c12: "catalog:",
|
|
19
|
+
chokidar: "catalog:",
|
|
20
|
+
citty: "catalog:",
|
|
21
|
+
compatx: "catalog:",
|
|
22
|
+
consola: "catalog:",
|
|
23
|
+
defu: "catalog:",
|
|
24
|
+
destr: "catalog:",
|
|
25
|
+
"dev-jiti": "catalog:",
|
|
26
|
+
"dot-prop": "catalog:",
|
|
27
|
+
dotenv: "catalog:",
|
|
28
|
+
"escape-string-regexp": "catalog:",
|
|
29
|
+
globby: "catalog:",
|
|
30
|
+
hookable: "catalog:",
|
|
31
|
+
ignore: "catalog:",
|
|
32
|
+
klona: "catalog:",
|
|
33
|
+
knitwork: "catalog:",
|
|
34
|
+
mlly: "catalog:",
|
|
35
|
+
ofetch: "catalog:",
|
|
36
|
+
ohash: "catalog:",
|
|
37
|
+
pathe: "catalog:",
|
|
38
|
+
picocolors: "catalog:",
|
|
39
|
+
"pkg-types": "catalog:",
|
|
40
|
+
scule: "catalog:",
|
|
41
|
+
semver: "catalog:",
|
|
42
|
+
"std-env": "catalog:",
|
|
43
|
+
ufo: "catalog:",
|
|
44
|
+
unctx: "catalog:",
|
|
45
|
+
unimport: "catalog:",
|
|
46
|
+
unstorage: "catalog:",
|
|
47
|
+
untyped: "catalog:"
|
|
48
48
|
};
|
|
49
49
|
const devDependencies = {
|
|
50
|
-
"@antfu/eslint-config": "
|
|
51
|
-
"@nuxt/kit": "
|
|
52
|
-
"@nuxt/schema": "
|
|
53
|
-
"@types/node": "
|
|
54
|
-
"@types/semver": "
|
|
55
|
-
"@vitest/coverage-v8": "
|
|
56
|
-
eslint: "
|
|
57
|
-
h3: "
|
|
58
|
-
nitropack: "
|
|
59
|
-
nuxt: "
|
|
60
|
-
typescript: "
|
|
61
|
-
unbuild: "
|
|
62
|
-
vitest: "
|
|
63
|
-
vue: "
|
|
64
|
-
zod: "
|
|
50
|
+
"@antfu/eslint-config": "catalog:",
|
|
51
|
+
"@nuxt/kit": "catalog:",
|
|
52
|
+
"@nuxt/schema": "catalog:",
|
|
53
|
+
"@types/node": "catalog:",
|
|
54
|
+
"@types/semver": "catalog:",
|
|
55
|
+
"@vitest/coverage-v8": "catalog:",
|
|
56
|
+
eslint: "catalog:",
|
|
57
|
+
h3: "catalog:",
|
|
58
|
+
nitropack: "catalog:",
|
|
59
|
+
nuxt: "catalog:",
|
|
60
|
+
typescript: "catalog:",
|
|
61
|
+
unbuild: "catalog:",
|
|
62
|
+
vitest: "catalog:",
|
|
63
|
+
vue: "catalog:",
|
|
64
|
+
zod: "catalog:"
|
|
65
65
|
};
|
|
66
66
|
|
|
67
67
|
export { dependencies, devDependencies, peerDependencies, version };
|
package/dist/meta/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const version = "0.9.
|
|
1
|
+
const version = "0.9.34";
|
|
2
2
|
const peerDependencies = {
|
|
3
3
|
"@fastify/deepmerge": "^2.0.2",
|
|
4
4
|
"@nuxt/kit": "^3.15.3",
|
|
@@ -11,57 +11,57 @@ const peerDependencies = {
|
|
|
11
11
|
zod: "^3.24.1"
|
|
12
12
|
};
|
|
13
13
|
const dependencies = {
|
|
14
|
-
"@clack/prompts": "
|
|
15
|
-
"@fastify/deepmerge": "
|
|
16
|
-
"@oxc-parser/wasm": "
|
|
17
|
-
"@standard-schema/spec": "
|
|
18
|
-
c12: "
|
|
19
|
-
chokidar: "
|
|
20
|
-
citty: "
|
|
21
|
-
compatx: "
|
|
22
|
-
consola: "
|
|
23
|
-
defu: "
|
|
24
|
-
destr: "
|
|
25
|
-
"dev-jiti": "
|
|
26
|
-
"dot-prop": "
|
|
27
|
-
dotenv: "
|
|
28
|
-
"escape-string-regexp": "
|
|
29
|
-
globby: "
|
|
30
|
-
hookable: "
|
|
31
|
-
ignore: "
|
|
32
|
-
klona: "
|
|
33
|
-
knitwork: "
|
|
34
|
-
mlly: "
|
|
35
|
-
ofetch: "
|
|
36
|
-
ohash: "
|
|
37
|
-
pathe: "
|
|
38
|
-
picocolors: "
|
|
39
|
-
"pkg-types": "
|
|
40
|
-
scule: "
|
|
41
|
-
semver: "
|
|
42
|
-
"std-env": "
|
|
43
|
-
ufo: "
|
|
44
|
-
unctx: "
|
|
45
|
-
unimport: "
|
|
46
|
-
unstorage: "
|
|
47
|
-
untyped: "
|
|
14
|
+
"@clack/prompts": "catalog:",
|
|
15
|
+
"@fastify/deepmerge": "catalog:",
|
|
16
|
+
"@oxc-parser/wasm": "catalog:",
|
|
17
|
+
"@standard-schema/spec": "catalog:",
|
|
18
|
+
c12: "catalog:",
|
|
19
|
+
chokidar: "catalog:",
|
|
20
|
+
citty: "catalog:",
|
|
21
|
+
compatx: "catalog:",
|
|
22
|
+
consola: "catalog:",
|
|
23
|
+
defu: "catalog:",
|
|
24
|
+
destr: "catalog:",
|
|
25
|
+
"dev-jiti": "catalog:",
|
|
26
|
+
"dot-prop": "catalog:",
|
|
27
|
+
dotenv: "catalog:",
|
|
28
|
+
"escape-string-regexp": "catalog:",
|
|
29
|
+
globby: "catalog:",
|
|
30
|
+
hookable: "catalog:",
|
|
31
|
+
ignore: "catalog:",
|
|
32
|
+
klona: "catalog:",
|
|
33
|
+
knitwork: "catalog:",
|
|
34
|
+
mlly: "catalog:",
|
|
35
|
+
ofetch: "catalog:",
|
|
36
|
+
ohash: "catalog:",
|
|
37
|
+
pathe: "catalog:",
|
|
38
|
+
picocolors: "catalog:",
|
|
39
|
+
"pkg-types": "catalog:",
|
|
40
|
+
scule: "catalog:",
|
|
41
|
+
semver: "catalog:",
|
|
42
|
+
"std-env": "catalog:",
|
|
43
|
+
ufo: "catalog:",
|
|
44
|
+
unctx: "catalog:",
|
|
45
|
+
unimport: "catalog:",
|
|
46
|
+
unstorage: "catalog:",
|
|
47
|
+
untyped: "catalog:"
|
|
48
48
|
};
|
|
49
49
|
const devDependencies = {
|
|
50
|
-
"@antfu/eslint-config": "
|
|
51
|
-
"@nuxt/kit": "
|
|
52
|
-
"@nuxt/schema": "
|
|
53
|
-
"@types/node": "
|
|
54
|
-
"@types/semver": "
|
|
55
|
-
"@vitest/coverage-v8": "
|
|
56
|
-
eslint: "
|
|
57
|
-
h3: "
|
|
58
|
-
nitropack: "
|
|
59
|
-
nuxt: "
|
|
60
|
-
typescript: "
|
|
61
|
-
unbuild: "
|
|
62
|
-
vitest: "
|
|
63
|
-
vue: "
|
|
64
|
-
zod: "
|
|
50
|
+
"@antfu/eslint-config": "catalog:",
|
|
51
|
+
"@nuxt/kit": "catalog:",
|
|
52
|
+
"@nuxt/schema": "catalog:",
|
|
53
|
+
"@types/node": "catalog:",
|
|
54
|
+
"@types/semver": "catalog:",
|
|
55
|
+
"@vitest/coverage-v8": "catalog:",
|
|
56
|
+
eslint: "catalog:",
|
|
57
|
+
h3: "catalog:",
|
|
58
|
+
nitropack: "catalog:",
|
|
59
|
+
nuxt: "catalog:",
|
|
60
|
+
typescript: "catalog:",
|
|
61
|
+
unbuild: "catalog:",
|
|
62
|
+
vitest: "catalog:",
|
|
63
|
+
vue: "catalog:",
|
|
64
|
+
zod: "catalog:"
|
|
65
65
|
};
|
|
66
66
|
|
|
67
67
|
export { dependencies, devDependencies, peerDependencies, version };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "silgi",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.34",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"exports": {
|
|
@@ -112,9 +112,9 @@
|
|
|
112
112
|
"dependencies": {
|
|
113
113
|
"@clack/prompts": "^0.10.0",
|
|
114
114
|
"@fastify/deepmerge": "^2.0.2",
|
|
115
|
-
"@oxc-parser/wasm": "^0.
|
|
115
|
+
"@oxc-parser/wasm": "^0.53.0",
|
|
116
116
|
"@standard-schema/spec": "^1.0.0",
|
|
117
|
-
"c12": "^
|
|
117
|
+
"c12": "^3.0.2",
|
|
118
118
|
"chokidar": "^4.0.3",
|
|
119
119
|
"citty": "^0.1.6",
|
|
120
120
|
"compatx": "^0.1.8",
|
|
@@ -132,10 +132,10 @@
|
|
|
132
132
|
"knitwork": "^1.2.0",
|
|
133
133
|
"mlly": "^1.7.4",
|
|
134
134
|
"ofetch": "^1.4.1",
|
|
135
|
-
"ohash": "^
|
|
135
|
+
"ohash": "^2.0.8",
|
|
136
136
|
"pathe": "^2.0.3",
|
|
137
137
|
"picocolors": "^1.1.1",
|
|
138
|
-
"pkg-types": "^
|
|
138
|
+
"pkg-types": "^2.0.1",
|
|
139
139
|
"scule": "^1.3.0",
|
|
140
140
|
"semver": "^7.7.1",
|
|
141
141
|
"std-env": "^3.8.0",
|
|
@@ -143,20 +143,20 @@
|
|
|
143
143
|
"unctx": "^2.4.1",
|
|
144
144
|
"unimport": "^4.1.2",
|
|
145
145
|
"unstorage": "^1.15.0",
|
|
146
|
-
"untyped": "^
|
|
146
|
+
"untyped": "^2.0.0"
|
|
147
147
|
},
|
|
148
148
|
"devDependencies": {
|
|
149
149
|
"@antfu/eslint-config": "^4.3.0",
|
|
150
150
|
"@nuxt/kit": "^3.15.4",
|
|
151
151
|
"@nuxt/schema": "^3.15.4",
|
|
152
|
-
"@types/node": "^22.13.
|
|
152
|
+
"@types/node": "^22.13.8",
|
|
153
153
|
"@types/semver": "^7.5.8",
|
|
154
154
|
"@vitest/coverage-v8": "3.0.5",
|
|
155
155
|
"eslint": "^9.21.0",
|
|
156
156
|
"h3": "^1.15.1",
|
|
157
157
|
"nitropack": "^2.10.4",
|
|
158
158
|
"nuxt": "^3.15.4",
|
|
159
|
-
"typescript": "^5.
|
|
159
|
+
"typescript": "^5.8.2",
|
|
160
160
|
"unbuild": "^3.5.0",
|
|
161
161
|
"vitest": "^3.0.7",
|
|
162
162
|
"vue": "^3.5.13",
|