@overlayed/cli 0.6.9 → 0.6.10
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/cli.mjs +11 -11
- package/package.json +21 -21
package/dist/cli.mjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{Command as e}from"@commander-js/extra-typings";import{scope as t,type as n}from"arktype";import r,{createWriteStream as i,existsSync as a,mkdirSync as o,readdirSync as s,unlinkSync as c,writeFileSync as l}from"fs";import{ensureDirSync as ee,ensureFileSync as te}from"fs-extra";import u,{join as ne}from"path";import d from"node:path";import f from"picocolors";import re,{createReadStream as
|
|
3
|
-
`].join(` `))}function
|
|
4
|
-
`].join(` `)}function
|
|
5
|
-
`].join(` `)}function
|
|
6
|
-
`].join(` `)}function
|
|
7
|
-
`].join(` `)}async function J(){let e=process.env.OVERLAYED_API_KEY,t=
|
|
8
|
-
Multiple config files found matching ${
|
|
9
|
-
`)),e.at(0)}var
|
|
2
|
+
import{Command as e}from"@commander-js/extra-typings";import{scope as t,type as n}from"arktype";import r,{createWriteStream as i,existsSync as a,mkdirSync as o,readdirSync as s,unlinkSync as c,writeFileSync as l}from"fs";import{ensureDirSync as ee,ensureFileSync as te}from"fs-extra";import u,{join as ne}from"path";import d from"node:path";import f from"picocolors";import re,{createReadStream as ie,existsSync as p,lstatSync as m,readFileSync as h}from"node:fs";import{glob as g}from"glob";import _,{fileURLToPath as v}from"node:url";import{createJiti as ae}from"jiti";import y,{isXiorError as b}from"xior";import oe from"update-notifier";import{readdir as se}from"node:fs/promises";import ce from"jszip";import{checkbox as le,input as ue,password as de}from"@inquirer/prompts";import{Listr as x}from"listr2";import{ListrInquirerPromptAdapter as S}from"@listr2/prompt-adapter-inquirer";import{exec as fe}from"child_process";import{promisify as pe}from"util";function C(e){throw e}function w(e){return Object.prototype.toString.call(e)===`[object Object]`}function T(e){return e?Array.isArray(e)?e:[e]:[]}function E(e){return{all:e||=new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(e){e(n)}),(r=e.get(`*`))&&r.slice().map(function(e){e(t,n)})}}}var D=class{emitter;constructor(){this.emitter=E()}on(e,t){T(e).forEach(e=>{this.emitter.on(e,t)})}off(e,t){T(e).forEach(e=>{this.emitter.off(e,t)})}emit(e,t){T(e).forEach(e=>{this.emitter.emit(e,t)})}removeAllListeners(){this.emitter.all.clear()}};function O(e,...t){return class extends e{static _instance;static getInstance(){return this._instance||=new e(...t),this._instance}static clearInstance(){this._instance=void 0}}}const k=O(class extends D{destroy(){this.removeAllListeners()}fatal(e,t,n){this.emit(`fatal`,{code:t,message:e,data:n,timestamp:Date.now()})}error(e,t,n){this.emit(`error`,{code:t,message:e,data:n,timestamp:Date.now()})}warn(e,t,n){this.emit(`warning`,{code:t,message:e,data:n,timestamp:Date.now()})}});var A=class{data;_schema;_defaultValue;_path;constructor(e){let{schema:t,default:n,path:r}=e;this._schema=t,this._defaultValue=n,this._path=r}set(e){let t=this._schema[`~standard`].validate(e);if(t instanceof Promise)throw Error(`StructuredConfigFile does not support async validation`);if(t.issues){this.reportInvalidConfigFile(t.issues);return}this.data=this.onBeforeSave(e),this.save(e)}get(e={}){return this.data?this.data:this.load(e)}getKey(e,t={}){return this.get(t)[e]}save(e){let t=this.onBeforeSave(e);try{te(this.getFilePath()),r.writeFileSync(this.getFilePath(),JSON.stringify(t,void 0,2))}catch{return}return this.data=t}load(e={}){let{createIfMissing:t=!0}=e;if(!this.fileExists(this.getFilePath())||!this.canReadWriteFile(this.getFilePath())){t&&this.save(this._defaultValue);let e=this.onAfterLoad(this._defaultValue);return t&&(this.data=e),e}try{let e=r.readFileSync(this.getFilePath(),`utf8`),t=this.onAfterLoad(this.parseStoredData(e));return this.data=t,t}catch{return this.data=this._defaultValue}}onBeforeSave(e){return e}onAfterLoad(e){return e}getFilePath(){return this._path}parseStoredData(e){try{let t=n(`string.json.parse`).to(`object`)(e);if(t instanceof n.errors)return this._defaultValue;let r=this._schema[`~standard`].validate(t);if(r instanceof Promise)throw Error(`StructuredConfigFile does not support async validation`);return r.issues?this.migrate(t,this._defaultValue):this.migrate(r.value,this._defaultValue)}catch{return this._defaultValue}}canReadWriteFile(e){try{return r.accessSync(e,r.constants.R_OK|r.constants.W_OK),!0}catch{return!1}}fileExists(e){try{return r.accessSync(e,r.constants.F_OK),!0}catch{return!1}}migrate(e,t){let n={...e};for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(r in e?e[r]!==null&&t[r]!==null&&typeof e[r]==`object`&&typeof t[r]==`object`&&!Array.isArray(e[r])&&!Array.isArray(t[r])?n[r]=this.migrate(e[r],t[r]):Array.isArray(t[r])&&(n[r]=e[r]):n[r]=t[r]);return n}reportInvalidConfigFile(e){k.getInstance().error(`Invalid config file`,`INVALID_CONFIG_FILE`,{issues:e.map(e=>e.message),filePath:this._path,data:this.data})}};const j=`**/overlayed.config.{js,ts,mts}`;async function M(){let e=P(),t=ae(import.meta.url);return(await Promise.all(e.map(async e=>e.endsWith(`.ts`)?[await t.import(e,{default:!0}),e]:[(await import(_.pathToFileURL(e).toString())).default,e]))).filter(([e])=>N(e)).map(([e,t])=>[e,t])}function N(e){return w(e)&&`app`in e}function P(){return g.globSync(j,{absolute:!0,cwd:process.cwd()})}const F=new A({path:u.normalize(`${process.env.APPDATA||process.env.HOME||`.`}/.overlayed/config.json`),default:void 0,schema:t({Account:n({email:`string`,apiKey:`string`})}).type({currentAccount:`Account | undefined`,accounts:`Account[]`}).or(`undefined`)});y.create({baseURL:`https://updater.stats.cc`,headers:{Accept:`application/json`,"Accept-Encoding":`gzip, deflate, br`}}).interceptors.request.use(e=>e);const I=y.create({baseURL:`https://api.overlayed.gg`,headers:{Accept:`application/json`,"Accept-Encoding":`gzip, deflate, br`}});let L;function R(e){L=e}I.interceptors.request.use(e=>{let t=L?.();return e.headers??={},t&&(e.headers[`X-Api-Key`]=t),e});function z(e){return e}function B(e){return e?t=>(e(t),t):z}function V(e,t){return I.post(`/v1/applications/${e}/bundles/jobs/upload`,t)}function me(e,t){return I.post(`/v1/applications/${e}/bundles/jobs/confirm`,{name:t})}function he(e,t){return I.get(`/v1/applications/${e}/bundles/jobs/${t}`)}const ge=B();function H(){return I.get(`/v1/auth/me`)}async function _e(e,t){if(e.method!==`PUT`)throw Error(`Unsupported presigned request method: ${e.method}`);let n=await fetch(e.url,{method:e.method,headers:{...e.headers,"Content-Length":t.byteLength.toString()},body:t});if(!n.ok){let e=await ve(n);throw Error(`Presigned upload failed (${n.status} ${n.statusText})${e?`: ${e}`:``}`)}}async function ve(e){try{let t=(await e.text()).trim();if(t.length===0)return;let n=2048;return t.length>n?`${t.slice(0,n)}…`:t}catch{return}}var ye=class{pattern;options;constructor(e,t){this.pattern=e,this.options=t}},U=class{defaultIgnore=[`overlayed.config.ts`];patterns=[];constructor(e){this.config=e}addGlobPattern(e,t){let n=this.resolveOptions(t),r=T(e);this.patterns.push(new ye(r,n))}async bundle(){let e=new ce;for(let t of this.patterns){let n={...t.options},r;r=n.cwd?typeof n.cwd==`string`?n.cwd:v(n.cwd):process.cwd(),d.isAbsolute(r)||(r=d.resolve(r)),n.absolute=!0,n.cwd=r;let i=await g(t.pattern,n),a=await this.getFilesPathsFromPaths(i);await Promise.all(a.map(async t=>{await this.zipFile(r,e,t)}))}return e}async validateFilePath(e){return Promise.resolve(!0)}async zipFile(e,t,n){let r=d.relative(e,n);if(r=r.replace(/^(\.\.\\|\.\.\/)+/,``),!p(n)){t.file(r,``,{compression:`DEFLATE`});return}if(!await this.validateFilePath(n))return;let i=ie(n,`binary`);t.file(r,i,{compression:`DEFLATE`})}resolveOptions(e){return{...e,ignore:[...T(e?.ignore),...this.defaultIgnore]}}async getFilesPathsFromPaths(e){return Promise.all(e.map(async e=>await this.getFilePathsFromPathRecursive(e))).then(e=>e.flat())}async getFilePathsFromPathRecursive(e){if(!p(e)||!m(e).isDirectory())return[e];let t=await se(e,{withFileTypes:!0});return(await Promise.all(t.map(async t=>{let n=d.join(e,t.name);return t.isDirectory()?await this.getFilePathsFromPathRecursive(n):[n]}))).flat()}},W=class extends Error{constructor(e){super(e),this.name=`CLIError`}},be=class extends U{defaultIgnore=[`overlayed.config.ts`,`**/installer/**`];mainFile;constructor(e){super(e),this.addGlobPattern(`package.json`)}async bundle(){let e=await super.bundle();return await this.validateZip(e),e}async validateFilePath(e){return e.endsWith(`package.json`)&&!e.includes(`node_modules`)&&await this.validatePackageJson(e),!0}async validateZip(e){await Promise.all([this.validateNoInstallFolder(e),this.validateMainFile(e)])}async validatePackageJson(e){if(!e)throw new G;let t=re.readFileSync(e,`utf-8`),r=n(`string.json.parse`).to({main:`string`,devDependencies:{"@overlayed/electron":`string`}})(t);if(r instanceof n.errors)throw new xe(r.summary);this.mainFile=r.main}async validateMainFile(e){if(!this.mainFile)throw new G;if(!e.file(u.normalize(this.mainFile)))throw new Se(this.mainFile)}async validateNoInstallFolder(e){let t=e.folder(`install`);if(t&&t.length>0)throw new Ce}},G=class extends W{constructor(){super(`package.json not found in bundle`),this.name=`PackageJsonNotFoundError`}},xe=class extends W{constructor(e){super(`package.json is invalid: ${e}`),this.name=`PackageJsonInvalidError`}},Se=class extends W{constructor(e){super(`referenced package.json main file ${e} not found in bundle`),this.name=`MainFileNotFoundError`}},Ce=class extends W{constructor(){super("folder `install` found in bundle is not allowed and is reserved for the installer"),this.name=`InstallFolderFoundError`}};const K=new class{write(e){process.stdout.write(e)}error(e){process.stderr.write(e)}},q={normal:we,success:Te,error:Ee,warning:De,info:Oe};function we(...e){return f.gray([...e,`
|
|
3
|
+
`].join(` `))}function Te(...e){return[f.green(`✔`),...e,`
|
|
4
|
+
`].join(` `)}function Ee(...e){return[f.red(`✘`),...e,`
|
|
5
|
+
`].join(` `)}function De(...e){return[f.yellow(`⚠`),...e,`
|
|
6
|
+
`].join(` `)}function Oe(...e){return[f.blue(`ℹ`),...e,`
|
|
7
|
+
`].join(` `)}async function J(){let e=process.env.OVERLAYED_API_KEY,t=F.get();if(e&&t?.currentAccount&&K.write(q.warning(`Using OVERLAYED_API_KEY environment variable instead of stored credentials.`)),!e&&!t?.currentAccount)throw new W(`Not authenticated. Run 'overlayed login' or set OVERLAYED_API_KEY.`);try{return(await H()).data.email}catch(t){if(!b(t))throw t;switch(t.response?.status){case 401:case 403:throw e?new W(`Authentication failed. Your OVERLAYED_API_KEY may be invalid or expired.`):new W(`Authentication failed. Your API key may be invalid or expired. Run 'overlayed login' to re-authenticate.`);default:throw Error(`API error occurred. Please try again later.`)}}}async function ke(){let e=await M();if(e.length===0)throw new W(`No config file found matching `+j);return e.length>1&&K.write(f.yellow(`
|
|
8
|
+
Multiple config files found matching ${j}, using the first one.
|
|
9
|
+
`)),e.at(0)}var Ae=class extends U{defaultIgnore=[`overlayed.config.ts`];constructor(e){super(e)}async bundle(){let e=await super.bundle();if(!Object.keys(e.files).some(e=>e.endsWith(`.html`)))throw new je;return e}},je=class extends Error{constructor(){super(`Site bundle must contain at least one HTML file`)}};async function Me(e={}){await J();try{await Ne(e)}catch(e){if(e instanceof W&&process.exit(1),b(e)){let t=e.response?.status;throw new W(`Request to ${(e.config?.baseURL??``)+(e.config?.url??``)} failed with status ${t}. ${JSON.stringify(e.response?.data,null,2)}`)}throw e}}async function Ne(e){let t=await new x([{title:`Locating overlayed.config.ts`,task:async t=>t.config=await Ie(e)},{task:async(t,n)=>{if(e.app||e.site){let n=[];if(e.app&&(t.config.app?n.push(`app`):K.write(q.warning(`${f.bold(`--app`)} flag provided but no app config found in overlayed.config.ts`))),e.site&&(t.config.site?n.push(`site`):K.write(q.warning(`${f.bold(`--site`)} flag provided but no site config found in overlayed.config.ts`))),n.length===0)throw Error(`No valid bundles selected. Ensure the selected bundle types have valid config in overlayed.config.ts`);t.targetBundles=n,K.write(f.green(`Selected bundles: `)+f.bold(n.join(`, `)))}else{let e=await n.prompt(S).run(...Fe(t.config));t.targetBundles=e,K.write(f.green(`Selected bundles: `)+f.bold(e.join(`, `)))}}},{task:async(t,n)=>{t.bundleNames={};for(let r of t.targetBundles){let i=r===`app`?e.app:e.site;if(typeof i==`string`)t.bundleNames[r]=i;else{let e=await n.prompt(S).run(ue,{message:`Enter a name for the ${r} bundle (leave empty for random name):`});t.bundleNames[r]=e.trim()||void 0}}},rendererOptions:{persistentOutput:!0}}]).run();function n(e,t){let n=new URL(`https://overlay.dev/deployments/jobs`);n.searchParams.set(`applicationId`,e);for(let e of t)n.searchParams.append(`jobId`,e);return n.toString()}await new x([{title:`Uploading bundles`,task:e=>new x(e.targetBundles.map((e,t)=>({title:`Uploading ${e} bundle`,task:async n=>{n.jobIds??=[];let r=n.bundleNames[e],i=await Pe(n.config,e,r);i&&(n.jobIds[t]=i.id)}})),{concurrent:!0,rendererOptions:{collapseSubtasks:!1}})},{title:`Waiting for bundles to be processed.`,task:t=>{if(e.wait===!1){if(t.jobIds.length>0){let e=n(t.config.applicationId,t.jobIds);K.write(f.yellow(`Skipping wait. Check bundle status in the dashboard: `)+f.blue(e))}return}return new x(t.jobIds.map((e,r)=>({title:`Waiting for ${f.bold(t.targetBundles[r])} bundle to be processed. This may take a couple minutes - you can wait for the bundles to appear in the dashboard here: ${f.blue(n(t.config.applicationId,t.jobIds))}`,task:async(t,i)=>{let a=0,o=t.targetBundles[r],s=n(t.config.applicationId,t.jobIds),c;for(;;){if(a++>100){i.title=`${f.red(`Timeout`)} - ${f.bold(o)} bundle processing is taking longer than expected. Check the dashboard: ${f.blue(s)}`;return}c=await he(t.config.applicationId,e);let n=c.data.status;if(n===`completed`){i.title=`${f.green(`Completed`)} - ${f.bold(o)} bundle has been processed successfully.`;break}if(n===`failed`){i.title=`${f.red(`Failed`)} - ${f.bold(o)} bundle processing failed.`;break}n===`pending`?i.title=`${f.yellow(`Queued`)} - ${f.bold(o)} bundle is queued for processing. Dashboard: ${f.blue(s)}`:n===`running`&&(i.title=`${f.green(`Running`)} - ${f.bold(o)} bundle is being processed. Dashboard: ${f.blue(s)}`),await new Promise(e=>setTimeout(e,3e3))}if(c.data.status===`failed`){let e=`An unknown error occurred.`;c.data.runs.length>0&&(e=c.data.runs[c.data.runs.length-1].error_message??e),i.title=`${f.red(`Failed`)} - ${f.bold(o)} bundle processing failed: ${e}`}}})),{concurrent:!0,exitOnError:!1,rendererOptions:{collapseSubtasks:!1}})}}]).run(t)}async function Pe(e,t,n){let r=await V(e.applicationId,{type:t,name:n}),i=await e[t]?.bundle()??C(Error(`No bundle found for `+t));e.debug&&i.forEach(e=>{console.log(`Zipping: `,e)});let a=await i.generateAsync({type:`nodebuffer`});if(e.debug){let e=`.overlayed/tmp`;ee(e),l(`${e}/debug-${t}.zip`,a);return}return await _e(r.data.upload_request,a),(await me(e.applicationId,r.data.asset_bundle_name)).data}function Fe(e){let t=e=>`(Disabled: No config found for "${e}" in overlayed.config.ts)`;return[le,{message:`Select your desired bundles to create and upload.`,shortcuts:{all:`a`,invert:`i`},choices:[{name:`App`,value:`app`,disabled:e.app?void 0:t(`app`)},{name:`Site`,value:`site`,disabled:e.site?void 0:t(`site`)}]}]}async function Ie(e){let[t,n]=await ke();return{...t,applicationId:ge(t.applicationId),app:Le(t,n,e),site:Re(t,n,e),debug:e.debug}}function Le(e,t,n){let r=new be(e),i=Y(t,e.app.baseDir);return n.debug&&console.log(`[App] Bundling files from: `,i),r.addGlobPattern(e.app.include,{ignore:e.app.exclude,cwd:i}),r}function Re(e,t,n){if(!e.site)return;let r=new Ae(e),i=Y(t,e.site.baseDir);return n.debug&&console.log(`[Site] Bundling files from: `,i),r.addGlobPattern(e.site.include,{ignore:e.site.exclude,cwd:i}),r}function Y(e,t){return t?u.resolve(u.dirname(e),t):u.dirname(e)}const ze=new e(`bundle`).description(`Bundle the app and site for deployment.`).addHelpText(`after`,`
|
|
10
10
|
Documentation:
|
|
11
11
|
http://docs.overlayed.gg/cli/bundle
|
|
12
|
-
`).helpCommand(`overlayed bundle`).option(`--debug`,`Enable debug mode`,!1).option(`--app`,`Bundle the app
|
|
12
|
+
`).helpCommand(`overlayed bundle`).option(`--debug`,`Enable debug mode`,!1).option(`--app [name]`,`Bundle the app (optional: provide a custom name, random if omitted)`).option(`--site [name]`,`Bundle the site (optional: provide a custom name, random if omitted)`).option(`--no-wait`,`Skip waiting for bundle processing to complete`).action(Me);function Be(e){return`https://overlay.dev${e}`}const X=pe(fe);async function Ve(){let e=Be(`/user-settings/api-keys?cli=true`);if(await He(e),!await de({message:`To authenticate, you'll need an API Key. We've opened the page to create one in your browser.\n\n${q.info(e)}\n\nOnce you have it, enter it here:`,async validate(e){R(()=>e);try{let t={email:(await H()).data.email,apiKey:e},n=F.get();F.set({...n,currentAccount:t,accounts:n?.accounts.concat(t)??[t]})}catch(e){if(!b(e))return`Unknown error has occurred: ${e}`;switch(e.response?.status){case 401:case 403:return`Invalid API key, please try again.`;default:return`API error, please try again later.`}}return R(()=>F.get()?.currentAccount?.apiKey),!0}}))throw Error(`Login unknown error - this should never happen`);let t=F.get();if(!t?.currentAccount)throw Error(`Could not get config after login`);let n=t.currentAccount.email;K.write(q.success(`Authentication Complete - Logged in as ${n}`))}async function He(e){let t=process.platform,n;switch(t){case`darwin`:n=`open "${e}"`;break;case`win32`:n=`start "" "${e}"`;break;default:n=`xdg-open "${e}"`;break}try{await X(n)}catch{}}const Ue=new e(`login`).description(`Authenticate with the Overlayed platform.`).helpCommand(`overlayed login`).action(Ve);async function We(){let e=await J(),t=F.get();if(!t){K.write(q.normal(`Not currently logged in.`));return}let n=t.accounts.filter(t=>t.email!==e);F.set({...t,currentAccount:void 0,accounts:n}),K.write(q.normal(`Logged out from ${e}`))}const Ge=new e(`logout`).description(`Log out of the currently authenticated account.`).helpCommand(`overlayed logout`).action(We);async function Ke(){let e=await J();return K.write(q.normal(`Logged in as ${e}`)),e}const qe=new e(`whoami`).description(`Display information about the currently authenticated user.`).addHelpText(`after`,`
|
|
13
13
|
Documentation:
|
|
14
14
|
http://docs.overlayed.gg/cli/whoami
|
|
15
|
-
`).helpCommand(`overlayed whoami`).action(()=>{
|
|
15
|
+
`).helpCommand(`overlayed whoami`).action(()=>{Ke()});let Z=null;function Je(){if(Z)return Z;try{let e=new URL(`../package.json`,import.meta.url),t=JSON.parse(h(e,`utf8`));if(typeof t==`object`&&t&&`name`in t&&`version`in t&&typeof t.name==`string`&&typeof t.version==`string`)return Z={name:t.name,version:t.version},Z;throw Error(`Invalid package.json structure`)}catch{throw Error(`Failed to read package.json`)}}const Q=Je();oe({pkg:Q}).notify({defer:!0}),R(()=>process.env.OVERLAYED_API_KEY??F.get()?.currentAccount?.apiKey);const $=new e;$.name(`overlayed`).description(`Overlayed CLI`).version(Q.version,`-v, --version`).addHelpText(`before`,`
|
|
16
16
|
${f.bold(f.cyan(`Overlayed`))} is revolutionizing game overlays.
|
|
17
|
-
`).action(()=>$.help()),$.addCommand(
|
|
17
|
+
`).action(()=>$.help()),$.addCommand(ze).addCommand(Ue).addCommand(Ge).addCommand(qe).configureOutput({writeErr:e=>process.stderr.write(e)});try{await $.parseAsync(process.argv)}catch(e){e instanceof W&&(process.stderr.write(q.error(e.message)),process.exit(1)),console.error(`Unexpected error:`),console.error(e),process.exit(1)}export{};
|
package/package.json
CHANGED
|
@@ -1,39 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@overlayed/cli",
|
|
3
|
-
"
|
|
3
|
+
"version": "0.6.10",
|
|
4
|
+
"description": "Overlayed CLI",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"typescript"
|
|
7
|
+
],
|
|
4
8
|
"homepage": "https://overlayed.gg",
|
|
5
9
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
10
|
+
"author": "overlayed.gg",
|
|
6
11
|
"repository": {
|
|
7
|
-
"
|
|
8
|
-
"
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/overlayed-gg/overlayed-typescript"
|
|
9
14
|
},
|
|
10
|
-
"keywords": [
|
|
11
|
-
"typescript"
|
|
12
|
-
],
|
|
13
|
-
"version": "0.6.9",
|
|
14
|
-
"description": "Overlayed CLI",
|
|
15
|
-
"type": "module",
|
|
16
15
|
"bin": {
|
|
17
16
|
"overlayed": "./dist/cli.mjs"
|
|
18
17
|
},
|
|
19
18
|
"files": [
|
|
20
19
|
"dist/**/*"
|
|
21
20
|
],
|
|
21
|
+
"type": "module",
|
|
22
22
|
"publishConfig": {
|
|
23
23
|
"access": "public"
|
|
24
24
|
},
|
|
25
|
-
"devDependencies": {
|
|
26
|
-
"@ark/attest": "^0.49.0",
|
|
27
|
-
"@types/fs-extra": "^11.0.4",
|
|
28
|
-
"@types/update-notifier": "^6.0.8",
|
|
29
|
-
"tsdown": "0.18.1",
|
|
30
|
-
"typescript": "^5.9.3",
|
|
31
|
-
"vitest": "^3.2.4",
|
|
32
|
-
"@overlayed/api": "0.0.5",
|
|
33
|
-
"@overlayed/shared-node": "0.0.4",
|
|
34
|
-
"@overlayed/utils": "0.0.4",
|
|
35
|
-
"@overlayed/utils-node": "0.0.4"
|
|
36
|
-
},
|
|
37
25
|
"dependencies": {
|
|
38
26
|
"@commander-js/extra-typings": "^14.0.0",
|
|
39
27
|
"@inquirer/prompts": "^7.10.1",
|
|
@@ -49,6 +37,18 @@
|
|
|
49
37
|
"update-notifier": "^7.3.1",
|
|
50
38
|
"xior": "^0.7.8"
|
|
51
39
|
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@ark/attest": "^0.49.0",
|
|
42
|
+
"@types/fs-extra": "^11.0.4",
|
|
43
|
+
"@types/update-notifier": "^6.0.8",
|
|
44
|
+
"tsdown": "0.18.1",
|
|
45
|
+
"typescript": "^5.9.3",
|
|
46
|
+
"vitest": "^3.2.4",
|
|
47
|
+
"@overlayed/api": "0.0.5",
|
|
48
|
+
"@overlayed/shared-node": "0.0.4",
|
|
49
|
+
"@overlayed/utils": "0.0.4",
|
|
50
|
+
"@overlayed/utils-node": "0.0.4"
|
|
51
|
+
},
|
|
52
52
|
"engines": {
|
|
53
53
|
"node": ">=20.10.0"
|
|
54
54
|
}
|