silgi 0.9.31 → 0.9.33

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.
@@ -1,4 +1,4 @@
1
- const version = "0.9.31";
1
+ const version = "0.9.33";
2
2
  const peerDependencies = {
3
3
  "@fastify/deepmerge": "^2.0.2",
4
4
  "@nuxt/kit": "^3.15.3",
@@ -13,9 +13,9 @@ const peerDependencies = {
13
13
  const dependencies = {
14
14
  "@clack/prompts": "^0.10.0",
15
15
  "@fastify/deepmerge": "^2.0.2",
16
- "@oxc-parser/wasm": "^0.49.0",
16
+ "@oxc-parser/wasm": "^0.53.0",
17
17
  "@standard-schema/spec": "^1.0.0",
18
- c12: "^2.0.4",
18
+ c12: "^3.0.2",
19
19
  chokidar: "^4.0.3",
20
20
  citty: "^0.1.6",
21
21
  compatx: "^0.1.8",
@@ -33,10 +33,10 @@ const dependencies = {
33
33
  knitwork: "^1.2.0",
34
34
  mlly: "^1.7.4",
35
35
  ofetch: "^1.4.1",
36
- ohash: "^1.1.4",
36
+ ohash: "^2.0.8",
37
37
  pathe: "^2.0.3",
38
38
  picocolors: "^1.1.1",
39
- "pkg-types": "^1.3.1",
39
+ "pkg-types": "^2.0.1",
40
40
  scule: "^1.3.0",
41
41
  semver: "^7.7.1",
42
42
  "std-env": "^3.8.0",
@@ -44,20 +44,20 @@ const dependencies = {
44
44
  unctx: "^2.4.1",
45
45
  unimport: "^4.1.2",
46
46
  unstorage: "^1.15.0",
47
- untyped: "^1.5.2"
47
+ untyped: "^2.0.0"
48
48
  };
49
49
  const devDependencies = {
50
50
  "@antfu/eslint-config": "^4.3.0",
51
51
  "@nuxt/kit": "^3.15.4",
52
52
  "@nuxt/schema": "^3.15.4",
53
- "@types/node": "^22.13.5",
53
+ "@types/node": "^22.13.8",
54
54
  "@types/semver": "^7.5.8",
55
55
  "@vitest/coverage-v8": "3.0.5",
56
56
  eslint: "^9.21.0",
57
57
  h3: "^1.15.1",
58
58
  nitropack: "^2.10.4",
59
59
  nuxt: "^3.15.4",
60
- typescript: "^5.7.3",
60
+ typescript: "^5.8.2",
61
61
  unbuild: "^3.5.0",
62
62
  vitest: "^3.0.7",
63
63
  vue: "^3.5.13",
@@ -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';
@@ -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.modulesDir }).catch(() => null);
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 = [];
@@ -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$1(template.src)}${srcPath.ext}`;
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) {
@@ -1,4 +1,4 @@
1
- const version = "0.9.31";
1
+ const version = "0.9.33";
2
2
  const peerDependencies = {
3
3
  "@fastify/deepmerge": "^2.0.2",
4
4
  "@nuxt/kit": "^3.15.3",
@@ -13,9 +13,9 @@ const peerDependencies = {
13
13
  const dependencies = {
14
14
  "@clack/prompts": "^0.10.0",
15
15
  "@fastify/deepmerge": "^2.0.2",
16
- "@oxc-parser/wasm": "^0.49.0",
16
+ "@oxc-parser/wasm": "^0.53.0",
17
17
  "@standard-schema/spec": "^1.0.0",
18
- c12: "^2.0.4",
18
+ c12: "^3.0.2",
19
19
  chokidar: "^4.0.3",
20
20
  citty: "^0.1.6",
21
21
  compatx: "^0.1.8",
@@ -33,10 +33,10 @@ const dependencies = {
33
33
  knitwork: "^1.2.0",
34
34
  mlly: "^1.7.4",
35
35
  ofetch: "^1.4.1",
36
- ohash: "^1.1.4",
36
+ ohash: "^2.0.8",
37
37
  pathe: "^2.0.3",
38
38
  picocolors: "^1.1.1",
39
- "pkg-types": "^1.3.1",
39
+ "pkg-types": "^2.0.1",
40
40
  scule: "^1.3.0",
41
41
  semver: "^7.7.1",
42
42
  "std-env": "^3.8.0",
@@ -44,20 +44,20 @@ const dependencies = {
44
44
  unctx: "^2.4.1",
45
45
  unimport: "^4.1.2",
46
46
  unstorage: "^1.15.0",
47
- untyped: "^1.5.2"
47
+ untyped: "^2.0.0"
48
48
  };
49
49
  const devDependencies = {
50
50
  "@antfu/eslint-config": "^4.3.0",
51
51
  "@nuxt/kit": "^3.15.4",
52
52
  "@nuxt/schema": "^3.15.4",
53
- "@types/node": "^22.13.5",
53
+ "@types/node": "^22.13.8",
54
54
  "@types/semver": "^7.5.8",
55
55
  "@vitest/coverage-v8": "3.0.5",
56
56
  eslint: "^9.21.0",
57
57
  h3: "^1.15.1",
58
58
  nitropack: "^2.10.4",
59
59
  nuxt: "^3.15.4",
60
- typescript: "^5.7.3",
60
+ typescript: "^5.8.2",
61
61
  unbuild: "^3.5.0",
62
62
  vitest: "^3.0.7",
63
63
  vue: "^3.5.13",
@@ -1,4 +1,4 @@
1
- const version = "0.9.31";
1
+ const version = "0.9.33";
2
2
  const peerDependencies = {
3
3
  "@fastify/deepmerge": "^2.0.2",
4
4
  "@nuxt/kit": "^3.15.3",
@@ -13,9 +13,9 @@ const peerDependencies = {
13
13
  const dependencies = {
14
14
  "@clack/prompts": "^0.10.0",
15
15
  "@fastify/deepmerge": "^2.0.2",
16
- "@oxc-parser/wasm": "^0.49.0",
16
+ "@oxc-parser/wasm": "^0.53.0",
17
17
  "@standard-schema/spec": "^1.0.0",
18
- c12: "^2.0.4",
18
+ c12: "^3.0.2",
19
19
  chokidar: "^4.0.3",
20
20
  citty: "^0.1.6",
21
21
  compatx: "^0.1.8",
@@ -33,10 +33,10 @@ const dependencies = {
33
33
  knitwork: "^1.2.0",
34
34
  mlly: "^1.7.4",
35
35
  ofetch: "^1.4.1",
36
- ohash: "^1.1.4",
36
+ ohash: "^2.0.8",
37
37
  pathe: "^2.0.3",
38
38
  picocolors: "^1.1.1",
39
- "pkg-types": "^1.3.1",
39
+ "pkg-types": "^2.0.1",
40
40
  scule: "^1.3.0",
41
41
  semver: "^7.7.1",
42
42
  "std-env": "^3.8.0",
@@ -44,20 +44,20 @@ const dependencies = {
44
44
  unctx: "^2.4.1",
45
45
  unimport: "^4.1.2",
46
46
  unstorage: "^1.15.0",
47
- untyped: "^1.5.2"
47
+ untyped: "^2.0.0"
48
48
  };
49
49
  const devDependencies = {
50
50
  "@antfu/eslint-config": "^4.3.0",
51
51
  "@nuxt/kit": "^3.15.4",
52
52
  "@nuxt/schema": "^3.15.4",
53
- "@types/node": "^22.13.5",
53
+ "@types/node": "^22.13.8",
54
54
  "@types/semver": "^7.5.8",
55
55
  "@vitest/coverage-v8": "3.0.5",
56
56
  eslint: "^9.21.0",
57
57
  h3: "^1.15.1",
58
58
  nitropack: "^2.10.4",
59
59
  nuxt: "^3.15.4",
60
- typescript: "^5.7.3",
60
+ typescript: "^5.8.2",
61
61
  unbuild: "^3.5.0",
62
62
  vitest: "^3.0.7",
63
63
  vue: "^3.5.13",
@@ -1,2 +1,2 @@
1
- declare const _default: readonly [any, any, any, any, any];
1
+ declare const _default: readonly [any, any, any, any];
2
2
  export default _default;
@@ -1,12 +1,10 @@
1
1
  import _h3 from "./h3/preset.mjs";
2
2
  import _nitro from "./nitro/preset.mjs";
3
- import _npmPackage from "./npmPackage/preset.mjs";
4
3
  import _npmpackage from "./npmpackage/preset.mjs";
5
4
  import _nuxt from "./nuxt/preset.mjs";
6
5
  export default [
7
6
  ..._h3,
8
7
  ..._nitro,
9
- ..._npmPackage,
10
8
  ..._npmpackage,
11
9
  ..._nuxt
12
10
  ];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.9.31",
4
+ "version": "0.9.33",
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.49.0",
115
+ "@oxc-parser/wasm": "^0.53.0",
116
116
  "@standard-schema/spec": "^1.0.0",
117
- "c12": "^2.0.4",
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": "^1.1.4",
135
+ "ohash": "^2.0.8",
136
136
  "pathe": "^2.0.3",
137
137
  "picocolors": "^1.1.1",
138
- "pkg-types": "^1.3.1",
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": "^1.5.2"
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.5",
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.7.3",
159
+ "typescript": "^5.8.2",
160
160
  "unbuild": "^3.5.0",
161
161
  "vitest": "^3.0.7",
162
162
  "vue": "^3.5.13",
@@ -1,2 +0,0 @@
1
- declare const _default: readonly [any];
2
- export default _default;
@@ -1,20 +0,0 @@
1
- import { defineSilgiPreset } from "silgi/kit";
2
- const npmPackage = defineSilgiPreset(
3
- {
4
- output: {
5
- dir: "{{ rootDir }}/.output",
6
- publicDir: "{{ output.dir }}/public"
7
- },
8
- serverDir: "{{ rootDir }}/src",
9
- silgi: {
10
- serverDir: "{{ serverDir }}/silgi"
11
- },
12
- modules: ["./src"]
13
- },
14
- {
15
- name: "npm-package",
16
- compatibilityDate: "2025-02-04",
17
- url: import.meta.url
18
- }
19
- );
20
- export default [npmPackage];