@visulima/packem 2.0.0-alpha.40 → 2.0.0-alpha.44
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/CHANGELOG.md +37 -0
- package/LICENSE.md +1447 -1342
- package/dist/builder/typedoc/index.js +1 -1
- package/dist/cli/commands/add.d.ts +2 -1
- package/dist/cli/index.js +46 -39
- package/dist/config/preset/auto.d.ts +2 -2
- package/dist/config/preset/react.d.ts +59 -0
- package/dist/config/preset/react.js +1 -0
- package/dist/config/preset/solid.d.ts +101 -0
- package/dist/config/preset/solid.js +1 -0
- package/dist/config/preset/svelte.d.ts +71 -0
- package/dist/config/preset/svelte.js +1 -0
- package/dist/config/preset/vue.d.ts +53 -0
- package/dist/config/preset/vue.js +1 -0
- package/dist/index.js +1 -1
- package/dist/packem_shared/create-or-update-key-storage-C0tWtgSr.js +3 -0
- package/dist/packem_shared/{default-Dego_fiC.js → default-5XUc-qHw.js} +1 -1
- package/dist/packem_shared/{default-E4TiWfSK.js → default-DsjSAv7m.js} +1 -1
- package/dist/packem_shared/{esbuildPlugin-DpLtQGuZ-Bny-e486.js → esbuildPlugin-pPPsJB9N-YI_X-5wr.js} +2 -2
- package/dist/packem_shared/index-ChtiNkgT.js +174 -0
- package/dist/packem_shared/{resolveTypescriptMjsCtsPlugin-DcZrZTmM-3AmQC7y7.js → resolveTypescriptMjsCtsPlugin-DcZrZTmM-CauidYR5.js} +4 -4
- package/dist/rollup/plugins/esbuild/index.js +1 -1
- package/dist/types.d.ts +2 -1
- package/package.json +33 -6
- package/dist/packem_shared/create-or-update-key-storage-GwAIWW7R.js +0 -3
- package/dist/packem_shared/index-DFigeRU2.js +0 -174
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var M=Object.defineProperty;var u=(t,e)=>M(t,"name",{value:e,configurable:!0});import{parse as U}from"@babel/parser";import q from"magic-string";import{findStaticImports as F}from"mlly";import{isAbsolute as L,join as
|
|
1
|
+
var M=Object.defineProperty;var u=(t,e)=>M(t,"name",{value:e,configurable:!0});import{parse as U}from"@babel/parser";import q from"magic-string";import{findStaticImports as F}from"mlly";import{isAbsolute as L,join as N,dirname as Z,resolve as R}from"@visulima/path";import{isRelative as z}from"@visulima/path/utils";var G=Object.defineProperty,m=u((t,e)=>G(t,"name",{value:e,configurable:!0}),"u$1"),H=Object.defineProperty,h=m((t,e)=>H(t,"name",{value:e,configurable:!0}),"n"),J=Object.defineProperty,x=h((t,e)=>J(t,"name",{value:e,configurable:!0}),"i");let B=class{static{u(this,"y")}static{m(this,"_")}static{h(this,"WalkerBase")}static{x(this,"WalkerBase")}constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:x(()=>this.should_skip=!0,"skip"),remove:x(()=>this.should_remove=!0,"remove"),replace:x(e=>this.replacement=e,"replace")}}replace(e,s,r,n){e&&s&&(r!=null?e[s][r]=n:e[s]=n)}remove(e,s,r){e&&s&&(r!=null?e[s].splice(r,1):delete e[s])}};var K=Object.defineProperty,g=h((t,e)=>K(t,"name",{value:e,configurable:!0}),"c$1");let Q=class extends B{static{u(this,"A")}static{m(this,"x")}static{h(this,"SyncWalker")}static{g(this,"SyncWalker")}constructor(e,s){super(),this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:g(()=>this.should_skip=!0,"skip"),remove:g(()=>this.should_remove=!0,"remove"),replace:g(r=>this.replacement=r,"replace")},this.enter=e,this.leave=s}visit(e,s,r,n){if(e){if(this.enter){const i=this.should_skip,o=this.should_remove,l=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,e,s,r,n),this.replacement&&(e=this.replacement,this.replace(s,r,n,e)),this.should_remove&&this.remove(s,r,n);const a=this.should_skip,p=this.should_remove;if(this.should_skip=i,this.should_remove=o,this.replacement=l,a)return e;if(p)return null}let c;for(c in e){const i=e[c];if(i&&typeof i=="object")if(Array.isArray(i)){const o=i;for(let l=0;l<o.length;l+=1){const a=o[l];$(a)&&(this.visit(a,e,c,l)||l--)}}else $(i)&&this.visit(i,e,c,null)}if(this.leave){const i=this.replacement,o=this.should_remove;this.replacement=null,this.should_remove=!1,this.leave.call(this.context,e,s,r,n),this.replacement&&(e=this.replacement,this.replace(s,r,n,e)),this.should_remove&&this.remove(s,r,n);const l=this.should_remove;if(this.replacement=i,this.should_remove=o,l)return null}}return e}};function $(t){return t!==null&&typeof t=="object"&&"type"in t&&typeof t.type=="string"}u($,"d$2");m($,"f");h($,"n");g($,"isNode");var V=Object.defineProperty,y=h((t,e)=>V(t,"name",{value:e,configurable:!0}),"c");let X=class extends B{static{u(this,"P")}static{m(this,"j")}static{h(this,"AsyncWalker")}static{y(this,"AsyncWalker")}constructor(e,s){super(),this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:y(()=>this.should_skip=!0,"skip"),remove:y(()=>this.should_remove=!0,"remove"),replace:y(r=>this.replacement=r,"replace")},this.enter=e,this.leave=s}async visit(e,s,r,n){if(e){if(this.enter){const i=this.should_skip,o=this.should_remove,l=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,await this.enter.call(this.context,e,s,r,n),this.replacement&&(e=this.replacement,this.replace(s,r,n,e)),this.should_remove&&this.remove(s,r,n);const a=this.should_skip,p=this.should_remove;if(this.should_skip=i,this.should_remove=o,this.replacement=l,a)return e;if(p)return null}let c;for(c in e){const i=e[c];if(i&&typeof i=="object")if(Array.isArray(i)){const o=i;for(let l=0;l<o.length;l+=1){const a=o[l];b(a)&&(await this.visit(a,e,c,l)||l--)}}else b(i)&&await this.visit(i,e,c,null)}if(this.leave){const i=this.replacement,o=this.should_remove;this.replacement=null,this.should_remove=!1,await this.leave.call(this.context,e,s,r,n),this.replacement&&(e=this.replacement,this.replace(s,r,n,e)),this.should_remove&&this.remove(s,r,n);const l=this.should_remove;if(this.replacement=i,this.should_remove=o,l)return null}}return e}};function b(t){return t!==null&&typeof t=="object"&&"type"in t&&typeof t.type=="string"}u(b,"f$2");m(b,"d");h(b,"a$1");y(b,"isNode");var Y=Object.defineProperty,C=h((t,e)=>Y(t,"name",{value:e,configurable:!0}),"a");function j(t,{enter:e,leave:s}){return new Q(e,s).visit(t,null)}u(j,"k$1");m(j,"A");h(j,"walk");C(j,"walk");async function O(t,{enter:e,leave:s}){return await new X(e,s).visit(t,null)}u(O,"w$3");m(O,"O");h(O,"asyncWalk");C(O,"asyncWalk");var ee=Object.defineProperty,A=u((t,e)=>ee(t,"name",{value:e,configurable:!0}),"l$1"),te=Object.defineProperty,W=A((t,e)=>te(t,"name",{value:e,configurable:!0}),"l"),se=Object.defineProperty,d=W((t,e)=>se(t,"name",{value:e,configurable:!0}),"r");const re=/\/\*[^*]*\*+(?:[^/*][^*]*\*+)*\//g,ie=/MIT License|MIT license|BSD license/,ne=/\n{2,}/g,oe=/\b(\w+)\$\d+\b/g,le=/[-/\\^$*+?.()|[\]{}]/g,ae=d(t=>t.replaceAll(le,String.raw`\$&`),"escapeRegex"),ce=d(t=>[...new Set(t)],"unique"),ue=d(t=>t.replaceAll(re,e=>ie.test(e)?"":e).replaceAll(ne,`
|
|
2
2
|
|
|
3
|
-
`),"cleanUnnecessaryComments"),
|
|
4
|
-
- ${l}`).join(""),o=e.fileName.replace(/\.[^/.]+$/,"");
|
|
3
|
+
`),"cleanUnnecessaryComments"),I=new Map;function w(t,e,{identifierReplacements:s},r){const n=F(t);for(const i in s){const o=n.find(a=>a.specifier===i&&a.imports.includes("{"));if(!o){this.warn(`${e.fileName} does not import "${i}" for replacement`),process.exitCode=1;continue}const l=s[i];for(const a in l){if(!o.imports.includes(a))throw new Error(`${e.fileName} does not import "${a}" from "${i}" for replacement`);const p=l[a],v=ae(a);p.includes(".")&&(t=t.replace(new RegExp(String.raw`\b\w+\b as ${v},?\s?`),"")),t=t.replaceAll(new RegExp(String.raw`\b${v}\b`,"g"),p)}}const c=ce(Array.from(t.matchAll(oe),i=>i[0]));if(c.length>0){const i=c.map(l=>`
|
|
4
|
+
- ${l}`).join(""),o=e.fileName.replace(/\.[^/.]+$/,"");I.has(o)||r.warn({message:`${e.fileName} contains confusing identifier names${i}
|
|
5
5
|
|
|
6
|
-
To replace these, add them to the "rollup -> patchTypes -> identifierReplacements" option in your packem config.`,prefix:"plugin:patch-types"}),
|
|
6
|
+
To replace these, add them to the "rollup -> patchTypes -> identifierReplacements" option in your packem config.`,prefix:"plugin:patch-types"}),I.set(o,!0)}return t}u(w,"f$1");A(w,"g");W(w,"I");d(w,"replaceConfusingTypeNames");const pe=d((t,e)=>{if(e.leadingComments?.some(s=>s.type==="CommentBlock"&&s.value.includes("@internal"))){const s=t.original[e.end]===","?e.end+1:e.end;return t.remove(e.leadingComments[0].start,s),!0}return!1},"removeInternal");function P(t,e){if(t.includes("@internal")){const s=new q(t),r=U(t,{plugins:["typescript"],sourceType:"module"});if(j(r,{enter(n){pe(s,n)&&this.skip()}}),t=s.toString(),t.includes("@internal"))throw new Error(`${e.fileName} has unhandled @internal declarations`)}return t}u(P,"u");A(P,"h");W(P,"P");d(P,"stripInternalTypes");const He=d((t,e)=>({name:"packem:patch-types",renderChunk(s,r){return s=w.call(this,s,r,t,e),s=P.call(this,s,r),s=ue(s),s}}),"patchTypescriptTypes");var he=Object.defineProperty,fe=u((t,e)=>he(t,"name",{value:e,configurable:!0}),"d$1"),me=Object.defineProperty,de=fe((t,e)=>me(t,"name",{value:e,configurable:!0}),"d"),ve=Object.defineProperty,f=de((t,e)=>ve(t,"name",{value:e,configurable:!0}),"o");const ge=42,ye=f(t=>{let e=!1;for(let s=0;s<t.length;s++)if(t.codePointAt(s)===ge){if(e)return!1;e=!0}return!0},"hasZeroOrOneAsteriskCharacter"),$e=f(t=>{const e=t.indexOf("*");return e===-1?void 0:{prefix:t.slice(0,e),suffix:t.slice(e+1)}},"tryParsePattern"),be=f(({prefix:t,suffix:e},s)=>s.length>=t.length+e.length&&s.startsWith(t)&&s.endsWith(e),"isPatternMatch"),ke=f((t,e,s)=>{let r,n=-1;for(const c of t){const i=e(c);be(i,s)&&i.prefix.length>n&&(n=i.prefix.length,r=c)}return r},"findBestPatternMatch"),_e=f((t,e)=>{const s=[];for(const r of t){if(!ye(r))continue;const n=$e(r);if(n)s.push(n);else if(r===e)return r}return ke(s,r=>r,e)},"matchPatternOrExact"),xe=f((t,e)=>e.substring(t.prefix.length,e.length-t.suffix.length),"matchedText"),je=f(({prefix:t,suffix:e})=>`${t}*${e}`,"patternText"),we=f((t,e,s)=>{let r=Z(e.path);e.config.compilerOptions?.baseUrl&&(r=R(t,e.config.compilerOptions.baseUrl)),s?.debug({message:`Resolved baseUrl to ${r}`,prefix:"plugin:resolve-tsconfig-paths"});const n=e.config.compilerOptions?.paths??{};return Object.keys(n).length===0&&s?.debug({message:"No paths found in tsconfig.json",prefix:"plugin:resolve-tsconfig-paths"}),{paths:n,resolvedBaseUrl:r}},"getTsconfigPaths"),Je=f((t,e,s,r)=>{const{paths:n,resolvedBaseUrl:c}=we(t,e,s),i=Object.keys(n);return{name:"plugin:resolve-tsconfig-paths",async resolveId(o,l,a){if(i.length===0)return;if(o.includes("\0")){s.debug({message:`Skipping resolution of ${o} as it is a virtual module`,prefix:"plugin:resolve-tsconfig-paths"});return}if(o.includes("node_modules")){s.debug({message:`Skipping request as it is inside node_modules ${o}`,prefix:"plugin:resolve-tsconfig-paths"});return}if(!r.resolveAbsolutePath&&L(o)){s.debug({message:`Skipping request as it is an absolute path ${o}`,prefix:"plugin:resolve-tsconfig-paths"});return}if(z(o)){s.debug({message:`Skipping request as it is a relative path ${o}`,prefix:"plugin:resolve-tsconfig-paths"});return}const p=_e(i,o);if(!p){s.debug({message:`moduleName did not match any paths pattern ${o}`,prefix:"plugin:resolve-tsconfig-paths"});return}const v=typeof p=="string"?void 0:xe(p,o),E=typeof p=="string"?p:je(p);for await(const S of n[E]){const k=v?S.replace("*",v):S;if(k.endsWith(".d.ts")||k.endsWith(".d.cts")||k.endsWith(".d.mts"))continue;const T=N(c,k);try{const _=await this.resolve(T,l,{skipSelf:!0,...a});if(_)return _}catch(_){s.debug({context:[_],message:`Failed to resolve ${T} from ${o}`,prefix:"plugin:resolve-tsconfig-paths"})}}}}},"resolveTsconfigPathsPlugin");var Pe=Object.defineProperty,Oe=u((t,e)=>Pe(t,"name",{value:e,configurable:!0}),"f"),Ae=Object.defineProperty,We=Oe((t,e)=>Ae(t,"name",{value:e,configurable:!0}),"a"),Se=Object.defineProperty,D=We((t,e)=>Se(t,"name",{value:e,configurable:!0}),"u");const Te=D((t,e)=>{if(!e)return;const{config:s,path:r}=e;if(!s.compilerOptions)return;const{rootDirs:n}=s.compilerOptions;if(!n)return;const c=[];for(const i of n){if(i.startsWith("."))throw new Error(`Invalid rootDir value '.' in ${r}.`);if(i.startsWith(".."))throw new Error(`Invalid rootDir value '..' in ${r}.`);c.push(R(t,i))}return c},"getRootDirectories"),Ke=D((t,e,s)=>{const r=Te(t,s);return{name:"packem:resolve-tsconfig-root-dirs",async resolveId(n,c,i){if(!(r===void 0||r.length===0)&&n.startsWith("."))for(const o of r){const l=N(o,n),a=await this.resolve(l,c,{skipSelf:!0,...i});if(a)return e.debug({message:`Resolved ${n} to ${a.id} using rootDirs from tsconfig.json.`,prefix:"plugin:resolve-tsconfig-root-dirs"}),a.id}}}},"resolveTsconfigRootDirectories");var Ie=Object.defineProperty,Ne=u((t,e)=>Ie(t,"name",{value:e,configurable:!0}),"t"),Re=Object.defineProperty,Be=Ne((t,e)=>Re(t,"name",{value:e,configurable:!0}),"t"),Ce=Object.defineProperty,De=Be((t,e)=>Ce(t,"name",{value:e,configurable:!0}),"r");const Qe=De(()=>{const t=/\.(?:[mc]?js|jsx)$/;return{name:"packem:resolve-typescript-mjs-cjs",async resolveId(e,s,r){if(t.test(e)&&s)return await this.resolve(e.replace(/js(x?)$/,"ts$1"),s,r)}}},"resolveTypescriptMjsCts");export{Ke as D,Je as N,He as P,Qe as i,j as k};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z as f}from"../../../packem_shared/esbuildPlugin-
|
|
1
|
+
import{z as f}from"../../../packem_shared/esbuildPlugin-pPPsJB9N-YI_X-5wr.js";export{f as default};
|
package/dist/types.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { CheckPackageOptions } from "@arethetypeswrong/core";
|
|
2
2
|
import type { IsolatedDeclarationsTransformer, PackemRollupOptions, TransformerFn, TransformerName } from "@visulima/packem-rollup";
|
|
3
3
|
import type { InternalOXCTransformPluginConfig } from "@visulima/packem-rollup/oxc";
|
|
4
|
+
import type { NativeModulesOptions } from "@visulima/packem-rollup/plugin/native-modules";
|
|
4
5
|
import type { BuildContext, BuildHooks, Environment, Format, Mode, Runtime } from "@visulima/packem-share/types";
|
|
5
6
|
import type { FileCache } from "@visulima/packem-share/utils";
|
|
6
7
|
import type { StyleOptions } from "@visulima/rollup-plugin-css";
|
|
@@ -52,7 +53,7 @@ export interface AttwOptions extends CheckPackageOptions {
|
|
|
52
53
|
export interface BuildConfig extends DeepPartial<Omit<BuildOptions, "entries">> {
|
|
53
54
|
entries?: (BuildEntry | string)[];
|
|
54
55
|
hooks?: Partial<BuildHooks<InternalBuildOptions>>;
|
|
55
|
-
preset?: BuildPreset | "
|
|
56
|
+
preset?: BuildPreset | "none" | (NonNullable<unknown> & string);
|
|
56
57
|
}
|
|
57
58
|
export type BuildPreset = BuildConfig | (() => BuildConfig);
|
|
58
59
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visulima/packem",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.44",
|
|
4
4
|
"description": "A fast and modern bundler for Node.js and TypeScript.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"anolilab",
|
|
@@ -78,6 +78,22 @@
|
|
|
78
78
|
"types": "./dist/config/index.d.ts",
|
|
79
79
|
"default": "./dist/config/index.js"
|
|
80
80
|
},
|
|
81
|
+
"./config/preset/react": {
|
|
82
|
+
"types": "./dist/config/preset/react.d.ts",
|
|
83
|
+
"default": "./dist/config/preset/react.js"
|
|
84
|
+
},
|
|
85
|
+
"./config/preset/solid": {
|
|
86
|
+
"types": "./dist/config/preset/solid.d.ts",
|
|
87
|
+
"default": "./dist/config/preset/solid.js"
|
|
88
|
+
},
|
|
89
|
+
"./config/preset/svelte": {
|
|
90
|
+
"types": "./dist/config/preset/svelte.d.ts",
|
|
91
|
+
"default": "./dist/config/preset/svelte.js"
|
|
92
|
+
},
|
|
93
|
+
"./config/preset/vue": {
|
|
94
|
+
"types": "./dist/config/preset/vue.d.ts",
|
|
95
|
+
"default": "./dist/config/preset/vue.js"
|
|
96
|
+
},
|
|
81
97
|
"./css/loader/sourcemap": {
|
|
82
98
|
"types": "./dist/rollup/plugins/css/loaders/sourcemap.d.ts",
|
|
83
99
|
"default": "./dist/rollup/plugins/css/loaders/sourcemap.js"
|
|
@@ -171,11 +187,11 @@
|
|
|
171
187
|
"@visulima/fs": "4.0.4",
|
|
172
188
|
"@visulima/humanizer": "2.0.3",
|
|
173
189
|
"@visulima/package": "4.1.4",
|
|
174
|
-
"@visulima/packem-rollup": "1.0.0-alpha.
|
|
175
|
-
"@visulima/packem-share": "1.0.0-alpha.
|
|
190
|
+
"@visulima/packem-rollup": "1.0.0-alpha.32",
|
|
191
|
+
"@visulima/packem-share": "1.0.0-alpha.15",
|
|
176
192
|
"@visulima/pail": "3.2.0",
|
|
177
193
|
"@visulima/path": "1.4.0",
|
|
178
|
-
"@visulima/rollup-plugin-css": "1.0.0-alpha.
|
|
194
|
+
"@visulima/rollup-plugin-css": "1.0.0-alpha.12",
|
|
179
195
|
"@visulima/source-map": "2.0.3",
|
|
180
196
|
"@visulima/tabular": "^3.1.3",
|
|
181
197
|
"@visulima/tsconfig": "2.1.0",
|
|
@@ -185,7 +201,7 @@
|
|
|
185
201
|
"defu": "6.1.4",
|
|
186
202
|
"fastest-levenshtein": "1.0.16",
|
|
187
203
|
"hookable": "5.5.3",
|
|
188
|
-
"html-minifier-next": "^4.
|
|
204
|
+
"html-minifier-next": "^4.7.0",
|
|
189
205
|
"jiti": "2.6.0",
|
|
190
206
|
"magic-string": "0.30.19",
|
|
191
207
|
"mlly": "1.8.0",
|
|
@@ -206,7 +222,7 @@
|
|
|
206
222
|
"less": ">=4.2.0",
|
|
207
223
|
"lightningcss": ">=1.27.0",
|
|
208
224
|
"oxc-transform": ">=0.20.0",
|
|
209
|
-
"package-manager-detector": "^1.
|
|
225
|
+
"package-manager-detector": "^1.6.0",
|
|
210
226
|
"postcss": ">=8.4.47",
|
|
211
227
|
"postcss-load-config": ">=6.0.1",
|
|
212
228
|
"postcss-modules-extract-imports": ">=3.1.0",
|
|
@@ -217,6 +233,8 @@
|
|
|
217
233
|
"sass": ">=1.43.4",
|
|
218
234
|
"sass-embedded": ">=1.79.4",
|
|
219
235
|
"stylus": ">=0.63.0",
|
|
236
|
+
"unplugin-vue": ">=7",
|
|
237
|
+
"rollup-plugin-svelte": ">=7",
|
|
220
238
|
"sucrase": ">=3.35.0",
|
|
221
239
|
"typedoc": ">=0.26.0",
|
|
222
240
|
"typedoc-plugin-markdown": ">=4.2.0",
|
|
@@ -227,6 +245,9 @@
|
|
|
227
245
|
"@arethetypeswrong/core": {
|
|
228
246
|
"optional": true
|
|
229
247
|
},
|
|
248
|
+
"@babel/core": {
|
|
249
|
+
"optional": true
|
|
250
|
+
},
|
|
230
251
|
"@ckeditor/typedoc-plugins": {
|
|
231
252
|
"optional": true
|
|
232
253
|
},
|
|
@@ -278,6 +299,9 @@
|
|
|
278
299
|
"postcss-value-parser": {
|
|
279
300
|
"optional": true
|
|
280
301
|
},
|
|
302
|
+
"rollup-plugin-svelte": {
|
|
303
|
+
"optional": true
|
|
304
|
+
},
|
|
281
305
|
"sass": {
|
|
282
306
|
"optional": true
|
|
283
307
|
},
|
|
@@ -302,6 +326,9 @@
|
|
|
302
326
|
"typescript": {
|
|
303
327
|
"optional": true
|
|
304
328
|
},
|
|
329
|
+
"unplugin-vue": {
|
|
330
|
+
"optional": true
|
|
331
|
+
},
|
|
305
332
|
"which-pm-runs": {
|
|
306
333
|
"optional": true
|
|
307
334
|
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
var i=Object.defineProperty;var c=(e,r)=>i(e,"name",{value:r,configurable:!0});import{isAccessibleSync as s,readJsonSync as u,writeJsonSync as f}from"@visulima/fs";import{join as l}from"@visulima/path";var p=Object.defineProperty,g=c((e,r)=>p(e,"name",{value:r,configurable:!0}),"t"),v=Object.defineProperty,y=g((e,r)=>v(e,"name",{value:r,configurable:!0}),"a"),b=Object.defineProperty,m=y((e,r)=>b(e,"name",{value:r,configurable:!0}),"r");const w=m((e,r,n)=>{const a=new RegExp(`(<!-- ${r} -->)[\\s\\S]*?(<!-- /${r} -->)`,"g");if(a.test(e))return e.replace(a,`$1
|
|
2
|
-
${n}
|
|
3
|
-
$2`)},"replaceContentWithinMarker");var d=Object.defineProperty,S=c((e,r)=>d(e,"name",{value:r,configurable:!0}),"i");const x=S((e,r,n,a)=>{try{let t={};const o=l(r,"keystore.json");a&&s(o)&&(t=u(o)),t[e]===void 0&&(t[e]=new Date().toISOString()),f(o,t,{overwrite:!0})}catch(t){n.debug({context:[t],message:t.message,prefix:"cache-key-store"})}},"createOrUpdateKeyStorage");export{x as d,w as p};
|