@kumori/kdsl 0.0.10 → 0.0.11
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/out/main.cjs +1 -1
- package/package.json +1 -1
package/out/main.cjs
CHANGED
|
@@ -686,7 +686,7 @@ If the module is not located in the current directory, you can provide a custom
|
|
|
686
686
|
kdsl mod update -v 1.0.0 -p ./my-module
|
|
687
687
|
`.trim();function B1e(t){return async e=>{await H1e(t,process.cwd(),e)}}var H1e=async(t,e,r)=>{var f,l,p;let n=wn.fileSystemProvider(),i=(f=r.path)!=null?f:e;Rg.default.isAbsolute(i)||(i=Rg.default.join(e,i));let s=await kl(n,De.file(i));ce.isSome(s)&&s.value.fsPath===i&&(t.error(`error: module ${i} already exists`),process.exit(1));let o=await n.readFile(De.file(Rg.default.join(i,_r))),a=JSON.parse(o),c={spec:"kumori/module/v1",kumori:"0.0.1",version:(l=r.version)!=null?l:a.version,module:a.module,cacheLocation:(p=r.cacheLocation)!=null?p:a.cacheLocation,requires:[]},u=Rg.default.join(i,_r);await(0,n8.mkdir)(i,{recursive:!0}),await(0,n8.writeFile)(u,JSON.stringify(c,null,4)),t.info(`updated ${_r}: module ${c.module}`)};var $B={Register:W1e};function W1e(t,e){let r=t.command("mod").summary(z1e).description(K1e).helpCommand(!1).helpOption(!1);return bB.Register(r,e),pB.Register(r,e),wB.Register(r,e),IB.Register(r,e),DB.Register(r),LB.Register(r,e),r}var z1e="module maintenance",K1e=`
|
|
688
688
|
Provides access to operations on modules.
|
|
689
|
-
`.trim();var MB={name:"@kumori/kdsl",version:"0.0.
|
|
689
|
+
`.trim();var MB={name:"@kumori/kdsl",version:"0.0.11",private:!1,files:["bin","out"],type:"module",description:"Kumori DSL command line interface",bin:{kdsl:"bin/cli.js"},scripts:{build:"npm run fix && tsc -b tsconfig.json && node esbuild.mjs --minify",test:"vitest run",clean:"rm -rf dist/ out/ tsconfig.tsbuildinfo",prepublishOnly:"npm run build",lint:"eslint .",prettier:"prettier src/ test/ --write",fix:"npm run lint && npm run prettier"},dependencies:{"@commander-js/extra-typings":"^13.1.0","@kumori/kdsl-lsp":"0.0.1-alpha.9",ajv:"^6.12.6",chalk:"~5.3.0",commander:"~13.1.0",zod:"^3.24.2"},license:"EUPL",keywords:["cli","tool","automation","kumori","dsl"],gitHead:"89bea74c68de5f90f37ccc0e64b340408c90b76d",devDependencies:{"@eslint/js":"^9.35.0",eslint:"^9.35.0",globals:"^16.4.0",jiti:"^2.5.1",prettier:"3.6.2","typescript-eslint":"^8.44.0"}};var J1e="<unknown>",FB,Q1e=(FB=MB.version)!=null?FB:J1e,VB=Q1e;var jB={Register:Y1e};function Y1e(t,e){return t.command("add").argument("<selector>","Name selector for matching dependencies").argument("<version>","Version of the registry specification. It is a git tag.").argument("<url>","URL that contains the registry index for resolving modules").summary(Z1e).description(X1e).action(ege(e))}var Z1e=`
|
|
690
690
|
add a new registry
|
|
691
691
|
`.trim(),X1e=`
|
|
692
692
|
Add a registry to the resolver configuration. The selector argument is used to match artifacts.
|