@shell-shock/plugin-upgrade 0.1.10 → 0.1.12

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.
@@ -208,14 +208,6 @@ function LocateLockfileFunctionDeclaration() {
208
208
  */
209
209
  function GetPackageManagerFunctionDeclaration() {
210
210
  return [
211
- __alloy_js_core.code`declare global {
212
- var Bun: any;
213
- namespace NodeJS {
214
- interface ProcessVersions {
215
- bun?: string;
216
- }
217
- }
218
- } `,
219
211
  (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
220
212
  (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript.TypeDeclaration, {
221
213
  "export": true,
@@ -1 +1 @@
1
- {"version":3,"file":"upgrade-builtin.d.cts","names":[],"sources":["../../src/components/upgrade-builtin.tsx"],"sourcesContent":[],"mappings":";;;;;;;AA6CgB,iBAAA,oCAAA,CAAA,CAAoC,EAAA,eAAA,CAAA,QAAA;AAgGpD;AAuFA;AAkJA;AA6KgB,iBAtZA,iCAAA,CAAA,CAsZmC,EAtZF,eAAA,CAAA,QAsZE;AA2CnD;AAyEA;AAyFA;AA6BgB,iBAziBA,oCAAA,CAAA,CAyiB4C,EAziBR,eAAA,CAAA,QAyiBQ;AAuD5D;AAoIA;AAQA;iBA1lBgB,kCAAA,CAAA,GAAkC,eAAA,CAAA;;;;iBA6KlC,mCAAA,CAAA,GAAmC,eAAA,CAAA;;;;iBA2CnC,oCAAA,CAAA,GAAoC,eAAA,CAAA;;;;iBAyEpC,0BAAA,CAAA,GAA0B,eAAA,CAAA;;;;iBAyF1B,yCAAA,CAAA,GAAyC,eAAA,CAAA;;;;iBA6BzC,4CAAA,CAAA,GAA4C,eAAA,CAAA;;;;iBAuD5C,kCAAA,CAAA,GAAkC,eAAA,CAAA;UAoIjC,mBAAA,SAA4B,KAC3C;;;;iBAOc,cAAA,QAAsB,sBAAmB,eAAA,CAAA"}
1
+ {"version":3,"file":"upgrade-builtin.d.cts","names":[],"sources":["../../src/components/upgrade-builtin.tsx"],"sourcesContent":[],"mappings":";;;;;;;AA6CgB,iBAAA,oCAAA,CAAA,CAAoC,EAAA,eAAA,CAAA,QAAA;AAgGpD;AAuFA;AA0IA;AA6KgB,iBA9YA,iCAAA,CAAA,CA8YmC,EA9YF,eAAA,CAAA,QA8YE;AA2CnD;AAyEA;AAyFA;AA6BgB,iBAjiBA,oCAAA,CAAA,CAiiB4C,EAjiBR,eAAA,CAAA,QAiiBQ;AAuD5D;AAoIA;AAQA;iBA1lBgB,kCAAA,CAAA,GAAkC,eAAA,CAAA;;;;iBA6KlC,mCAAA,CAAA,GAAmC,eAAA,CAAA;;;;iBA2CnC,oCAAA,CAAA,GAAoC,eAAA,CAAA;;;;iBAyEpC,0BAAA,CAAA,GAA0B,eAAA,CAAA;;;;iBAyF1B,yCAAA,CAAA,GAAyC,eAAA,CAAA;;;;iBA6BzC,4CAAA,CAAA,GAA4C,eAAA,CAAA;;;;iBAuD5C,kCAAA,CAAA,GAAkC,eAAA,CAAA;UAoIjC,mBAAA,SAA4B,KAC3C;;;;iBAOc,cAAA,QAAsB,sBAAmB,eAAA,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"upgrade-builtin.d.mts","names":[],"sources":["../../src/components/upgrade-builtin.tsx"],"sourcesContent":[],"mappings":";;;;;;;AA6CgB,iBAAA,oCAAA,CAAA,CAAoC,EAAA,eAAA,CAAA,QAAA;AAgGpD;AAuFA;AAkJA;AA6KgB,iBAtZA,iCAAA,CAAA,CAsZmC,EAtZF,eAAA,CAAA,QAsZE;AA2CnD;AAyEA;AAyFA;AA6BgB,iBAziBA,oCAAA,CAAA,CAyiB4C,EAziBR,eAAA,CAAA,QAyiBQ;AAuD5D;AAoIA;AAQA;iBA1lBgB,kCAAA,CAAA,GAAkC,eAAA,CAAA;;;;iBA6KlC,mCAAA,CAAA,GAAmC,eAAA,CAAA;;;;iBA2CnC,oCAAA,CAAA,GAAoC,eAAA,CAAA;;;;iBAyEpC,0BAAA,CAAA,GAA0B,eAAA,CAAA;;;;iBAyF1B,yCAAA,CAAA,GAAyC,eAAA,CAAA;;;;iBA6BzC,4CAAA,CAAA,GAA4C,eAAA,CAAA;;;;iBAuD5C,kCAAA,CAAA,GAAkC,eAAA,CAAA;UAoIjC,mBAAA,SAA4B,KAC3C;;;;iBAOc,cAAA,QAAsB,sBAAmB,eAAA,CAAA"}
1
+ {"version":3,"file":"upgrade-builtin.d.mts","names":[],"sources":["../../src/components/upgrade-builtin.tsx"],"sourcesContent":[],"mappings":";;;;;;;AA6CgB,iBAAA,oCAAA,CAAA,CAAoC,EAAA,eAAA,CAAA,QAAA;AAgGpD;AAuFA;AA0IA;AA6KgB,iBA9YA,iCAAA,CAAA,CA8YmC,EA9YF,eAAA,CAAA,QA8YE;AA2CnD;AAyEA;AAyFA;AA6BgB,iBAjiBA,oCAAA,CAAA,CAiiB4C,EAjiBR,eAAA,CAAA,QAiiBQ;AAuD5D;AAoIA;AAQA;iBA1lBgB,kCAAA,CAAA,GAAkC,eAAA,CAAA;;;;iBA6KlC,mCAAA,CAAA,GAAmC,eAAA,CAAA;;;;iBA2CnC,oCAAA,CAAA,GAAoC,eAAA,CAAA;;;;iBAyEpC,0BAAA,CAAA,GAA0B,eAAA,CAAA;;;;iBAyF1B,yCAAA,CAAA,GAAyC,eAAA,CAAA;;;;iBA6BzC,4CAAA,CAAA,GAA4C,eAAA,CAAA;;;;iBAuD5C,kCAAA,CAAA,GAAkC,eAAA,CAAA;UAoIjC,mBAAA,SAA4B,KAC3C;;;;iBAOc,cAAA,QAAsB,sBAAmB,eAAA,CAAA"}
@@ -206,14 +206,6 @@ function LocateLockfileFunctionDeclaration() {
206
206
  */
207
207
  function GetPackageManagerFunctionDeclaration() {
208
208
  return [
209
- code`declare global {
210
- var Bun: any;
211
- namespace NodeJS {
212
- interface ProcessVersions {
213
- bun?: string;
214
- }
215
- }
216
- } `,
217
209
  createComponent(Spacing, {}),
218
210
  createComponent(TypeDeclaration, {
219
211
  "export": true,
@@ -1 +1 @@
1
- {"version":3,"file":"upgrade-builtin.mjs","names":["code","Show","splitProps","ElseClause","ElseIfClause","FunctionDeclaration","IfStatement","InterfaceDeclaration","VarDeclaration","Spacing","usePowerlines","InterfaceMember","TSDoc","TSDocParam","TSDocRemarks","TSDocReturns","TypeDeclaration","BuiltinFile","defu","LocatePackageJsonFunctionDeclaration","context","_$createComponent","name","doc","children","optional","type","heading","async","parameters","default","returnType","initializer","_$createIntrinsic","condition","packageJson","LocateLockfileFunctionDeclaration","GetPackageManagerFunctionDeclaration","FetchNpmPackageFunctionDeclaration","GetLatestVersionFunctionDeclaration","GetUpgradeCommandFunctionDeclaration","UpgradeFunctionDeclaration","UpdateVersionCheckFileFunctionDeclaration","IsCheckForUpdatesRequiredFunctionDeclaration","config","upgrade","staleTime","CheckForUpdatesFunctionDeclaration","version","_$memo","UpgradeBuiltin","props","rest","_$mergeProps","id","description","imports","builtinImports","console","env","utils","when","Boolean"],"sources":["../../src/components/upgrade-builtin.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { code, Show, splitProps } from \"@alloy-js/core\";\nimport {\n ElseClause,\n ElseIfClause,\n FunctionDeclaration,\n IfStatement,\n InterfaceDeclaration,\n VarDeclaration\n} from \"@alloy-js/typescript\";\nimport { Spacing } from \"@powerlines/plugin-alloy/core/components/spacing\";\nimport { usePowerlines } from \"@powerlines/plugin-alloy/core/contexts/context\";\nimport {\n InterfaceMember,\n TSDoc,\n TSDocParam,\n TSDocRemarks,\n TSDocReturns,\n TypeDeclaration\n} from \"@powerlines/plugin-alloy/typescript\";\nimport type { BuiltinFileProps } from \"@powerlines/plugin-alloy/typescript/components/builtin-file\";\nimport { BuiltinFile } from \"@powerlines/plugin-alloy/typescript/components/builtin-file\";\nimport defu from \"defu\";\nimport type { UpgradePluginContext } from \"../types/plugin\";\n\n/**\n * The `locatePackageJson` handler function declaration code for the Shell Shock project.\n */\nexport function LocatePackageJsonFunctionDeclaration() {\n const context = usePowerlines<UpgradePluginContext>();\n\n return (\n <>\n <InterfaceDeclaration\n export\n name=\"LocatePackageJsonOptions\"\n doc=\"Options for the `locatePackageJson` handler function.\">\n <InterfaceMember\n name=\"cwd\"\n optional\n type=\"string\"\n doc=\"The current working directory to use. If not provided, the process's current working directory will be used.\"\n />\n <Spacing />\n <InterfaceMember\n name=\"isDependencyRequired\"\n optional\n type=\"boolean\"\n doc=\"Whether to only locate a package.json file if it contains the application as a dependency. If set to `true`, the function will check if the located package.json file has the application listed as a dependency in its dependencies, devDependencies, peerDependencies, or optionalDependencies before returning its path. This can be useful in monorepo setups where multiple package.json files may exist, but only the one that includes the application as a dependency is relevant for upgrade purposes.\"\n />\n </InterfaceDeclaration>\n <Spacing />\n <TSDoc heading=\"Locate the package.json file currently being used by the command-line/workspace.\">\n <TSDocRemarks>\n {`This function is used to determine the package.json file currently being used by the command-line/workspace. It can be used in the CLI upgrade command to check if the application is using npm, yarn, or another package manager.`}\n </TSDocRemarks>\n <Spacing />\n <TSDocParam name=\"options\">\n {`The options for the \\`locatePackageJson\\` function. Currently, there are no options available, but this parameter is included for future extensibility.`}\n </TSDocParam>\n <TSDocReturns>\n {`A promise that resolves to the package.json file currently being used by the command-line/workspace as a string.`}\n </TSDocReturns>\n </TSDoc>\n <FunctionDeclaration\n export\n async\n name=\"locatePackageJson\"\n parameters={[\n {\n name: \"options\",\n type: \"LocatePackageJsonOptions\",\n default: \"{}\"\n }\n ]}\n returnType=\"string | undefined\">\n <VarDeclaration\n let\n name=\"currentPath\"\n type=\"string\"\n initializer={code`options.cwd ?? process.cwd(); `}\n />\n <hbr />\n <VarDeclaration\n let\n name=\"parentPath\"\n initializer={code`resolve(currentPath, \"..\"); `}\n />\n <Spacing />\n {code`while (parentPath !== currentPath && currentPath !== homePath && currentPath !== tempPath) { `}\n <VarDeclaration\n const\n name=\"packageJsonPath\"\n initializer={code`join(currentPath, \"package.json\"); `}\n />\n <IfStatement condition={code`existsSync(packageJsonPath)`}>\n <IfStatement condition={code`options.isDependencyRequired`}>\n <VarDeclaration\n const\n name=\"packageJson\"\n initializer={code`JSON.parse(await readFile(packageJsonPath, \"utf8\")); `}\n />\n <IfStatement\n condition={code`Object.keys(packageJson.dependencies || {}).concat(Object.keys(packageJson.devDependencies || {})).concat(Object.keys(packageJson.peerDependencies || {})).concat(Object.keys(packageJson.optionalDependencies || {})).some(dep => dep === \"${context.packageJson.name}\" || dep.startsWith(\"${context.packageJson.name}@\"))`}>\n {code`return packageJsonPath; `}\n </IfStatement>\n </IfStatement>\n <ElseClause>{code`return packageJsonPath; `}</ElseClause>\n </IfStatement>\n <ElseClause>\n {code`currentPath = parentPath;\n parentPath = resolve(currentPath, \"..\"); `}\n </ElseClause>\n {code` }\n\n return undefined; `}\n </FunctionDeclaration>\n </>\n );\n}\n\n/**\n * The `locateLockfile` handler function declaration code for the Shell Shock project.\n */\nexport function LocateLockfileFunctionDeclaration() {\n return (\n <>\n <InterfaceDeclaration\n export\n name=\"LocateLockfileOptions\"\n doc=\"Options for the `locateLockfile` handler function.\">\n <InterfaceMember\n name=\"cwd\"\n optional\n type=\"string\"\n doc=\"The current working directory to use. If not provided, the process's current working directory will be used.\"\n />\n </InterfaceDeclaration>\n <Spacing />\n <TSDoc heading=\"Locate the lockfile currently being used by the command-line/workspace.\">\n <TSDocRemarks>\n {`This function is used to determine the lockfile currently being used by the command-line/workspace. It can be used in the CLI upgrade command to check if the application is using npm, yarn, or another package manager.`}\n </TSDocRemarks>\n <Spacing />\n <TSDocParam name=\"options\">\n {`The options for the \\`locateLockfile\\` function. Currently, there are no options available, but this parameter is included for future extensibility.`}\n </TSDocParam>\n <TSDocReturns>\n {`A promise that resolves to the lockfile currently being used by the command-line/workspace as a string.`}\n </TSDocReturns>\n </TSDoc>\n <FunctionDeclaration\n export\n name=\"locateLockfile\"\n parameters={[\n {\n name: \"options\",\n type: \"LocateLockfileOptions\",\n default: \"{}\"\n }\n ]}\n returnType=\"string | undefined\">\n <VarDeclaration\n let\n name=\"currentPath\"\n type=\"string\"\n initializer={code`options.cwd ?? process.cwd(); `}\n />\n <hbr />\n <VarDeclaration\n let\n name=\"parentPath\"\n initializer={code`resolve(currentPath, \"..\"); `}\n />\n <Spacing />\n {code`while (parentPath !== currentPath && currentPath !== homePath && currentPath !== tempPath) { `}\n <VarDeclaration\n const\n name=\"lockfile\"\n initializer={code`[\n \"package-lock.json\",\n \"npm-shrinkwrap.json\",\n \"yarn.lock\",\n \"pnpm-lock.yaml\",\n \"pnpm-workspace.yaml\",\n \"deno.lock\",\n \"deno.json\",\n \"deno.jsonc\",\n \"bun.lock\",\n \"bun.lockb\"\n ].find(lf => existsSync(join(currentPath, lf))); `}\n />\n <hbr />\n <IfStatement condition={code`lockfile`}>\n {code`return lockfile; `}\n </IfStatement>\n <ElseClause>\n {code`currentPath = parentPath;\n parentPath = resolve(currentPath, \"..\"); `}\n </ElseClause>\n {code` }\n\n return undefined; `}\n </FunctionDeclaration>\n </>\n );\n}\n\n/**\n * The `getPackageManager` handler function declaration code for the Shell Shock project.\n */\nexport function GetPackageManagerFunctionDeclaration() {\n return (\n <>\n {code`declare global {\n var Bun: any;\n namespace NodeJS {\n interface ProcessVersions {\n bun?: string;\n }\n }\n } `}\n <Spacing />\n <TypeDeclaration\n export\n name=\"GetPackageManagerOptions\"\n doc=\"Options for the `getPackageManager` handler function.\">{code`LocateLockfileOptions;`}</TypeDeclaration>\n <Spacing />\n <TSDoc heading=\"Get the package manager currently being used by the command-line/workspace.\">\n <TSDocRemarks>\n {`This function is used to determine the package manager currently being used by the command-line/workspace. It can be used in the CLI upgrade command to check if the application is using npm, yarn, or another package manager.`}\n </TSDocRemarks>\n <Spacing />\n <TSDocParam name=\"options\">\n {`The options for the \\`getPackageManager\\` function. Currently, there are no options available, but this parameter is included for future extensibility.`}\n </TSDocParam>\n <TSDocReturns>\n {`A promise that resolves to the package manager currently being used by the command-line/workspace as a string.`}\n </TSDocReturns>\n </TSDoc>\n <FunctionDeclaration\n export\n async\n name=\"getPackageManager\"\n parameters={[\n {\n name: \"options\",\n type: \"GetPackageManagerOptions\",\n default: \"{}\"\n }\n ]}\n returnType={code`\"npm\" | \"yarn\" | \"deno\" | \"pnpm\" | \"bun\"`}>\n <VarDeclaration\n const\n name=\"userAgent\"\n type=\"string\"\n initializer={code`process.env.npm_config_user_agent ?? \"\"; `}\n />\n <hbr />\n <VarDeclaration\n const\n name=\"execPath\"\n type=\"string\"\n initializer={code`process.env.npm_execpath ?? \"\"; `}\n />\n <Spacing />\n <IfStatement\n condition={code`userAgent.startsWith(\"yarn\") || execPath.includes(\"yarn\")`}>\n {code`return \"yarn\"; `}\n </IfStatement>\n <ElseIfClause\n condition={code`userAgent.startsWith(\"pnpm\") || execPath.includes(\"pnpm\")`}>\n {code`return \"pnpm\"; `}\n </ElseIfClause>\n <ElseIfClause\n condition={code`userAgent.startsWith(\"bun\") || execPath.includes(\"bun\") || typeof Bun !== \"undefined\" || process.versions.bun`}>\n {code`return \"bun\"; `}\n </ElseIfClause>\n <ElseClause>\n <VarDeclaration\n const\n name=\"lockfilePath\"\n initializer={code`locateLockfile(options); `}\n />\n <Spacing />\n <IfStatement condition={code`lockfilePath === \"yarn.lock\"`}>\n {code`return \"yarn\"; `}\n </IfStatement>\n <ElseIfClause\n condition={code`lockfilePath === \"deno.lock\" || lockfilePath === \"deno.json\" || lockfilePath === \"deno.jsonc\"`}>\n {code`return \"deno\"; `}\n </ElseIfClause>\n <ElseIfClause\n condition={code`lockfilePath === \"pnpm-lock.yaml\" || lockfilePath === \"pnpm-workspace.yaml\"`}>\n {code`return \"pnpm\"; `}\n </ElseIfClause>\n <ElseIfClause\n condition={code`lockfilePath === \"bun.lock\" || lockfilePath === \"bun.lockb\"`}>\n {code`return \"bun\"; `}\n </ElseIfClause>\n <ElseClause>\n <VarDeclaration\n const\n name=\"packageJsonPath\"\n initializer={code`await locatePackageJson(options); `}\n />\n <IfStatement\n condition={code`packageJsonPath && existsSync(packageJsonPath)`}>\n <VarDeclaration\n const\n name=\"packageJson\"\n initializer={code`JSON.parse(await readFile(packageJsonPath, \"utf8\")); `}\n />\n <IfStatement\n condition={code`packageJson.devEngines?.packageManager?.name && typeof packageJson.devEngines.packageManager.name === \"string\" && [\"npm\", \"yarn\", \"pnpm\", \"deno\", \"bun\"].includes(packageJson.devEngines.packageManager.name)`}>\n {code`return packageJson.devEngines.packageManager.name; `}\n </IfStatement>\n <Spacing />\n <VarDeclaration\n const\n name=\"dependencies\"\n initializer={code`{\n ...packageJson.dependencies,\n ...packageJson.devDependencies,\n ...packageJson.peerDependencies,\n ...packageJson.optionalDependencies,\n }; `}\n />\n <IfStatement\n condition={code`Object.keys(dependencies).some(dep => dep === \"yarn\" || dep.startsWith(\"yarn@\") || dep === \"yarnpkg\" || dep.startsWith(\"yarnpkg@\"))`}>\n {code`return \"yarn\"; `}\n </IfStatement>\n <ElseIfClause\n condition={code`Object.keys(dependencies).some(dep => dep === \"bun\" || dep.startsWith(\"bun@\"))`}>\n {code`return \"bun\"; `}\n </ElseIfClause>\n <ElseIfClause\n condition={code`Object.keys(dependencies).some(dep => dep === \"pnpm\" || dep.startsWith(\"pnpm@\"))`}>\n {code`return \"pnpm\"; `}\n </ElseIfClause>\n <ElseIfClause\n condition={code`Object.keys(dependencies).some(dep => dep === \"deno\" || dep.startsWith(\"deno@\"))`}>\n {code`return \"deno\"; `}\n </ElseIfClause>\n </IfStatement>\n <Spacing />\n {code`return \"npm\"; `}\n </ElseClause>\n </ElseClause>\n </FunctionDeclaration>\n </>\n );\n}\n\n/**\n * The `fetchNpmPackage` handler function declaration code for the Shell Shock project.\n */\nexport function FetchNpmPackageFunctionDeclaration() {\n return (\n <>\n <InterfaceDeclaration\n export\n name=\"NpmPackageMaintainer\"\n doc=\"Represents a maintainer of an npm package.\">\n <InterfaceMember\n name=\"email\"\n type=\"string\"\n doc=\"The email of the npm package maintainer.\"\n />\n <hbr />\n <InterfaceMember\n name=\"username\"\n type=\"string\"\n doc=\"The username of the npm package maintainer.\"\n />\n </InterfaceDeclaration>\n <Spacing />\n <InterfaceDeclaration\n export\n name=\"NpmPackageLinks\"\n doc=\"Represents the links of an npm package.\">\n <InterfaceMember\n name=\"homepage\"\n type=\"string\"\n optional\n doc=\"The homepage of the npm package.\"\n />\n <hbr />\n <InterfaceMember\n name=\"repository\"\n type=\"string\"\n optional\n doc=\"The repository of the npm package.\"\n />\n <hbr />\n <InterfaceMember\n name=\"bugs\"\n type=\"string\"\n optional\n doc=\"The bugs page of the npm package.\"\n />\n <hbr />\n <InterfaceMember\n name=\"npm\"\n type=\"string\"\n optional\n doc=\"The npm page of the npm package.\"\n />\n </InterfaceDeclaration>\n <Spacing />\n <InterfaceDeclaration\n export\n name=\"NpmPackage\"\n doc=\"Represents an npm package.\">\n <InterfaceMember\n name=\"name\"\n type=\"string\"\n doc=\"The name of the npm package.\"\n />\n <hbr />\n <InterfaceMember\n name=\"date\"\n type=\"Date\"\n doc=\"The date when the npm package was last updated.\"\n />\n <hbr />\n <InterfaceMember\n name=\"version\"\n type=\"string\"\n doc=\"The version of the npm package.\"\n />\n <hbr />\n <InterfaceMember\n name=\"description\"\n type=\"string\"\n optional\n doc=\"The description of the npm package.\"\n />\n <hbr />\n <InterfaceMember\n name=\"keywords\"\n type=\"string[]\"\n doc=\"A list of keywords associated with the npm package.\"\n />\n <hbr />\n <InterfaceMember\n name=\"license\"\n type=\"string\"\n optional\n doc=\"The license of the npm package.\"\n />\n <hbr />\n <InterfaceMember\n name=\"maintainers\"\n type=\"NpmPackageMaintainer[]\"\n doc=\"The maintainers of the npm package.\"\n />\n <hbr />\n <InterfaceMember\n name=\"links\"\n type=\"NpmPackageLinks\"\n doc=\"The links of the npm package.\"\n />\n <hbr />\n </InterfaceDeclaration>\n <Spacing />\n <InterfaceDeclaration\n export\n name=\"NpmPackageSearchResultItem\"\n doc=\"Represents an npm package search result item.\">\n <InterfaceMember\n name=\"package\"\n type=\"NpmPackage\"\n doc=\"The npm package details.\"\n />\n </InterfaceDeclaration>\n <Spacing />\n <InterfaceDeclaration\n export\n name=\"NpmPackageSearchResult\"\n doc=\"Represents an npm package search result.\">\n <InterfaceMember\n name=\"objects\"\n type=\"NpmPackageSearchResultItem[]\"\n doc=\"The list of npm package search result items.\"\n />\n </InterfaceDeclaration>\n <Spacing />\n <TSDoc heading=\"Fetch details of an npm package.\">\n <TSDocRemarks>\n {`This function is used to fetch an npm package. It can be used in the CLI upgrade command to check if the application is using npm, yarn, or another package manager.`}\n </TSDocRemarks>\n <Spacing />\n <TSDocParam name=\"packageName\">\n {`The name of the npm package to fetch.`}\n </TSDocParam>\n <TSDocReturns>\n {`A promise that resolves to the npm package details or undefined if the package is not found.`}\n </TSDocReturns>\n </TSDoc>\n <FunctionDeclaration\n export\n async\n name=\"fetchNpmPackage\"\n parameters={[\n {\n name: \"packageName\",\n type: \"string\"\n }\n ]}\n returnType={code`NpmPackage | undefined`}>\n <VarDeclaration\n const\n name=\"result\"\n initializer={code` await fetch(\\`https://registry.npmjs.com/-/v1/search?text=\\${packageName}&size=1\\`).then(res => res.json()) as NpmPackageSearchResult; `}\n />\n <hbr />\n <IfStatement\n condition={code`result.objects && result.objects.length > 0 && result.objects[0].package && result.objects[0].package.name === packageName`}>\n {code`return result.objects[0].package; `}\n </IfStatement>\n <ElseClause>{code`return undefined; `}</ElseClause>\n </FunctionDeclaration>\n </>\n );\n}\n\n/**\n * The `getLatestVersion` handler function declaration code for the Shell Shock project.\n */\nexport function GetLatestVersionFunctionDeclaration() {\n const context = usePowerlines<UpgradePluginContext>();\n\n return (\n <>\n <TSDoc heading=\"Get the latest version of the application from the npm registry.\">\n <TSDocRemarks>\n {`This function is used to retrieve the latest version of the application from the npm registry. It can be used in the CLI upgrade command to check if there is a newer version of the application available.`}\n </TSDocRemarks>\n <Spacing />\n <TSDocParam name=\"packageName\">\n {`The name of the npm package to fetch.`}\n </TSDocParam>\n <TSDocReturns>\n {`A promise that resolves to the latest version of the specified npm package as a string.`}\n </TSDocReturns>\n </TSDoc>\n <FunctionDeclaration\n export\n async\n name=\"getLatestVersion\"\n parameters={[\n {\n name: \"packageName\",\n default: `\"${context.packageJson.name}\"`\n }\n ]}\n returnType={code`string | undefined`}>\n <VarDeclaration\n const\n name=\"result\"\n initializer={code`await fetchNpmPackage(packageName); `}\n />\n <Spacing />\n {code`return result?.version; `}\n </FunctionDeclaration>\n </>\n );\n}\n\n/**\n * The `upgrade` handler function declaration code for the Shell Shock project.\n */\nexport function GetUpgradeCommandFunctionDeclaration() {\n const context = usePowerlines<UpgradePluginContext>();\n\n return (\n <>\n <TSDoc heading=\"A function to get the upgrade command for a specific package manager.\">\n <TSDocRemarks>\n {`This function is used to get the appropriate upgrade command for a specific package manager. It can be used in the CLI upgrade command to determine which command to run based on the package manager being used by the application.`}\n </TSDocRemarks>\n <Spacing />\n <TSDocParam name=\"packageManager\">\n {`The name of the package manager to get the upgrade command for. This should be one of \"npm\", \"yarn\", \"pnpm\", \"deno\", or \"bun\".`}\n </TSDocParam>\n <TSDocParam name=\"cwd\">\n {`The current working directory to use when determining the upgrade command. This can be used to locate the appropriate package.json and lockfile to determine how to run the upgrade command. If not provided, the process's current working directory will be used.`}\n </TSDocParam>\n <TSDocReturns>\n {`An array of strings representing the command and its arguments to run in order to upgrade the application dependencies using the specified package manager.`}\n </TSDocReturns>\n </TSDoc>\n <FunctionDeclaration\n export\n async\n name=\"getUpgradeCommand\"\n parameters={[\n {\n name: \"packageManager\",\n type: \"string\"\n },\n {\n name: \"cwd\",\n type: \"string\",\n default: \"process.cwd()\"\n }\n ]}\n returnType=\"string[]\">\n <VarDeclaration\n const\n name=\"version\"\n initializer={code`(await getLatestVersion(\"${context.packageJson.name}\")) || \"latest\"; `}\n />\n <Spacing />\n <IfStatement condition={code`packageManager === \"yarn\"`}>\n {code`return [\"upgrade\", \\`${\n context.packageJson.name\n }@\\${version}\\`]; `}\n </IfStatement>\n <ElseIfClause condition={code`packageManager === \"pnpm\"`}>\n {code`return [\"update\", \\`${\n context.packageJson.name\n }@\\${version}\\`]; `}\n </ElseIfClause>\n <ElseIfClause condition={code`packageManager === \"deno\"`}>\n {code`return [\"outdated\", \"--update\", \\`${\n context.packageJson.name\n }@\\${version}\\`]; `}\n </ElseIfClause>\n <ElseIfClause condition={code`packageManager === \"bun\"`}>\n {code`return [\"update\", \"--save\", \\`${\n context.packageJson.name\n }@\\${version}\\`]; `}\n </ElseIfClause>\n <ElseClause>{code`return [\"update\", \"--save\", \"--bin-links\", \\`${\n context.packageJson.name\n }@\\${version}\\`]; `}</ElseClause>\n </FunctionDeclaration>\n </>\n );\n}\n\n/**\n * The `upgrade` handler function declaration code for the Shell Shock project.\n */\nexport function UpgradeFunctionDeclaration() {\n return (\n <>\n <InterfaceDeclaration\n name=\"UpgradeBaseOptions\"\n doc=\"Options for the `upgrade` handler function.\">\n <InterfaceMember\n name=\"stdout\"\n optional\n type=\"(data: string) => void\"\n doc=\"A callback function that is called with the stdout output of the command.\"\n />\n <hbr />\n <InterfaceMember\n name=\"stderr\"\n optional\n type=\"(err: string) => void\"\n doc=\"A callback function that is called with the stderr output of the command.\"\n />\n </InterfaceDeclaration>\n <Spacing />\n <TypeDeclaration\n export\n name=\"UpgradeOptions\"\n doc=\"Options for the `upgrade` handler function.\">{code`UpgradeBaseOptions & GetPackageManagerOptions & Parameters<typeof spawn>[2];`}</TypeDeclaration>\n <Spacing />\n <TSDoc heading=\"Upgrade the application dependencies.\">\n <TSDocRemarks>\n {`This function is used to upgrade the application dependencies. It can be used in the CLI upgrade command to ensure that all necessary dependencies are up-to-date.`}\n </TSDocRemarks>\n <Spacing />\n <TSDocParam name=\"options\">\n {`The options for the \\`upgrade\\` function. Currently, there are no options available, but this parameter is included for future extensibility.`}\n </TSDocParam>\n <TSDocReturns>\n {`A promise that resolves when the upgrade of dependencies is complete.`}\n </TSDocReturns>\n </TSDoc>\n <FunctionDeclaration\n export\n async\n name=\"upgrade\"\n parameters={[\n {\n name: \"options\",\n type: \"UpgradeOptions\",\n default: \"{}\"\n }\n ]}>\n <VarDeclaration\n const\n name=\"packageManager\"\n initializer={code`await getPackageManager(options); `}\n />\n <Spacing />\n <VarDeclaration\n const\n name=\"args\"\n initializer={code`await getUpgradeCommand(packageManager, options.cwd); `}\n />\n <hbr />\n <VarDeclaration let name=\"output\" initializer={code`\"\"; `} />\n <hbr />\n {code`await spawn(\n \\`\\${packageManager}\\${isWindows && packageManager !== \"bun\" ? \".cmd\" : \"\"}\\`,\n [args.join(\" \")],\n {\n ...options,\n env: {\n ...options.env,\n ...(packageManager === \"pnpm\" ? { npm_config_strict_peer_dependencies: false } : null),\n },\n stdout: (data: string) => {\n options.stdout?.(data);\n output += data;\n },\n stderr: (data: string) => {\n options.stderr?.(data);\n },\n },\n ); `}\n </FunctionDeclaration>\n </>\n );\n}\n\n/**\n * The `updateVersionCheckFile` handler function declaration code for the Shell Shock project.\n */\nexport function UpdateVersionCheckFileFunctionDeclaration() {\n return (\n <>\n <TSDoc heading=\"A helper function that updates the version check file.\">\n <TSDocRemarks>\n {`This function is used to update the version check file with the current timestamp. It can be used in the CLI upgrade command to record the last time a check for updates was performed. The function writes a \"version-check.json\" file in the data directory, which contains a timestamp of the last check for updates.`}\n </TSDocRemarks>\n <Spacing />\n <TSDocReturns>\n {`A promise that resolves to a boolean indicating whether a check for updates is required.`}\n </TSDocReturns>\n </TSDoc>\n <FunctionDeclaration\n export\n async\n name=\"updateVersionCheckFile\"\n returnType=\"void\">\n <IfStatement condition={code`!existsSync(paths.data)`}>\n {code`await mkdir(paths.data, { recursive: true }); `}\n </IfStatement>\n {code`await writeFile(join(paths.data, \"version-check.json\"), JSON.stringify({ timestamp: new Date().getTime() }), \"utf8\"); `}\n </FunctionDeclaration>\n </>\n );\n}\n\n/**\n * The `isCheckForUpdatesRequired` handler function declaration code for the Shell Shock project.\n */\nexport function IsCheckForUpdatesRequiredFunctionDeclaration() {\n const context = usePowerlines<UpgradePluginContext>();\n\n return (\n <>\n <TSDoc heading=\"A helper function that verifies if a check for updates is required.\">\n <TSDocRemarks>\n {`This function is used to determine if a check for updates is required based on the last time a check was performed. It can be used in the CLI upgrade command to avoid unnecessary checks for updates if one was recently performed. The function checks for the existence of a \"version-check.json\" file in the data directory, which contains a timestamp of the last check for updates. If the file does not exist or if the timestamp is older than a specified stale time, the function will return true, indicating that a check for updates is required. Otherwise, it will return false.`}\n </TSDocRemarks>\n <Spacing />\n <TSDocReturns>\n {`A promise that resolves to a boolean indicating whether a check for updates is required.`}\n </TSDocReturns>\n </TSDoc>\n <FunctionDeclaration export async name=\"isCheckForUpdatesRequired\">\n <IfStatement\n condition={code`!isInteractive || isCI || env.SKIP_VERSION_CHECK`}>\n {code`return false; `}\n </IfStatement>\n <Spacing />\n <VarDeclaration\n const\n name=\"filePath\"\n initializer={code`join(paths.data, \"version-check.json\"); `}\n />\n <IfStatement condition={code`existsSync(filePath)`}>\n <VarDeclaration\n const\n name=\"file\"\n type=\"{ timestamp: number; }\"\n initializer={code` JSON.parse(await readFile(filePath, \"utf8\")); `}\n />\n <IfStatement condition={code`!file.timestamp`}>\n {code`await updateVersionCheckFile();\n return true; `}\n </IfStatement>\n <ElseIfClause\n condition={code`new Date().getTime() - file.timestamp < ${\n context.config.upgrade.staleTime\n }`}>\n {code`return false; `}\n </ElseIfClause>\n </IfStatement>\n <ElseClause>\n {code`await updateVersionCheckFile();\n return true; `}\n </ElseClause>\n </FunctionDeclaration>\n </>\n );\n}\n\n/**\n * The `checkForUpdates` handler function declaration code for the Shell Shock project.\n */\nexport function CheckForUpdatesFunctionDeclaration() {\n const context = usePowerlines<UpgradePluginContext>();\n\n return (\n <>\n <InterfaceDeclaration\n export\n name=\"CheckForUpdatesOptions\"\n extends=\"GetPackageManagerOptions\"\n doc=\"Options for the `checkForUpdates` handler function.\">\n <InterfaceMember\n name=\"force\"\n optional\n type=\"boolean\"\n doc=\"Whether to force a check for updates regardless of the last check timestamp. If set to `true`, the function will bypass the timestamp check and perform a check for updates, updating the timestamp in the process. This can be useful if you want to ensure that a check for updates is performed even if one was recently done, such as when the user explicitly requests it or when certain conditions are met that warrant an immediate check.\"\n />\n </InterfaceDeclaration>\n <Spacing />\n <InterfaceDeclaration name=\"CheckForUpdatesBaseResult\">\n <InterfaceMember\n name=\"isError\"\n type=\"boolean\"\n optional\n doc=\"Indicates whether an error occurred while checking for updates.\"\n />\n </InterfaceDeclaration>\n <Spacing />\n <InterfaceDeclaration\n name=\"CheckForUpdatesSuccessResult\"\n extends=\"CheckForUpdatesBaseResult\">\n <InterfaceMember\n name=\"latestVersion\"\n type=\"string\"\n doc=\"The latest version of the application dependencies.\"\n />\n <hbr />\n <InterfaceMember\n name=\"currentVersion\"\n type=\"string\"\n doc=\"The current version of the application dependencies.\"\n />\n <hbr />\n <InterfaceMember\n name=\"isUpToDate\"\n type=\"boolean\"\n doc=\"Indicates whether the application dependencies are up-to-date.\"\n />\n <hbr />\n <InterfaceMember\n name=\"package\"\n type=\"NpmPackage\"\n optional\n doc=\"The npm package that was checked for updates.\"\n />\n </InterfaceDeclaration>\n <Spacing />\n <InterfaceDeclaration\n name=\"CheckForUpdatesErrorResult\"\n extends=\"CheckForUpdatesBaseResult\">\n <InterfaceMember\n name=\"error\"\n type=\"Error\"\n doc=\"The error that occurred while checking for updates.\"\n />\n </InterfaceDeclaration>\n <Spacing />\n <TypeDeclaration\n export\n name=\"CheckForUpdatesResult\"\n doc=\"The result for the `checkForUpdates` handler function.\">\n {code`CheckForUpdatesSuccessResult | CheckForUpdatesErrorResult;`}\n </TypeDeclaration>\n <Spacing />\n <TSDoc heading=\"Check for updates to the application dependencies.\">\n <TSDocRemarks>\n {`This function is used to check for updates to the application dependencies. It can be used in the CLI upgrade command to ensure that all necessary dependencies are up-to-date.`}\n </TSDocRemarks>\n <Spacing />\n <TSDocParam name=\"options\">\n {`The options for the \\`checkForUpdates\\` function. Currently, there are no options available, but this parameter is included for future extensibility.`}\n </TSDocParam>\n <TSDocReturns>\n {`A promise that resolves when the check for updates is complete or undefined if the check was not performed.`}\n </TSDocReturns>\n </TSDoc>\n <FunctionDeclaration\n export\n async\n name=\"checkForUpdates\"\n parameters={[\n {\n name: \"options\",\n type: \"CheckForUpdatesOptions\",\n default: \"{}\"\n }\n ]}\n returnType=\"CheckForUpdatesResult\">\n <IfStatement\n condition={code`!options.force && !(await isCheckForUpdatesRequired())`}>\n {code`return {\n latestVersion: \"${context.packageJson.version}\",\n currentVersion: \"${context.packageJson.version}\",\n isUpToDate: true,\n isError: false,\n }; `}\n </IfStatement>\n <Spacing />\n {code`try { `}\n <VarDeclaration\n const\n name=\"pkg\"\n initializer={code`await fetchNpmPackage(\"${\n context.packageJson.name\n }\"); `}\n />\n <Spacing />\n {code`\n return {\n latestVersion: pkg?.version || \"${context.packageJson.version}\",\n currentVersion: \"${context.packageJson.version}\",\n isUpToDate: pkg ? \"${context.packageJson.version}\" === pkg.version : true,\n package: pkg,\n isError: false,\n };\n } catch (err) {\n return { isError: true, error: err instanceof Error ? err : new Error(String(err)) };\n } `}\n </FunctionDeclaration>\n </>\n );\n}\n\nexport interface UpgradeBuiltinProps extends Omit<\n BuiltinFileProps,\n \"id\" | \"description\"\n> {}\n\n/**\n * A built-in upgrade module for Shell Shock.\n */\nexport function UpgradeBuiltin(props: UpgradeBuiltinProps) {\n const [{ children }, rest] = splitProps(props, [\"children\"]);\n\n return (\n <BuiltinFile\n id=\"upgrade\"\n description=\"A collection of application upgrade utility functions for Shell Shock.\"\n {...rest}\n imports={defu(rest.imports ?? {}, {\n \"node:os\": \"os\",\n \"node:path\": [\"join\", \"resolve\"],\n \"node:fs\": [\"existsSync\"],\n \"node:fs/promises\": [\"readFile\", \"writeFile\", \"mkdir\"],\n \"node:process\": \"process\"\n })}\n builtinImports={defu(rest.builtinImports ?? {}, {\n console: [\"error\", \"verbose\", \"writeLine\"],\n env: [\"paths\", \"isWindows\", \"isCI\", \"env\"],\n utils: [\"isColorSupported\", \"isInteractive\", \"spawn\"]\n })}>\n <VarDeclaration\n const\n name=\"homePath\"\n type=\"string\"\n initializer={code`os.homedir(); `}\n />\n <Spacing />\n <VarDeclaration\n const\n name=\"tempPath\"\n type=\"string\"\n initializer={code`os.tmpdir(); `}\n />\n <Spacing />\n <LocatePackageJsonFunctionDeclaration />\n <Spacing />\n <LocateLockfileFunctionDeclaration />\n <Spacing />\n <GetPackageManagerFunctionDeclaration />\n <Spacing />\n <FetchNpmPackageFunctionDeclaration />\n <Spacing />\n <GetLatestVersionFunctionDeclaration />\n <Spacing />\n <GetUpgradeCommandFunctionDeclaration />\n <Spacing />\n <UpgradeFunctionDeclaration />\n <Spacing />\n <CheckForUpdatesFunctionDeclaration />\n <Spacing />\n <IsCheckForUpdatesRequiredFunctionDeclaration />\n <Spacing />\n <UpdateVersionCheckFileFunctionDeclaration />\n <Spacing />\n <Show when={Boolean(children)}>{children}</Show>\n </BuiltinFile>\n );\n}\n"],"mappings":";;;;;;;;;;;;;AA6CA,SAAgBmB,uCAAuC;CACrD,MAAMC,UAAUV,eAAqC;AAErD,QAAA;EAAAW,gBAEKd,sBAAoB;GAAA,UAAA;GAEnBe,MAAI;GACJC,KAAG;GAAA,IAAAC,WAAA;AAAA,WAAA;KAAAH,gBACFV,iBAAe;MACdW,MAAI;MACJG,UAAQ;MACRC,MAAI;MACJH,KAAG;MAAA,CAAA;KAAAF,gBAEJZ,SAAO,EAAA,CAAA;KAAAY,gBACPV,iBAAe;MACdW,MAAI;MACJG,UAAQ;MACRC,MAAI;MACJH,KAAG;M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AAAY,gBACP0B,oCAAkC,EAAA,CAAA;IAAA1B,gBAClCZ,SAAO,EAAA,CAAA;IAAAY,gBACPsB,8CAA4C,EAAA,CAAA;IAAAtB,gBAC5CZ,SAAO,EAAA,CAAA;IAAAY,gBACPqB,2CAAyC,EAAA,CAAA;IAAArB,gBACzCZ,SAAO,EAAA,CAAA;IAAAY,gBACPpB,MAAI;KAAA,IAAC4D,OAAI;AAAA,aAAEC,QAAQtC,SAAS;;KAAGA;KAAQ,CAAA;IAAA;;EAAA,CAAA,CAAA"}
1
+ {"version":3,"file":"upgrade-builtin.mjs","names":["code","Show","splitProps","ElseClause","ElseIfClause","FunctionDeclaration","IfStatement","InterfaceDeclaration","VarDeclaration","Spacing","usePowerlines","InterfaceMember","TSDoc","TSDocParam","TSDocRemarks","TSDocReturns","TypeDeclaration","BuiltinFile","defu","LocatePackageJsonFunctionDeclaration","context","_$createComponent","name","doc","children","optional","type","heading","async","parameters","default","returnType","initializer","_$createIntrinsic","condition","packageJson","LocateLockfileFunctionDeclaration","GetPackageManagerFunctionDeclaration","FetchNpmPackageFunctionDeclaration","GetLatestVersionFunctionDeclaration","GetUpgradeCommandFunctionDeclaration","UpgradeFunctionDeclaration","UpdateVersionCheckFileFunctionDeclaration","IsCheckForUpdatesRequiredFunctionDeclaration","config","upgrade","staleTime","CheckForUpdatesFunctionDeclaration","version","_$memo","UpgradeBuiltin","props","rest","_$mergeProps","id","description","imports","builtinImports","console","env","utils","when","Boolean"],"sources":["../../src/components/upgrade-builtin.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { code, Show, splitProps } from \"@alloy-js/core\";\nimport {\n ElseClause,\n ElseIfClause,\n FunctionDeclaration,\n IfStatement,\n InterfaceDeclaration,\n VarDeclaration\n} from \"@alloy-js/typescript\";\nimport { Spacing } from \"@powerlines/plugin-alloy/core/components/spacing\";\nimport { usePowerlines } from \"@powerlines/plugin-alloy/core/contexts/context\";\nimport {\n InterfaceMember,\n TSDoc,\n TSDocParam,\n TSDocRemarks,\n TSDocReturns,\n TypeDeclaration\n} from \"@powerlines/plugin-alloy/typescript\";\nimport type { BuiltinFileProps } from \"@powerlines/plugin-alloy/typescript/components/builtin-file\";\nimport { BuiltinFile } from \"@powerlines/plugin-alloy/typescript/components/builtin-file\";\nimport defu from \"defu\";\nimport type { UpgradePluginContext } from \"../types/plugin\";\n\n/**\n * The `locatePackageJson` handler function declaration code for the Shell Shock project.\n */\nexport function LocatePackageJsonFunctionDeclaration() {\n const context = usePowerlines<UpgradePluginContext>();\n\n return (\n <>\n <InterfaceDeclaration\n export\n name=\"LocatePackageJsonOptions\"\n doc=\"Options for the `locatePackageJson` handler function.\">\n <InterfaceMember\n name=\"cwd\"\n optional\n type=\"string\"\n doc=\"The current working directory to use. If not provided, the process's current working directory will be used.\"\n />\n <Spacing />\n <InterfaceMember\n name=\"isDependencyRequired\"\n optional\n type=\"boolean\"\n doc=\"Whether to only locate a package.json file if it contains the application as a dependency. If set to `true`, the function will check if the located package.json file has the application listed as a dependency in its dependencies, devDependencies, peerDependencies, or optionalDependencies before returning its path. This can be useful in monorepo setups where multiple package.json files may exist, but only the one that includes the application as a dependency is relevant for upgrade purposes.\"\n />\n </InterfaceDeclaration>\n <Spacing />\n <TSDoc heading=\"Locate the package.json file currently being used by the command-line/workspace.\">\n <TSDocRemarks>\n {`This function is used to determine the package.json file currently being used by the command-line/workspace. It can be used in the CLI upgrade command to check if the application is using npm, yarn, or another package manager.`}\n </TSDocRemarks>\n <Spacing />\n <TSDocParam name=\"options\">\n {`The options for the \\`locatePackageJson\\` function. Currently, there are no options available, but this parameter is included for future extensibility.`}\n </TSDocParam>\n <TSDocReturns>\n {`A promise that resolves to the package.json file currently being used by the command-line/workspace as a string.`}\n </TSDocReturns>\n </TSDoc>\n <FunctionDeclaration\n export\n async\n name=\"locatePackageJson\"\n parameters={[\n {\n name: \"options\",\n type: \"LocatePackageJsonOptions\",\n default: \"{}\"\n }\n ]}\n returnType=\"string | undefined\">\n <VarDeclaration\n let\n name=\"currentPath\"\n type=\"string\"\n initializer={code`options.cwd ?? process.cwd(); `}\n />\n <hbr />\n <VarDeclaration\n let\n name=\"parentPath\"\n initializer={code`resolve(currentPath, \"..\"); `}\n />\n <Spacing />\n {code`while (parentPath !== currentPath && currentPath !== homePath && currentPath !== tempPath) { `}\n <VarDeclaration\n const\n name=\"packageJsonPath\"\n initializer={code`join(currentPath, \"package.json\"); `}\n />\n <IfStatement condition={code`existsSync(packageJsonPath)`}>\n <IfStatement condition={code`options.isDependencyRequired`}>\n <VarDeclaration\n const\n name=\"packageJson\"\n initializer={code`JSON.parse(await readFile(packageJsonPath, \"utf8\")); `}\n />\n <IfStatement\n condition={code`Object.keys(packageJson.dependencies || {}).concat(Object.keys(packageJson.devDependencies || {})).concat(Object.keys(packageJson.peerDependencies || {})).concat(Object.keys(packageJson.optionalDependencies || {})).some(dep => dep === \"${context.packageJson.name}\" || dep.startsWith(\"${context.packageJson.name}@\"))`}>\n {code`return packageJsonPath; `}\n </IfStatement>\n </IfStatement>\n <ElseClause>{code`return packageJsonPath; `}</ElseClause>\n </IfStatement>\n <ElseClause>\n {code`currentPath = parentPath;\n parentPath = resolve(currentPath, \"..\"); `}\n </ElseClause>\n {code` }\n\n return undefined; `}\n </FunctionDeclaration>\n </>\n );\n}\n\n/**\n * The `locateLockfile` handler function declaration code for the Shell Shock project.\n */\nexport function LocateLockfileFunctionDeclaration() {\n return (\n <>\n <InterfaceDeclaration\n export\n name=\"LocateLockfileOptions\"\n doc=\"Options for the `locateLockfile` handler function.\">\n <InterfaceMember\n name=\"cwd\"\n optional\n type=\"string\"\n doc=\"The current working directory to use. If not provided, the process's current working directory will be used.\"\n />\n </InterfaceDeclaration>\n <Spacing />\n <TSDoc heading=\"Locate the lockfile currently being used by the command-line/workspace.\">\n <TSDocRemarks>\n {`This function is used to determine the lockfile currently being used by the command-line/workspace. It can be used in the CLI upgrade command to check if the application is using npm, yarn, or another package manager.`}\n </TSDocRemarks>\n <Spacing />\n <TSDocParam name=\"options\">\n {`The options for the \\`locateLockfile\\` function. Currently, there are no options available, but this parameter is included for future extensibility.`}\n </TSDocParam>\n <TSDocReturns>\n {`A promise that resolves to the lockfile currently being used by the command-line/workspace as a string.`}\n </TSDocReturns>\n </TSDoc>\n <FunctionDeclaration\n export\n name=\"locateLockfile\"\n parameters={[\n {\n name: \"options\",\n type: \"LocateLockfileOptions\",\n default: \"{}\"\n }\n ]}\n returnType=\"string | undefined\">\n <VarDeclaration\n let\n name=\"currentPath\"\n type=\"string\"\n initializer={code`options.cwd ?? process.cwd(); `}\n />\n <hbr />\n <VarDeclaration\n let\n name=\"parentPath\"\n initializer={code`resolve(currentPath, \"..\"); `}\n />\n <Spacing />\n {code`while (parentPath !== currentPath && currentPath !== homePath && currentPath !== tempPath) { `}\n <VarDeclaration\n const\n name=\"lockfile\"\n initializer={code`[\n \"package-lock.json\",\n \"npm-shrinkwrap.json\",\n \"yarn.lock\",\n \"pnpm-lock.yaml\",\n \"pnpm-workspace.yaml\",\n \"deno.lock\",\n \"deno.json\",\n \"deno.jsonc\",\n \"bun.lock\",\n \"bun.lockb\"\n ].find(lf => existsSync(join(currentPath, lf))); `}\n />\n <hbr />\n <IfStatement condition={code`lockfile`}>\n {code`return lockfile; `}\n </IfStatement>\n <ElseClause>\n {code`currentPath = parentPath;\n parentPath = resolve(currentPath, \"..\"); `}\n </ElseClause>\n {code` }\n\n return undefined; `}\n </FunctionDeclaration>\n </>\n );\n}\n\n/**\n * The `getPackageManager` handler function declaration code for the Shell Shock project.\n */\nexport function GetPackageManagerFunctionDeclaration() {\n return (\n <>\n <Spacing />\n <TypeDeclaration\n export\n name=\"GetPackageManagerOptions\"\n doc=\"Options for the `getPackageManager` handler function.\">{code`LocateLockfileOptions;`}</TypeDeclaration>\n <Spacing />\n <TSDoc heading=\"Get the package manager currently being used by the command-line/workspace.\">\n <TSDocRemarks>\n {`This function is used to determine the package manager currently being used by the command-line/workspace. It can be used in the CLI upgrade command to check if the application is using npm, yarn, or another package manager.`}\n </TSDocRemarks>\n <Spacing />\n <TSDocParam name=\"options\">\n {`The options for the \\`getPackageManager\\` function. Currently, there are no options available, but this parameter is included for future extensibility.`}\n </TSDocParam>\n <TSDocReturns>\n {`A promise that resolves to the package manager currently being used by the command-line/workspace as a string.`}\n </TSDocReturns>\n </TSDoc>\n <FunctionDeclaration\n export\n async\n name=\"getPackageManager\"\n parameters={[\n {\n name: \"options\",\n type: \"GetPackageManagerOptions\",\n default: \"{}\"\n }\n ]}\n returnType={code`\"npm\" | \"yarn\" | \"deno\" | \"pnpm\" | \"bun\"`}>\n <VarDeclaration\n const\n name=\"userAgent\"\n type=\"string\"\n initializer={code`process.env.npm_config_user_agent ?? \"\"; `}\n />\n <hbr />\n <VarDeclaration\n const\n name=\"execPath\"\n type=\"string\"\n initializer={code`process.env.npm_execpath ?? \"\"; `}\n />\n <Spacing />\n <IfStatement\n condition={code`userAgent.startsWith(\"yarn\") || execPath.includes(\"yarn\")`}>\n {code`return \"yarn\"; `}\n </IfStatement>\n <ElseIfClause\n condition={code`userAgent.startsWith(\"pnpm\") || execPath.includes(\"pnpm\")`}>\n {code`return \"pnpm\"; `}\n </ElseIfClause>\n <ElseIfClause\n condition={code`userAgent.startsWith(\"bun\") || execPath.includes(\"bun\") || typeof Bun !== \"undefined\" || process.versions.bun`}>\n {code`return \"bun\"; `}\n </ElseIfClause>\n <ElseClause>\n <VarDeclaration\n const\n name=\"lockfilePath\"\n initializer={code`locateLockfile(options); `}\n />\n <Spacing />\n <IfStatement condition={code`lockfilePath === \"yarn.lock\"`}>\n {code`return \"yarn\"; `}\n </IfStatement>\n <ElseIfClause\n condition={code`lockfilePath === \"deno.lock\" || lockfilePath === \"deno.json\" || lockfilePath === \"deno.jsonc\"`}>\n {code`return \"deno\"; `}\n </ElseIfClause>\n <ElseIfClause\n condition={code`lockfilePath === \"pnpm-lock.yaml\" || lockfilePath === \"pnpm-workspace.yaml\"`}>\n {code`return \"pnpm\"; `}\n </ElseIfClause>\n <ElseIfClause\n condition={code`lockfilePath === \"bun.lock\" || lockfilePath === \"bun.lockb\"`}>\n {code`return \"bun\"; `}\n </ElseIfClause>\n <ElseClause>\n <VarDeclaration\n const\n name=\"packageJsonPath\"\n initializer={code`await locatePackageJson(options); `}\n />\n <IfStatement\n condition={code`packageJsonPath && existsSync(packageJsonPath)`}>\n <VarDeclaration\n const\n name=\"packageJson\"\n initializer={code`JSON.parse(await readFile(packageJsonPath, \"utf8\")); `}\n />\n <IfStatement\n condition={code`packageJson.devEngines?.packageManager?.name && typeof packageJson.devEngines.packageManager.name === \"string\" && [\"npm\", \"yarn\", \"pnpm\", \"deno\", \"bun\"].includes(packageJson.devEngines.packageManager.name)`}>\n {code`return packageJson.devEngines.packageManager.name; `}\n </IfStatement>\n <Spacing />\n <VarDeclaration\n const\n name=\"dependencies\"\n initializer={code`{\n ...packageJson.dependencies,\n ...packageJson.devDependencies,\n ...packageJson.peerDependencies,\n ...packageJson.optionalDependencies,\n }; `}\n />\n <IfStatement\n condition={code`Object.keys(dependencies).some(dep => dep === \"yarn\" || dep.startsWith(\"yarn@\") || dep === \"yarnpkg\" || dep.startsWith(\"yarnpkg@\"))`}>\n {code`return \"yarn\"; `}\n </IfStatement>\n <ElseIfClause\n condition={code`Object.keys(dependencies).some(dep => dep === \"bun\" || dep.startsWith(\"bun@\"))`}>\n {code`return \"bun\"; `}\n </ElseIfClause>\n <ElseIfClause\n condition={code`Object.keys(dependencies).some(dep => dep === \"pnpm\" || dep.startsWith(\"pnpm@\"))`}>\n {code`return \"pnpm\"; `}\n </ElseIfClause>\n <ElseIfClause\n condition={code`Object.keys(dependencies).some(dep => dep === \"deno\" || dep.startsWith(\"deno@\"))`}>\n {code`return \"deno\"; `}\n </ElseIfClause>\n </IfStatement>\n <Spacing />\n {code`return \"npm\"; `}\n </ElseClause>\n </ElseClause>\n </FunctionDeclaration>\n </>\n );\n}\n\n/**\n * The `fetchNpmPackage` handler function declaration code for the Shell Shock project.\n */\nexport function FetchNpmPackageFunctionDeclaration() {\n return (\n <>\n <InterfaceDeclaration\n export\n name=\"NpmPackageMaintainer\"\n doc=\"Represents a maintainer of an npm package.\">\n <InterfaceMember\n name=\"email\"\n type=\"string\"\n doc=\"The email of the npm package maintainer.\"\n />\n <hbr />\n <InterfaceMember\n name=\"username\"\n type=\"string\"\n doc=\"The username of the npm package maintainer.\"\n />\n </InterfaceDeclaration>\n <Spacing />\n <InterfaceDeclaration\n export\n name=\"NpmPackageLinks\"\n doc=\"Represents the links of an npm package.\">\n <InterfaceMember\n name=\"homepage\"\n type=\"string\"\n optional\n doc=\"The homepage of the npm package.\"\n />\n <hbr />\n <InterfaceMember\n name=\"repository\"\n type=\"string\"\n optional\n doc=\"The repository of the npm package.\"\n />\n <hbr />\n <InterfaceMember\n name=\"bugs\"\n type=\"string\"\n optional\n doc=\"The bugs page of the npm package.\"\n />\n <hbr />\n <InterfaceMember\n name=\"npm\"\n type=\"string\"\n optional\n doc=\"The npm page of the npm package.\"\n />\n </InterfaceDeclaration>\n <Spacing />\n <InterfaceDeclaration\n export\n name=\"NpmPackage\"\n doc=\"Represents an npm package.\">\n <InterfaceMember\n name=\"name\"\n type=\"string\"\n doc=\"The name of the npm package.\"\n />\n <hbr />\n <InterfaceMember\n name=\"date\"\n type=\"Date\"\n doc=\"The date when the npm package was last updated.\"\n />\n <hbr />\n <InterfaceMember\n name=\"version\"\n type=\"string\"\n doc=\"The version of the npm package.\"\n />\n <hbr />\n <InterfaceMember\n name=\"description\"\n type=\"string\"\n optional\n doc=\"The description of the npm package.\"\n />\n <hbr />\n <InterfaceMember\n name=\"keywords\"\n type=\"string[]\"\n doc=\"A list of keywords associated with the npm package.\"\n />\n <hbr />\n <InterfaceMember\n name=\"license\"\n type=\"string\"\n optional\n doc=\"The license of the npm package.\"\n />\n <hbr />\n <InterfaceMember\n name=\"maintainers\"\n type=\"NpmPackageMaintainer[]\"\n doc=\"The maintainers of the npm package.\"\n />\n <hbr />\n <InterfaceMember\n name=\"links\"\n type=\"NpmPackageLinks\"\n doc=\"The links of the npm package.\"\n />\n <hbr />\n </InterfaceDeclaration>\n <Spacing />\n <InterfaceDeclaration\n export\n name=\"NpmPackageSearchResultItem\"\n doc=\"Represents an npm package search result item.\">\n <InterfaceMember\n name=\"package\"\n type=\"NpmPackage\"\n doc=\"The npm package details.\"\n />\n </InterfaceDeclaration>\n <Spacing />\n <InterfaceDeclaration\n export\n name=\"NpmPackageSearchResult\"\n doc=\"Represents an npm package search result.\">\n <InterfaceMember\n name=\"objects\"\n type=\"NpmPackageSearchResultItem[]\"\n doc=\"The list of npm package search result items.\"\n />\n </InterfaceDeclaration>\n <Spacing />\n <TSDoc heading=\"Fetch details of an npm package.\">\n <TSDocRemarks>\n {`This function is used to fetch an npm package. It can be used in the CLI upgrade command to check if the application is using npm, yarn, or another package manager.`}\n </TSDocRemarks>\n <Spacing />\n <TSDocParam name=\"packageName\">\n {`The name of the npm package to fetch.`}\n </TSDocParam>\n <TSDocReturns>\n {`A promise that resolves to the npm package details or undefined if the package is not found.`}\n </TSDocReturns>\n </TSDoc>\n <FunctionDeclaration\n export\n async\n name=\"fetchNpmPackage\"\n parameters={[\n {\n name: \"packageName\",\n type: \"string\"\n }\n ]}\n returnType={code`NpmPackage | undefined`}>\n <VarDeclaration\n const\n name=\"result\"\n initializer={code` await fetch(\\`https://registry.npmjs.com/-/v1/search?text=\\${packageName}&size=1\\`).then(res => res.json()) as NpmPackageSearchResult; `}\n />\n <hbr />\n <IfStatement\n condition={code`result.objects && result.objects.length > 0 && result.objects[0].package && result.objects[0].package.name === packageName`}>\n {code`return result.objects[0].package; `}\n </IfStatement>\n <ElseClause>{code`return undefined; `}</ElseClause>\n </FunctionDeclaration>\n </>\n );\n}\n\n/**\n * The `getLatestVersion` handler function declaration code for the Shell Shock project.\n */\nexport function GetLatestVersionFunctionDeclaration() {\n const context = usePowerlines<UpgradePluginContext>();\n\n return (\n <>\n <TSDoc heading=\"Get the latest version of the application from the npm registry.\">\n <TSDocRemarks>\n {`This function is used to retrieve the latest version of the application from the npm registry. It can be used in the CLI upgrade command to check if there is a newer version of the application available.`}\n </TSDocRemarks>\n <Spacing />\n <TSDocParam name=\"packageName\">\n {`The name of the npm package to fetch.`}\n </TSDocParam>\n <TSDocReturns>\n {`A promise that resolves to the latest version of the specified npm package as a string.`}\n </TSDocReturns>\n </TSDoc>\n <FunctionDeclaration\n export\n async\n name=\"getLatestVersion\"\n parameters={[\n {\n name: \"packageName\",\n default: `\"${context.packageJson.name}\"`\n }\n ]}\n returnType={code`string | undefined`}>\n <VarDeclaration\n const\n name=\"result\"\n initializer={code`await fetchNpmPackage(packageName); `}\n />\n <Spacing />\n {code`return result?.version; `}\n </FunctionDeclaration>\n </>\n );\n}\n\n/**\n * The `upgrade` handler function declaration code for the Shell Shock project.\n */\nexport function GetUpgradeCommandFunctionDeclaration() {\n const context = usePowerlines<UpgradePluginContext>();\n\n return (\n <>\n <TSDoc heading=\"A function to get the upgrade command for a specific package manager.\">\n <TSDocRemarks>\n {`This function is used to get the appropriate upgrade command for a specific package manager. It can be used in the CLI upgrade command to determine which command to run based on the package manager being used by the application.`}\n </TSDocRemarks>\n <Spacing />\n <TSDocParam name=\"packageManager\">\n {`The name of the package manager to get the upgrade command for. This should be one of \"npm\", \"yarn\", \"pnpm\", \"deno\", or \"bun\".`}\n </TSDocParam>\n <TSDocParam name=\"cwd\">\n {`The current working directory to use when determining the upgrade command. This can be used to locate the appropriate package.json and lockfile to determine how to run the upgrade command. If not provided, the process's current working directory will be used.`}\n </TSDocParam>\n <TSDocReturns>\n {`An array of strings representing the command and its arguments to run in order to upgrade the application dependencies using the specified package manager.`}\n </TSDocReturns>\n </TSDoc>\n <FunctionDeclaration\n export\n async\n name=\"getUpgradeCommand\"\n parameters={[\n {\n name: \"packageManager\",\n type: \"string\"\n },\n {\n name: \"cwd\",\n type: \"string\",\n default: \"process.cwd()\"\n }\n ]}\n returnType=\"string[]\">\n <VarDeclaration\n const\n name=\"version\"\n initializer={code`(await getLatestVersion(\"${context.packageJson.name}\")) || \"latest\"; `}\n />\n <Spacing />\n <IfStatement condition={code`packageManager === \"yarn\"`}>\n {code`return [\"upgrade\", \\`${\n context.packageJson.name\n }@\\${version}\\`]; `}\n </IfStatement>\n <ElseIfClause condition={code`packageManager === \"pnpm\"`}>\n {code`return [\"update\", \\`${\n context.packageJson.name\n }@\\${version}\\`]; `}\n </ElseIfClause>\n <ElseIfClause condition={code`packageManager === \"deno\"`}>\n {code`return [\"outdated\", \"--update\", \\`${\n context.packageJson.name\n }@\\${version}\\`]; `}\n </ElseIfClause>\n <ElseIfClause condition={code`packageManager === \"bun\"`}>\n {code`return [\"update\", \"--save\", \\`${\n context.packageJson.name\n }@\\${version}\\`]; `}\n </ElseIfClause>\n <ElseClause>{code`return [\"update\", \"--save\", \"--bin-links\", \\`${\n context.packageJson.name\n }@\\${version}\\`]; `}</ElseClause>\n </FunctionDeclaration>\n </>\n );\n}\n\n/**\n * The `upgrade` handler function declaration code for the Shell Shock project.\n */\nexport function UpgradeFunctionDeclaration() {\n return (\n <>\n <InterfaceDeclaration\n name=\"UpgradeBaseOptions\"\n doc=\"Options for the `upgrade` handler function.\">\n <InterfaceMember\n name=\"stdout\"\n optional\n type=\"(data: string) => void\"\n doc=\"A callback function that is called with the stdout output of the command.\"\n />\n <hbr />\n <InterfaceMember\n name=\"stderr\"\n optional\n type=\"(err: string) => void\"\n doc=\"A callback function that is called with the stderr output of the command.\"\n />\n </InterfaceDeclaration>\n <Spacing />\n <TypeDeclaration\n export\n name=\"UpgradeOptions\"\n doc=\"Options for the `upgrade` handler function.\">{code`UpgradeBaseOptions & GetPackageManagerOptions & Parameters<typeof spawn>[2];`}</TypeDeclaration>\n <Spacing />\n <TSDoc heading=\"Upgrade the application dependencies.\">\n <TSDocRemarks>\n {`This function is used to upgrade the application dependencies. It can be used in the CLI upgrade command to ensure that all necessary dependencies are up-to-date.`}\n </TSDocRemarks>\n <Spacing />\n <TSDocParam name=\"options\">\n {`The options for the \\`upgrade\\` function. Currently, there are no options available, but this parameter is included for future extensibility.`}\n </TSDocParam>\n <TSDocReturns>\n {`A promise that resolves when the upgrade of dependencies is complete.`}\n </TSDocReturns>\n </TSDoc>\n <FunctionDeclaration\n export\n async\n name=\"upgrade\"\n parameters={[\n {\n name: \"options\",\n type: \"UpgradeOptions\",\n default: \"{}\"\n }\n ]}>\n <VarDeclaration\n const\n name=\"packageManager\"\n initializer={code`await getPackageManager(options); `}\n />\n <Spacing />\n <VarDeclaration\n const\n name=\"args\"\n initializer={code`await getUpgradeCommand(packageManager, options.cwd); `}\n />\n <hbr />\n <VarDeclaration let name=\"output\" initializer={code`\"\"; `} />\n <hbr />\n {code`await spawn(\n \\`\\${packageManager}\\${isWindows && packageManager !== \"bun\" ? \".cmd\" : \"\"}\\`,\n [args.join(\" \")],\n {\n ...options,\n env: {\n ...options.env,\n ...(packageManager === \"pnpm\" ? { npm_config_strict_peer_dependencies: false } : null),\n },\n stdout: (data: string) => {\n options.stdout?.(data);\n output += data;\n },\n stderr: (data: string) => {\n options.stderr?.(data);\n },\n },\n ); `}\n </FunctionDeclaration>\n </>\n );\n}\n\n/**\n * The `updateVersionCheckFile` handler function declaration code for the Shell Shock project.\n */\nexport function UpdateVersionCheckFileFunctionDeclaration() {\n return (\n <>\n <TSDoc heading=\"A helper function that updates the version check file.\">\n <TSDocRemarks>\n {`This function is used to update the version check file with the current timestamp. It can be used in the CLI upgrade command to record the last time a check for updates was performed. The function writes a \"version-check.json\" file in the data directory, which contains a timestamp of the last check for updates.`}\n </TSDocRemarks>\n <Spacing />\n <TSDocReturns>\n {`A promise that resolves to a boolean indicating whether a check for updates is required.`}\n </TSDocReturns>\n </TSDoc>\n <FunctionDeclaration\n export\n async\n name=\"updateVersionCheckFile\"\n returnType=\"void\">\n <IfStatement condition={code`!existsSync(paths.data)`}>\n {code`await mkdir(paths.data, { recursive: true }); `}\n </IfStatement>\n {code`await writeFile(join(paths.data, \"version-check.json\"), JSON.stringify({ timestamp: new Date().getTime() }), \"utf8\"); `}\n </FunctionDeclaration>\n </>\n );\n}\n\n/**\n * The `isCheckForUpdatesRequired` handler function declaration code for the Shell Shock project.\n */\nexport function IsCheckForUpdatesRequiredFunctionDeclaration() {\n const context = usePowerlines<UpgradePluginContext>();\n\n return (\n <>\n <TSDoc heading=\"A helper function that verifies if a check for updates is required.\">\n <TSDocRemarks>\n {`This function is used to determine if a check for updates is required based on the last time a check was performed. It can be used in the CLI upgrade command to avoid unnecessary checks for updates if one was recently performed. The function checks for the existence of a \"version-check.json\" file in the data directory, which contains a timestamp of the last check for updates. If the file does not exist or if the timestamp is older than a specified stale time, the function will return true, indicating that a check for updates is required. Otherwise, it will return false.`}\n </TSDocRemarks>\n <Spacing />\n <TSDocReturns>\n {`A promise that resolves to a boolean indicating whether a check for updates is required.`}\n </TSDocReturns>\n </TSDoc>\n <FunctionDeclaration export async name=\"isCheckForUpdatesRequired\">\n <IfStatement\n condition={code`!isInteractive || isCI || env.SKIP_VERSION_CHECK`}>\n {code`return false; `}\n </IfStatement>\n <Spacing />\n <VarDeclaration\n const\n name=\"filePath\"\n initializer={code`join(paths.data, \"version-check.json\"); `}\n />\n <IfStatement condition={code`existsSync(filePath)`}>\n <VarDeclaration\n const\n name=\"file\"\n type=\"{ timestamp: number; }\"\n initializer={code` JSON.parse(await readFile(filePath, \"utf8\")); `}\n />\n <IfStatement condition={code`!file.timestamp`}>\n {code`await updateVersionCheckFile();\n return true; `}\n </IfStatement>\n <ElseIfClause\n condition={code`new Date().getTime() - file.timestamp < ${\n context.config.upgrade.staleTime\n }`}>\n {code`return false; `}\n </ElseIfClause>\n </IfStatement>\n <ElseClause>\n {code`await updateVersionCheckFile();\n return true; `}\n </ElseClause>\n </FunctionDeclaration>\n </>\n );\n}\n\n/**\n * The `checkForUpdates` handler function declaration code for the Shell Shock project.\n */\nexport function CheckForUpdatesFunctionDeclaration() {\n const context = usePowerlines<UpgradePluginContext>();\n\n return (\n <>\n <InterfaceDeclaration\n export\n name=\"CheckForUpdatesOptions\"\n extends=\"GetPackageManagerOptions\"\n doc=\"Options for the `checkForUpdates` handler function.\">\n <InterfaceMember\n name=\"force\"\n optional\n type=\"boolean\"\n doc=\"Whether to force a check for updates regardless of the last check timestamp. If set to `true`, the function will bypass the timestamp check and perform a check for updates, updating the timestamp in the process. This can be useful if you want to ensure that a check for updates is performed even if one was recently done, such as when the user explicitly requests it or when certain conditions are met that warrant an immediate check.\"\n />\n </InterfaceDeclaration>\n <Spacing />\n <InterfaceDeclaration name=\"CheckForUpdatesBaseResult\">\n <InterfaceMember\n name=\"isError\"\n type=\"boolean\"\n optional\n doc=\"Indicates whether an error occurred while checking for updates.\"\n />\n </InterfaceDeclaration>\n <Spacing />\n <InterfaceDeclaration\n name=\"CheckForUpdatesSuccessResult\"\n extends=\"CheckForUpdatesBaseResult\">\n <InterfaceMember\n name=\"latestVersion\"\n type=\"string\"\n doc=\"The latest version of the application dependencies.\"\n />\n <hbr />\n <InterfaceMember\n name=\"currentVersion\"\n type=\"string\"\n doc=\"The current version of the application dependencies.\"\n />\n <hbr />\n <InterfaceMember\n name=\"isUpToDate\"\n type=\"boolean\"\n doc=\"Indicates whether the application dependencies are up-to-date.\"\n />\n <hbr />\n <InterfaceMember\n name=\"package\"\n type=\"NpmPackage\"\n optional\n doc=\"The npm package that was checked for updates.\"\n />\n </InterfaceDeclaration>\n <Spacing />\n <InterfaceDeclaration\n name=\"CheckForUpdatesErrorResult\"\n extends=\"CheckForUpdatesBaseResult\">\n <InterfaceMember\n name=\"error\"\n type=\"Error\"\n doc=\"The error that occurred while checking for updates.\"\n />\n </InterfaceDeclaration>\n <Spacing />\n <TypeDeclaration\n export\n name=\"CheckForUpdatesResult\"\n doc=\"The result for the `checkForUpdates` handler function.\">\n {code`CheckForUpdatesSuccessResult | CheckForUpdatesErrorResult;`}\n </TypeDeclaration>\n <Spacing />\n <TSDoc heading=\"Check for updates to the application dependencies.\">\n <TSDocRemarks>\n {`This function is used to check for updates to the application dependencies. It can be used in the CLI upgrade command to ensure that all necessary dependencies are up-to-date.`}\n </TSDocRemarks>\n <Spacing />\n <TSDocParam name=\"options\">\n {`The options for the \\`checkForUpdates\\` function. Currently, there are no options available, but this parameter is included for future extensibility.`}\n </TSDocParam>\n <TSDocReturns>\n {`A promise that resolves when the check for updates is complete or undefined if the check was not performed.`}\n </TSDocReturns>\n </TSDoc>\n <FunctionDeclaration\n export\n async\n name=\"checkForUpdates\"\n parameters={[\n {\n name: \"options\",\n type: \"CheckForUpdatesOptions\",\n default: \"{}\"\n }\n ]}\n returnType=\"CheckForUpdatesResult\">\n <IfStatement\n condition={code`!options.force && !(await isCheckForUpdatesRequired())`}>\n {code`return {\n latestVersion: \"${context.packageJson.version}\",\n currentVersion: \"${context.packageJson.version}\",\n isUpToDate: true,\n isError: false,\n }; `}\n </IfStatement>\n <Spacing />\n {code`try { `}\n <VarDeclaration\n const\n name=\"pkg\"\n initializer={code`await fetchNpmPackage(\"${\n context.packageJson.name\n }\"); `}\n />\n <Spacing />\n {code`\n return {\n latestVersion: pkg?.version || \"${context.packageJson.version}\",\n currentVersion: \"${context.packageJson.version}\",\n isUpToDate: pkg ? \"${context.packageJson.version}\" === pkg.version : true,\n package: pkg,\n isError: false,\n };\n } catch (err) {\n return { isError: true, error: err instanceof Error ? err : new Error(String(err)) };\n } `}\n </FunctionDeclaration>\n </>\n );\n}\n\nexport interface UpgradeBuiltinProps extends Omit<\n BuiltinFileProps,\n \"id\" | \"description\"\n> {}\n\n/**\n * A built-in upgrade module for Shell Shock.\n */\nexport function UpgradeBuiltin(props: UpgradeBuiltinProps) {\n const [{ children }, rest] = splitProps(props, [\"children\"]);\n\n return (\n <BuiltinFile\n id=\"upgrade\"\n description=\"A collection of application upgrade utility functions for Shell Shock.\"\n {...rest}\n imports={defu(rest.imports ?? {}, {\n \"node:os\": \"os\",\n \"node:path\": [\"join\", \"resolve\"],\n \"node:fs\": [\"existsSync\"],\n \"node:fs/promises\": [\"readFile\", \"writeFile\", \"mkdir\"],\n \"node:process\": \"process\"\n })}\n builtinImports={defu(rest.builtinImports ?? {}, {\n console: [\"error\", \"verbose\", \"writeLine\"],\n env: [\"paths\", \"isWindows\", \"isCI\", \"env\"],\n utils: [\"isColorSupported\", \"isInteractive\", \"spawn\"]\n })}>\n <VarDeclaration\n const\n name=\"homePath\"\n type=\"string\"\n initializer={code`os.homedir(); `}\n />\n <Spacing />\n <VarDeclaration\n const\n name=\"tempPath\"\n type=\"string\"\n initializer={code`os.tmpdir(); `}\n />\n <Spacing />\n <LocatePackageJsonFunctionDeclaration />\n <Spacing />\n <LocateLockfileFunctionDeclaration />\n <Spacing />\n <GetPackageManagerFunctionDeclaration />\n <Spacing />\n <FetchNpmPackageFunctionDeclaration />\n <Spacing />\n <GetLatestVersionFunctionDeclaration />\n <Spacing />\n <GetUpgradeCommandFunctionDeclaration />\n <Spacing />\n <UpgradeFunctionDeclaration />\n <Spacing />\n <CheckForUpdatesFunctionDeclaration />\n <Spacing />\n <IsCheckForUpdatesRequiredFunctionDeclaration />\n <Spacing />\n <UpdateVersionCheckFileFunctionDeclaration />\n <Spacing />\n <Show when={Boolean(children)}>{children}</Show>\n </BuiltinFile>\n );\n}\n"],"mappings":";;;;;;;;;;;;;AA6CA,SAAgBmB,uCAAuC;CACrD,MAAMC,UAAUV,eAAqC;AAErD,QAAA;EAAAW,gBAEKd,sBAAoB;GAAA,UAAA;GAEnBe,MAAI;GACJC,KAAG;GAAA,IAAAC,WAAA;AAAA,WA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BACnCZ,SAAO,EAAA,CAAA;IAAAY,gBACPmB,sCAAoC,EAAA,CAAA;IAAAnB,gBACpCZ,SAAO,EAAA,CAAA;IAAAY,gBACPoB,4BAA0B,EAAA,CAAA;IAAApB,gBAC1BZ,SAAO,EAAA,CAAA;IAAAY,gBACP0B,oCAAkC,EAAA,CAAA;IAAA1B,gBAClCZ,SAAO,EAAA,CAAA;IAAAY,gBACPsB,8CAA4C,EAAA,CAAA;IAAAtB,gBAC5CZ,SAAO,EAAA,CAAA;IAAAY,gBACPqB,2CAAyC,EAAA,CAAA;IAAArB,gBACzCZ,SAAO,EAAA,CAAA;IAAAY,gBACPpB,MAAI;KAAA,IAAC4D,OAAI;AAAA,aAAEC,QAAQtC,SAAS;;KAAGA;KAAQ,CAAA;IAAA;;EAAA,CAAA,CAAA"}
package/package.json CHANGED
@@ -1,18 +1,30 @@
1
1
  {
2
2
  "name": "@shell-shock/plugin-upgrade",
3
- "version": "0.1.10",
4
- "type": "module",
3
+ "version": "0.1.12",
4
+ "private": false,
5
5
  "description": "A package containing a Shell Shock plugin to manage upgrading the local application's version.",
6
+ "keywords": [
7
+ "style-dictionary",
8
+ "shell-shock",
9
+ "shell-shock-plugin",
10
+ "powerlines",
11
+ "storm-software"
12
+ ],
13
+ "homepage": "https://stormsoftware.com",
14
+ "bugs": {
15
+ "url": "https://stormsoftware.com/support",
16
+ "email": "support@stormsoftware.com"
17
+ },
6
18
  "repository": {
7
19
  "type": "github",
8
20
  "url": "https://github.com/storm-software/shell-shock.git",
9
21
  "directory": "packages/plugin-upgrade"
10
22
  },
11
- "homepage": "https://stormsoftware.com",
12
- "bugs": {
13
- "url": "https://stormsoftware.com/support",
14
- "email": "support@stormsoftware.com"
23
+ "funding": {
24
+ "type": "github",
25
+ "url": "https://github.com/sponsors/storm-software"
15
26
  },
27
+ "license": "Apache-2.0",
16
28
  "author": {
17
29
  "name": "Storm Software",
18
30
  "email": "contact@stormsoftware.com",
@@ -32,14 +44,7 @@
32
44
  "url": "https://stormsoftware.com"
33
45
  }
34
46
  ],
35
- "funding": {
36
- "type": "github",
37
- "url": "https://github.com/sponsors/storm-software"
38
- },
39
- "license": "Apache-2.0",
40
- "private": false,
41
- "main": "./dist/index.cjs",
42
- "module": "./dist/index.mjs",
47
+ "type": "module",
43
48
  "exports": {
44
49
  ".": {
45
50
  "require": {
@@ -55,6 +60,7 @@
55
60
  "default": "./dist/index.mjs"
56
61
  }
57
62
  },
63
+ "./*": "./*",
58
64
  "./components": {
59
65
  "require": {
60
66
  "types": "./dist/components/index.d.cts",
@@ -97,7 +103,6 @@
97
103
  "default": "./dist/components/upgrade-command.mjs"
98
104
  }
99
105
  },
100
- "./package.json": "./package.json",
101
106
  "./types": {
102
107
  "require": {
103
108
  "types": "./dist/types/index.d.cts",
@@ -155,30 +160,25 @@
155
160
  }
156
161
  }
157
162
  },
163
+ "main": "./dist/index.cjs",
164
+ "module": "./dist/index.mjs",
158
165
  "types": "./dist/index.d.cts",
159
166
  "typings": "dist/index.d.mts",
160
167
  "files": ["dist/**/*"],
161
- "keywords": [
162
- "style-dictionary",
163
- "shell-shock",
164
- "shell-shock-plugin",
165
- "powerlines",
166
- "storm-software"
167
- ],
168
168
  "dependencies": {
169
169
  "@alloy-js/core": "0.23.0-dev.8",
170
170
  "@alloy-js/typescript": "0.23.0-dev.4",
171
- "@powerlines/deepkit": "^0.6.69",
172
- "@powerlines/plugin-alloy": "^0.23.19",
173
- "@powerlines/plugin-plugin": "^0.12.240",
174
- "@shell-shock/core": "^0.9.6",
175
- "@stryke/path": "0.26.6",
176
- "powerlines": "^0.38.56",
177
- "defu": "6.1.4"
171
+ "@powerlines/deepkit": "^0.6.88",
172
+ "@powerlines/plugin-alloy": "^0.23.40",
173
+ "@powerlines/plugin-plugin": "^0.12.260",
174
+ "@shell-shock/core": "^0.10.0",
175
+ "@stryke/path": "^0.26.6",
176
+ "defu": "^6.1.4",
177
+ "powerlines": "^0.39.17"
178
178
  },
179
179
  "devDependencies": {
180
- "@powerlines/plugin-deepkit": "^0.11.168",
181
- "@types/node": "^25.3.1"
180
+ "@powerlines/plugin-deepkit": "^0.11.188",
181
+ "@types/node": "^25.3.3"
182
182
  },
183
183
  "publishConfig": {
184
184
  "access": "public",
@@ -195,5 +195,5 @@
195
195
  "./package.json": "./package.json"
196
196
  }
197
197
  },
198
- "gitHead": "5060b4eea839167762bf802105495283c31fec1b"
198
+ "gitHead": "d0abdaa95b5e40df2157d393f0ba8499589140ca"
199
199
  }