@vercube/devkit 0.0.2 → 0.0.3

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/index.cjs CHANGED
@@ -55,7 +55,7 @@ async function createVercube() {
55
55
  }
56
56
 
57
57
  //#endregion
58
- //#region node_modules/.pnpm/unplugin-isolated-decl@0.13.9_@swc+core@1.11.21_@swc+helpers@0.5.17__typescript@5.8.3/node_modules/unplugin-isolated-decl/dist/transformer-CiAWE027.js
58
+ //#region node_modules/.pnpm/unplugin-isolated-decl@0.13.10_@swc+core@1.11.22_@swc+helpers@0.5.17__typescript@5.8.3/node_modules/unplugin-isolated-decl/dist/transformer-CiAWE027.js
59
59
  function tryImport(pkg) {
60
60
  return import(pkg).catch(() => null);
61
61
  }
@@ -11252,7 +11252,7 @@ var require_src = __commonJS({ "node_modules/.pnpm/debug@4.4.0/node_modules/debu
11252
11252
  var import_src = __toESM(require_src(), 1);
11253
11253
 
11254
11254
  //#endregion
11255
- //#region node_modules/.pnpm/unplugin-isolated-decl@0.13.9_@swc+core@1.11.21_@swc+helpers@0.5.17__typescript@5.8.3/node_modules/unplugin-isolated-decl/dist/src-B5I0aiDn.js
11255
+ //#region node_modules/.pnpm/unplugin-isolated-decl@0.13.10_@swc+core@1.11.22_@swc+helpers@0.5.17__typescript@5.8.3/node_modules/unplugin-isolated-decl/dist/src-DVArCSR0.js
11256
11256
  const debug = (0, import_src.default)("unplugin-isolated-decl");
11257
11257
  function lowestCommonAncestor(...filepaths) {
11258
11258
  if (filepaths.length === 0) return "";
@@ -11434,8 +11434,14 @@ const IsolatedDecl = createUnplugin((rawOptions = {}) => {
11434
11434
  imports,
11435
11435
  map
11436
11436
  });
11437
- const importsInDts = filterImports(program);
11438
- for (const { source } of importsInDts) {
11437
+ const typeImports = program.body.filter((node) => {
11438
+ if (!("source" in node) || !node.source) return false;
11439
+ if ("importKind" in node && node.importKind === "type") return true;
11440
+ if ("exportKind" in node && node.exportKind === "type") return true;
11441
+ if (node.type === "ImportDeclaration") return !!node.specifiers && node.specifiers.every((spec) => spec.type === "ImportSpecifier" && spec.importKind === "type");
11442
+ return node.type === "ExportNamedDeclaration" && node.specifiers && node.specifiers.every((spec) => spec.exportKind === "type");
11443
+ });
11444
+ for (const { source } of typeImports) {
11439
11445
  const resolved = (await resolve$2(context, source.value, id))?.id;
11440
11446
  if (resolved && filter(resolved) && !outputFiles[stripExt(resolved)]) {
11441
11447
  let source$1;
@@ -11612,7 +11618,7 @@ function patchCjsDefaultExport(source) {
11612
11618
  }
11613
11619
 
11614
11620
  //#endregion
11615
- //#region node_modules/.pnpm/unplugin-isolated-decl@0.13.9_@swc+core@1.11.21_@swc+helpers@0.5.17__typescript@5.8.3/node_modules/unplugin-isolated-decl/dist/rolldown.js
11621
+ //#region node_modules/.pnpm/unplugin-isolated-decl@0.13.10_@swc+core@1.11.22_@swc+helpers@0.5.17__typescript@5.8.3/node_modules/unplugin-isolated-decl/dist/rolldown.js
11616
11622
  /**
11617
11623
  * Rolldown plugin
11618
11624
  *
package/dist/index.mjs CHANGED
@@ -59,7 +59,7 @@ async function createVercube() {
59
59
  }
60
60
 
61
61
  //#endregion
62
- //#region node_modules/.pnpm/unplugin-isolated-decl@0.13.9_@swc+core@1.11.21_@swc+helpers@0.5.17__typescript@5.8.3/node_modules/unplugin-isolated-decl/dist/transformer-CiAWE027.js
62
+ //#region node_modules/.pnpm/unplugin-isolated-decl@0.13.10_@swc+core@1.11.22_@swc+helpers@0.5.17__typescript@5.8.3/node_modules/unplugin-isolated-decl/dist/transformer-CiAWE027.js
63
63
  function tryImport(pkg) {
64
64
  return import(pkg).catch(() => null);
65
65
  }
@@ -11293,7 +11293,7 @@ var require_browser = __commonJS({ "node_modules/.pnpm/debug@4.4.0/node_modules/
11293
11293
  var import_browser = __toESM(require_browser(), 1);
11294
11294
 
11295
11295
  //#endregion
11296
- //#region node_modules/.pnpm/unplugin-isolated-decl@0.13.9_@swc+core@1.11.21_@swc+helpers@0.5.17__typescript@5.8.3/node_modules/unplugin-isolated-decl/dist/src-B5I0aiDn.js
11296
+ //#region node_modules/.pnpm/unplugin-isolated-decl@0.13.10_@swc+core@1.11.22_@swc+helpers@0.5.17__typescript@5.8.3/node_modules/unplugin-isolated-decl/dist/src-DVArCSR0.js
11297
11297
  const debug = (0, import_browser.default)("unplugin-isolated-decl");
11298
11298
  function lowestCommonAncestor(...filepaths) {
11299
11299
  if (filepaths.length === 0) return "";
@@ -11475,8 +11475,14 @@ const IsolatedDecl = createUnplugin((rawOptions = {}) => {
11475
11475
  imports,
11476
11476
  map
11477
11477
  });
11478
- const importsInDts = filterImports(program);
11479
- for (const { source } of importsInDts) {
11478
+ const typeImports = program.body.filter((node) => {
11479
+ if (!("source" in node) || !node.source) return false;
11480
+ if ("importKind" in node && node.importKind === "type") return true;
11481
+ if ("exportKind" in node && node.exportKind === "type") return true;
11482
+ if (node.type === "ImportDeclaration") return !!node.specifiers && node.specifiers.every((spec) => spec.type === "ImportSpecifier" && spec.importKind === "type");
11483
+ return node.type === "ExportNamedDeclaration" && node.specifiers && node.specifiers.every((spec) => spec.exportKind === "type");
11484
+ });
11485
+ for (const { source } of typeImports) {
11480
11486
  const resolved = (await resolve$2(context, source.value, id))?.id;
11481
11487
  if (resolved && filter(resolved) && !outputFiles[stripExt(resolved)]) {
11482
11488
  let source$1;
@@ -11653,7 +11659,7 @@ function patchCjsDefaultExport(source) {
11653
11659
  }
11654
11660
 
11655
11661
  //#endregion
11656
- //#region node_modules/.pnpm/unplugin-isolated-decl@0.13.9_@swc+core@1.11.21_@swc+helpers@0.5.17__typescript@5.8.3/node_modules/unplugin-isolated-decl/dist/rolldown.js
11662
+ //#region node_modules/.pnpm/unplugin-isolated-decl@0.13.10_@swc+core@1.11.22_@swc+helpers@0.5.17__typescript@5.8.3/node_modules/unplugin-isolated-decl/dist/rolldown.js
11657
11663
  /**
11658
11664
  * Rolldown plugin
11659
11665
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercube/devkit",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Devkit module for Vercube framework",
5
5
  "repository": "@vercube/devkit",
6
6
  "license": "MIT",
@@ -21,15 +21,15 @@
21
21
  "README.md"
22
22
  ],
23
23
  "dependencies": {
24
- "@oxc-project/runtime": "0.65.0",
24
+ "@oxc-project/runtime": "0.67.0",
25
25
  "consola": "3.4.2",
26
26
  "dotenv": "16.5.0",
27
27
  "hookable": "5.5.3",
28
- "oxc-parser": "0.65.0",
29
- "oxc-transform": "0.65.0",
28
+ "oxc-parser": "0.67.0",
29
+ "oxc-transform": "0.67.0",
30
30
  "pathe": "2.0.3",
31
31
  "rolldown": "1.0.0-beta.8",
32
- "@vercube/core": "0.0.2"
32
+ "@vercube/core": "0.0.3"
33
33
  },
34
34
  "publishConfig": {
35
35
  "access": "public"