@fastgpt-plugin/cli 0.1.0-alpha.4 → 0.1.0-alpha.5

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 +1 @@
1
- import{b as e}from"./index.js";const t=globalThis.process.getBuiltinModule(`module`).createRequire(import.meta.url),n=globalThis.process.getBuiltinModule(`node:path`),r=t(`typescript`),i=e(`rolldown-plugin-dts:tsc-resolver`);function a(e,t,a,o,s,c){let l=o?n.dirname(o):a,u=r.parseJsonConfigFileContent(s,r.sys,l),d=r.bundlerModuleNameResolver(e,t,{moduleResolution:r.ModuleResolutionKind.Bundler,...u.options},r.sys,void 0,c);return i(`tsc resolving id "%s" from "%s" -> %O`,e,t,d.resolvedModule),d.resolvedModule?.resolvedFileName}export{a as tscResolve};
1
+ import{y as e}from"./index.js";const t=globalThis.process.getBuiltinModule(`module`).createRequire(import.meta.url),n=globalThis.process.getBuiltinModule(`node:path`),r=t(`typescript`),i=e(`rolldown-plugin-dts:tsc-resolver`);function a(e,t,a,o,s,c){let l=o?n.dirname(o):a,u=r.parseJsonConfigFileContent(s,r.sys,l),d=r.bundlerModuleNameResolver(e,t,{moduleResolution:r.ModuleResolutionKind.Bundler,...u.options},r.sys,void 0,c);return i(`tsc resolving id "%s" from "%s" -> %O`,e,t,d.resolvedModule),d.resolvedModule?.resolvedFileName}export{a as tscResolve};
@@ -1 +1 @@
1
- import{b as e,c as t,l as n}from"./index.js";import{n as r}from"./context-DoVwxr5H-CUnaSkDS.js";const i=globalThis.process.getBuiltinModule(`module`).createRequire(import.meta.url),{createRequire:a}=globalThis.process.getBuiltinModule(`node:module`),o=globalThis.process.getBuiltinModule(`node:path`),s=i(`typescript`),{pathToFileURL:c}=globalThis.process.getBuiltinModule(`node:url`);var l=a(import.meta.url);const u=e(`rolldown-plugin-dts:tsc-system`);function d(e){return{...s.sys,write(e){u(e)},resolvePath(t){return e.has(t)?t:s.sys.resolvePath(t)},directoryExists(t){return Array.from(e.keys()).some(e=>e.startsWith(t))?!0:s.sys.directoryExists(t)},fileExists(t){return e.has(t)?!0:s.sys.fileExists(t)},readFile(t,...n){return e.has(t)?e.get(t):s.sys.readFile(t,...n)},writeFile(t,n,...r){e.set(t,n),s.sys.writeFile(t,n,...r)},deleteFile(t,...n){e.delete(t),s.sys.deleteFile?.(t,...n)}}}function f(e){return{...d(e),writeFile(t,n){e.set(t,n)},deleteFile(t){e.delete(t)}}}const p={getCurrentDirectory:()=>s.sys.getCurrentDirectory(),getNewLine:()=>s.sys.newLine,getCanonicalFileName:s.sys.useCaseSensitiveFileNames?e=>e:e=>e.toLowerCase()},m={afterDeclarations:[e=>{let t=n=>s.isPropertySignature(n)&&s.isPrivateIdentifier(n.name)?e.factory.updatePropertySignature(n,n.modifiers,e.factory.createStringLiteral(n.name.text),n.questionToken,n.type):s.visitEachChild(n,t,e);return e=>s.visitNode(e,t,s.isSourceFile)??e}]};function h(e,t,n){if(!e||e.sourceRoot)return;let r=o.posix.dirname(c(t).pathname),i=o.posix.dirname(c(n).pathname);r!==i&&(e.sourceRoot=o.posix.relative(i,r))}const g=e(`rolldown-plugin-dts:tsc-build`);function _(e){let{id:i,tsconfig:a,incremental:o,context:c=r,sourcemap:l}=e;if(g(`running tscEmitBuild id: ${i}, tsconfig: ${a}, incremental: ${o}`),!a)return{error:`[rolldown-plugin-dts] build mode requires a tsconfig path`};let u=(o?d:f)(c.files),p=u.resolvePath(i);p!==i&&g(`resolved id from ${i} to ${p}`);let m=v(c,u,a,!o,l).get(p);if(!m)return g(`unable to locate a project containing ${p}`),{error:`Unable to locate ${i} from the given tsconfig file ${a}`};g(`loaded project ${m.tsconfigPath} for ${i}`);let y=!u.useCaseSensitiveFileNames,b=s.getOutputFileNames(m.parsedConfig,p,y),x,S;for(let e of b){if(t.test(e)){if(!u.fileExists(e)){console.warn(`[rolldown-plugin-dts] Unable to read file ${e}`);continue}x=u.readFile(e);continue}if(n.test(e)){if(!u.fileExists(e))continue;let t=u.readFile(e);if(!t){console.warn(`[rolldown-plugin-dts] Unexpected sourcemap ${e}`);continue}S=JSON.parse(t),h(S,e,p)}}return x?{code:x,map:S}:o?(g(`incremental build failed`),_({...e,incremental:!1})):(g(`unable to build .d.ts file for ${i}`),m.parsedConfig.options.declaration===!0?{error:`Unable to build .d.ts file for ${i}; This seems like a bug of rolldown-plugin-dts. Please report this issue to https://github.com/sxzz/rolldown-plugin-dts/issues`}:{error:`Unable to build .d.ts file for ${i}; Make sure the "declaration" option is set to true in ${m.tsconfigPath}`})}function v(e,t,n,r,i){let a=e.projects.get(n);return a?(g(`skip building projects for ${n}`),a):(a=y(t,n,r,i),e.projects.set(n,a),a)}function y(e,t,n,r){g(`start building projects for ${t}`);let i=b(t,e,n,r);g(`collected %d projects: %j`,i.length,i.map(e=>e.tsconfigPath));let a=s.createSolutionBuilderHost(e,C);g(`built solution for ${t} with exit status ${s.createSolutionBuilder(a,[t],{force:n,verbose:!0}).build(void 0,void 0,void 0,e=>(g(`transforming project ${e}`),m))}`);let o=new Map;for(let t of i)for(let n of t.parsedConfig.fileNames)o.set(e.resolvePath(n),t);return o}function b(e,t,n,r){let i=new Set,a=[],o=[t.resolvePath(e)];for(;;){let e=o.pop();if(!e)break;if(i.has(e))continue;i.add(e);let c=x(e,t);if(c){c.options=S(c.options,{tsconfigPath:e,force:n,sourcemap:r}),a.push({tsconfigPath:e,parsedConfig:c});for(let e of c.projectReferences??[])o.push(s.resolveProjectReferencePath(e))}}return a}function x(e,t){let n=[],r=s.getParsedCommandLineOfConfigFile(e,void 0,{...t,onUnRecoverableConfigFileDiagnostic:e=>{n.push(e)}});if(n.length)throw Error(`[rolldown-plugin-dts] Unable to read ${e}: ${s.formatDiagnostics(n,p)}`);return r}function S(e,t){let n=e.noEmit??!1,r=e.declaration??!!e.composite,i=e.declarationMap??!1,a=t?.tsconfigPath&&!t.force;return n===!0&&(e={...e,noEmit:!1},a&&console.warn(`[rolldown-plugin-dts] ${t.tsconfigPath} has "noEmit" set to true. Please set it to false to generate declaration files.`)),r===!1&&(e={...e,declaration:!0},a&&console.warn(`[rolldown-plugin-dts] ${t.tsconfigPath} has "declaration" set to false. Please set it to true to generate declaration files.`)),i===!1&&t?.sourcemap&&(e={...e,declarationMap:!0},a&&console.warn(`[rolldown-plugin-dts] ${t.tsconfigPath} has "declarationMap" set to false. Please set it to true if you want to generate source maps for declaration files.`)),e}const C=(e,t,...n)=>s.createEmitAndSemanticDiagnosticsBuilderProgram(e,S(t??{},null),...n),w=e(`rolldown-plugin-dts:volar`);function T(){w(`loading vue language tools`);try{let e=l.resolve(`vue-tsc`);return{volarTs:l(l.resolve(`@volar/typescript`,{paths:[e]})),vue:l(l.resolve(`@vue/language-core`,{paths:[e]}))}}catch(e){throw w(`vue language tools not found`,e),Error(`Failed to load vue language tools. Please manually install vue-tsc.`)}}function E(){let{vue:e,volarTs:{proxyCreateProgram:t}}=T();return{proxyCreateProgram:t,getLanguagePlugin:(t,n)=>{let r=n.options.$rootDir,i=n.options.$configRaw,a=new e.CompilerOptionsResolver(t,t.sys.readFile);a.addConfig(i?.vueCompilerOptions??{},r);let o=a.build();return e.createVueLanguagePlugin(t,n.options,o,e=>e)}}}function D(){let t=e(`rolldown-plugin-dts:ts-macro`);t(`loading ts-macro language tools`);try{let e=l.resolve(`@ts-macro/tsc`),{proxyCreateProgram:t}=l(l.resolve(`@volar/typescript`,{paths:[e]})),n=l(l.resolve(`@ts-macro/language-plugin`,{paths:[e]})),{getOptions:r}=l(l.resolve(`@ts-macro/language-plugin/options`,{paths:[e]}));return{proxyCreateProgram:t,getLanguagePlugin:(e,t)=>{let i=t.options.$rootDir;return n.getLanguagePlugins(e,t.options,r(e,i))[0]}}}catch(e){throw t(`ts-macro language tools not found`,e),Error(`Failed to load ts-macro language tools. Please manually install @ts-macro/tsc.`)}}function O(e,t){let n=t.vue?E():void 0,r=t.tsMacro?D():void 0,i=n?.proxyCreateProgram||r?.proxyCreateProgram;return i?i(e,e.createProgram,(e,t)=>{let i=[];return n&&i.push(n.getLanguagePlugin(e,t)),r&&i.push(r.getLanguagePlugin(e,t)),{languagePlugins:i}}):e.createProgram}const k=e(`rolldown-plugin-dts:tsc-compiler`),A={declaration:!0,noEmit:!1,emitDeclarationOnly:!0,noEmitOnError:!0,checkJs:!1,declarationMap:!1,skipLibCheck:!0,target:99,resolveJsonModule:!0,moduleResolution:s.ModuleResolutionKind.Bundler};function j(e){let{id:t,entries:n,context:i=r}=e,a=i.programs.find(e=>{let r=e.getRootFileNames();return n?n.every(e=>r.includes(e)):r.includes(t)});if(a){let e=a.getSourceFile(t);if(e)return{program:a,file:e}}k(`create program for module: ${t}`);let o=M(e);return k(`created program for module: ${t}`),i.programs.push(o.program),o}function M({entries:e,id:t,tsconfig:n,tsconfigRaw:i,vue:a,tsMacro:c,cwd:l,context:u=r}){let f=d(u.files),p=n?o.dirname(n):l,m=s.parseJsonConfigFileContent(i,f,p,void 0,void 0,void 0,a?[{extension:`vue`,isMixedContent:!0,scriptKind:s.ScriptKind.Deferred}]:void 0);return k(`creating program for root project: ${p}`),N({parsedConfig:m,fsSystem:f,baseDir:p,id:t,entries:e,vue:a,tsMacro:c})}function N({parsedConfig:e,fsSystem:t,baseDir:n,id:r,entries:i,vue:a,tsMacro:o}){let c={...A,...e.options,$configRaw:e.raw,$rootDir:n},l=[...new Set([r,...i||e.fileNames].map(e=>t.resolvePath(e)))],u=s.createCompilerHost(c,!0),d=O(s,{vue:a,tsMacro:o})({rootNames:l,options:c,host:u,projectReferences:e.projectReferences}),f=d.getSourceFile(r);if(!f)throw k(`source file not found in program: ${r}`),e.projectReferences?.length?Error(`[rolldown-plugin-dts] Unable to load ${r}; You have "references" in your tsconfig file. Perhaps you want to add \`dts: { build: true }\` in your config?`):t.fileExists(r)?(k(`File ${r} exists on disk.`),Error(`Unable to load file ${r} from the program. This seems like a bug of rolldown-plugin-dts. Please report this issue to https://github.com/sxzz/rolldown-plugin-dts/issues`)):(k(`File ${r} does not exist on disk.`),Error(`Source file not found: ${r}`));return{program:d,file:f}}function P(e){k(`running tscEmitCompiler ${e.id}`);let{program:t,file:n}=j(e);k(`got source file: ${n.fileName}`);let r,i,{emitSkipped:a,diagnostics:o}=t.emit(n,(t,n)=>{t.endsWith(`.map`)?(k(`emit dts sourcemap: ${t}`),i=JSON.parse(n),h(i,t,e.id)):(k(`emit dts: ${t}`),r=n)},void 0,!0,m,!0);return a&&o.length?{error:s.formatDiagnostics(o,p)}:(r||(k(`nothing was emitted.`),n.isDeclarationFile?(k(`source file is a declaration file.`),r=n.getFullText()):console.warn("[rolldown-plugin-dts] Warning: Failed to emit declaration file. Please try to enable `eager` option (`dts.eager` for tsdown).")),{code:r,map:i})}const F=e(`rolldown-plugin-dts:tsc`);F(`loaded typescript: ${s.version}`);function I(e){return F(`running tscEmit ${e.id}`),e.build?_(e):P(e)}export{I as tscEmit};
1
+ import{c as e,s as t,y as n}from"./index.js";import{n as r}from"./context-DoVwxr5H-B6IEtQ3M.js";const i=globalThis.process.getBuiltinModule(`module`).createRequire(import.meta.url),{createRequire:a}=globalThis.process.getBuiltinModule(`node:module`),o=globalThis.process.getBuiltinModule(`node:path`),s=i(`typescript`),{pathToFileURL:c}=globalThis.process.getBuiltinModule(`node:url`);var l=a(import.meta.url);const u=n(`rolldown-plugin-dts:tsc-system`);function d(e){return{...s.sys,write(e){u(e)},resolvePath(t){return e.has(t)?t:s.sys.resolvePath(t)},directoryExists(t){return Array.from(e.keys()).some(e=>e.startsWith(t))?!0:s.sys.directoryExists(t)},fileExists(t){return e.has(t)?!0:s.sys.fileExists(t)},readFile(t,...n){return e.has(t)?e.get(t):s.sys.readFile(t,...n)},writeFile(t,n,...r){e.set(t,n),s.sys.writeFile(t,n,...r)},deleteFile(t,...n){e.delete(t),s.sys.deleteFile?.(t,...n)}}}function f(e){return{...d(e),writeFile(t,n){e.set(t,n)},deleteFile(t){e.delete(t)}}}const p={getCurrentDirectory:()=>s.sys.getCurrentDirectory(),getNewLine:()=>s.sys.newLine,getCanonicalFileName:s.sys.useCaseSensitiveFileNames?e=>e:e=>e.toLowerCase()},m={afterDeclarations:[e=>{let t=n=>s.isPropertySignature(n)&&s.isPrivateIdentifier(n.name)?e.factory.updatePropertySignature(n,n.modifiers,e.factory.createStringLiteral(n.name.text),n.questionToken,n.type):s.visitEachChild(n,t,e);return e=>s.visitNode(e,t,s.isSourceFile)??e}]};function h(e,t,n){if(!e||e.sourceRoot)return;let r=o.posix.dirname(c(t).pathname),i=o.posix.dirname(c(n).pathname);r!==i&&(e.sourceRoot=o.posix.relative(i,r))}const g=n(`rolldown-plugin-dts:tsc-build`);function _(n){let{id:i,tsconfig:a,incremental:o,context:c=r,sourcemap:l}=n;if(g(`running tscEmitBuild id: ${i}, tsconfig: ${a}, incremental: ${o}`),!a)return{error:`[rolldown-plugin-dts] build mode requires a tsconfig path`};let u=(o?d:f)(c.files),p=u.resolvePath(i);p!==i&&g(`resolved id from ${i} to ${p}`);let m=v(c,u,a,!o,l).get(p);if(!m)return g(`unable to locate a project containing ${p}`),{error:`Unable to locate ${i} from the given tsconfig file ${a}`};g(`loaded project ${m.tsconfigPath} for ${i}`);let y=!u.useCaseSensitiveFileNames,b=s.getOutputFileNames(m.parsedConfig,p,y),x,S;for(let n of b){if(t.test(n)){if(!u.fileExists(n)){console.warn(`[rolldown-plugin-dts] Unable to read file ${n}`);continue}x=u.readFile(n);continue}if(e.test(n)){if(!u.fileExists(n))continue;let e=u.readFile(n);if(!e){console.warn(`[rolldown-plugin-dts] Unexpected sourcemap ${n}`);continue}S=JSON.parse(e),h(S,n,p)}}return x?{code:x,map:S}:o?(g(`incremental build failed`),_({...n,incremental:!1})):(g(`unable to build .d.ts file for ${i}`),m.parsedConfig.options.declaration===!0?{error:`Unable to build .d.ts file for ${i}; This seems like a bug of rolldown-plugin-dts. Please report this issue to https://github.com/sxzz/rolldown-plugin-dts/issues`}:{error:`Unable to build .d.ts file for ${i}; Make sure the "declaration" option is set to true in ${m.tsconfigPath}`})}function v(e,t,n,r,i){let a=e.projects.get(n);return a?(g(`skip building projects for ${n}`),a):(a=y(t,n,r,i),e.projects.set(n,a),a)}function y(e,t,n,r){g(`start building projects for ${t}`);let i=b(t,e,n,r);g(`collected %d projects: %j`,i.length,i.map(e=>e.tsconfigPath));let a=s.createSolutionBuilderHost(e,C);g(`built solution for ${t} with exit status ${s.createSolutionBuilder(a,[t],{force:n,verbose:!0}).build(void 0,void 0,void 0,e=>(g(`transforming project ${e}`),m))}`);let o=new Map;for(let t of i)for(let n of t.parsedConfig.fileNames)o.set(e.resolvePath(n),t);return o}function b(e,t,n,r){let i=new Set,a=[],o=[t.resolvePath(e)];for(;;){let e=o.pop();if(!e)break;if(i.has(e))continue;i.add(e);let c=x(e,t);if(c){c.options=S(c.options,{tsconfigPath:e,force:n,sourcemap:r}),a.push({tsconfigPath:e,parsedConfig:c});for(let e of c.projectReferences??[])o.push(s.resolveProjectReferencePath(e))}}return a}function x(e,t){let n=[],r=s.getParsedCommandLineOfConfigFile(e,void 0,{...t,onUnRecoverableConfigFileDiagnostic:e=>{n.push(e)}});if(n.length)throw Error(`[rolldown-plugin-dts] Unable to read ${e}: ${s.formatDiagnostics(n,p)}`);return r}function S(e,t){let n=e.noEmit??!1,r=e.declaration??!!e.composite,i=e.declarationMap??!1,a=t?.tsconfigPath&&!t.force;return n===!0&&(e={...e,noEmit:!1},a&&console.warn(`[rolldown-plugin-dts] ${t.tsconfigPath} has "noEmit" set to true. Please set it to false to generate declaration files.`)),r===!1&&(e={...e,declaration:!0},a&&console.warn(`[rolldown-plugin-dts] ${t.tsconfigPath} has "declaration" set to false. Please set it to true to generate declaration files.`)),i===!1&&t?.sourcemap&&(e={...e,declarationMap:!0},a&&console.warn(`[rolldown-plugin-dts] ${t.tsconfigPath} has "declarationMap" set to false. Please set it to true if you want to generate source maps for declaration files.`)),e}const C=(e,t,...n)=>s.createEmitAndSemanticDiagnosticsBuilderProgram(e,S(t??{},null),...n),w=n(`rolldown-plugin-dts:volar`);function T(){w(`loading vue language tools`);try{let e=l.resolve(`vue-tsc`);return{volarTs:l(l.resolve(`@volar/typescript`,{paths:[e]})),vue:l(l.resolve(`@vue/language-core`,{paths:[e]}))}}catch(e){throw w(`vue language tools not found`,e),Error(`Failed to load vue language tools. Please manually install vue-tsc.`)}}function E(){let{vue:e,volarTs:{proxyCreateProgram:t}}=T();return{proxyCreateProgram:t,getLanguagePlugin:(t,n)=>{let r=n.options.$rootDir,i=n.options.$configRaw,a=new e.CompilerOptionsResolver(t,t.sys.readFile);a.addConfig(i?.vueCompilerOptions??{},r);let o=a.build();return e.createVueLanguagePlugin(t,n.options,o,e=>e)}}}function D(){let e=n(`rolldown-plugin-dts:ts-macro`);e(`loading ts-macro language tools`);try{let e=l.resolve(`@ts-macro/tsc`),{proxyCreateProgram:t}=l(l.resolve(`@volar/typescript`,{paths:[e]})),n=l(l.resolve(`@ts-macro/language-plugin`,{paths:[e]})),{getOptions:r}=l(l.resolve(`@ts-macro/language-plugin/options`,{paths:[e]}));return{proxyCreateProgram:t,getLanguagePlugin:(e,t)=>{let i=t.options.$rootDir;return n.getLanguagePlugins(e,t.options,r(e,i))[0]}}}catch(t){throw e(`ts-macro language tools not found`,t),Error(`Failed to load ts-macro language tools. Please manually install @ts-macro/tsc.`)}}function O(e,t){let n=t.vue?E():void 0,r=t.tsMacro?D():void 0,i=n?.proxyCreateProgram||r?.proxyCreateProgram;return i?i(e,e.createProgram,(e,t)=>{let i=[];return n&&i.push(n.getLanguagePlugin(e,t)),r&&i.push(r.getLanguagePlugin(e,t)),{languagePlugins:i}}):e.createProgram}const k=n(`rolldown-plugin-dts:tsc-compiler`),A={declaration:!0,noEmit:!1,emitDeclarationOnly:!0,noEmitOnError:!0,checkJs:!1,declarationMap:!1,skipLibCheck:!0,target:99,resolveJsonModule:!0,moduleResolution:s.ModuleResolutionKind.Bundler};function j(e){let{id:t,entries:n,context:i=r}=e,a=i.programs.find(e=>{let r=e.getRootFileNames();return n?n.every(e=>r.includes(e)):r.includes(t)});if(a){let e=a.getSourceFile(t);if(e)return{program:a,file:e}}k(`create program for module: ${t}`);let o=M(e);return k(`created program for module: ${t}`),i.programs.push(o.program),o}function M({entries:e,id:t,tsconfig:n,tsconfigRaw:i,vue:a,tsMacro:c,cwd:l,context:u=r}){let f=d(u.files),p=n?o.dirname(n):l,m=s.parseJsonConfigFileContent(i,f,p,void 0,void 0,void 0,a?[{extension:`vue`,isMixedContent:!0,scriptKind:s.ScriptKind.Deferred}]:void 0);return k(`creating program for root project: ${p}`),N({parsedConfig:m,fsSystem:f,baseDir:p,id:t,entries:e,vue:a,tsMacro:c})}function N({parsedConfig:e,fsSystem:t,baseDir:n,id:r,entries:i,vue:a,tsMacro:o}){let c={...A,...e.options,$configRaw:e.raw,$rootDir:n},l=[...new Set([r,...i||e.fileNames].map(e=>t.resolvePath(e)))],u=s.createCompilerHost(c,!0),d=O(s,{vue:a,tsMacro:o})({rootNames:l,options:c,host:u,projectReferences:e.projectReferences}),f=d.getSourceFile(r);if(!f)throw k(`source file not found in program: ${r}`),e.projectReferences?.length?Error(`[rolldown-plugin-dts] Unable to load ${r}; You have "references" in your tsconfig file. Perhaps you want to add \`dts: { build: true }\` in your config?`):t.fileExists(r)?(k(`File ${r} exists on disk.`),Error(`Unable to load file ${r} from the program. This seems like a bug of rolldown-plugin-dts. Please report this issue to https://github.com/sxzz/rolldown-plugin-dts/issues`)):(k(`File ${r} does not exist on disk.`),Error(`Source file not found: ${r}`));return{program:d,file:f}}function P(e){k(`running tscEmitCompiler ${e.id}`);let{program:t,file:n}=j(e);k(`got source file: ${n.fileName}`);let r,i,{emitSkipped:a,diagnostics:o}=t.emit(n,(t,n)=>{t.endsWith(`.map`)?(k(`emit dts sourcemap: ${t}`),i=JSON.parse(n),h(i,t,e.id)):(k(`emit dts: ${t}`),r=n)},void 0,!0,m,!0);return a&&o.length?{error:s.formatDiagnostics(o,p)}:(r||(k(`nothing was emitted.`),n.isDeclarationFile?(k(`source file is a declaration file.`),r=n.getFullText()):console.warn("[rolldown-plugin-dts] Warning: Failed to emit declaration file. Please try to enable `eager` option (`dts.eager` for tsdown).")),{code:r,map:i})}const F=n(`rolldown-plugin-dts:tsc`);F(`loaded typescript: ${s.version}`);function I(e){return F(`running tscEmit ${e.id}`),e.build?_(e):P(e)}export{I as tscEmit};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fastgpt-plugin/cli",
3
- "version": "0.1.0-alpha.4",
3
+ "version": "0.1.0-alpha.5",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -21,14 +21,12 @@
21
21
  "prepublishOnly": "npm run build"
22
22
  },
23
23
  "devDependencies": {
24
- "@babel/generator": "^7.26.5",
25
- "@babel/parser": "^7.26.5",
26
- "@babel/traverse": "^7.26.5",
27
- "@babel/types": "^7.26.5",
28
24
  "@inquirer/prompts": "^8.2.0",
25
+ "@oxc-parser/binding-wasm32-wasi": "^0.112.0",
29
26
  "commander": "^14.0.3",
30
27
  "consola": "^3.4.2",
31
28
  "es-toolkit": "^1.44.0",
29
+ "oxc-parser": "^0.112.0",
32
30
  "tsdown": "^0.20.1",
33
31
  "typescript": "^5",
34
32
  "vite-tsconfig-paths": "^6.0.5",
@@ -36,5 +34,8 @@
36
34
  },
37
35
  "engines": {
38
36
  "node": "^20.19.0 || >=22.12.0"
37
+ },
38
+ "dependencies": {
39
+ "esrap": "^2.2.2"
39
40
  }
40
41
  }