@cyberskill/shared 2.26.0 → 2.27.0
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/README.md +1 -1
- package/dist/config/config.util.cjs +1 -1
- package/dist/config/config.util.js +14 -19
- package/dist/config/eslint/index.cjs +1 -1
- package/dist/config/eslint/index.js +1 -1
- package/dist/config/vitest/vitest.e2e.cjs +1 -1
- package/dist/config/vitest/vitest.e2e.js +1 -1
- package/dist/config/vitest/vitest.unit.cjs +1 -1
- package/dist/config/vitest/vitest.unit.js +1 -1
- package/dist/node/cli/index.cjs +3 -3
- package/dist/node/cli/index.js +106 -96
- package/dist/node/command/command.util.js +1 -1
- package/dist/node/path/index.cjs +1 -1
- package/dist/node/path/index.js +53 -51
- package/dist/node/path/path.constant.cjs +1 -1
- package/dist/node/path/path.constant.d.ts +3 -0
- package/dist/node/path/path.constant.js +63 -60
- package/dist/react/apollo-client/apollo-client.component.cjs +1 -1
- package/dist/react/apollo-client/apollo-client.component.d.ts +1 -1
- package/dist/react/apollo-client/apollo-client.component.js +4 -3
- package/dist/react/apollo-client/apollo-client.context.cjs +1 -1
- package/dist/react/apollo-client/apollo-client.context.d.ts +1 -1
- package/dist/react/apollo-client/apollo-client.context.js +9 -8
- package/dist/react/apollo-client/apollo-client.util.cjs +1 -1
- package/dist/react/apollo-client/apollo-client.util.js +3 -3
- package/dist/react/apollo-client-nextjs/apollo-client-nextjs.component.cjs +1 -1
- package/dist/react/apollo-client-nextjs/apollo-client-nextjs.component.d.ts +1 -1
- package/dist/react/apollo-client-nextjs/apollo-client-nextjs.component.js +9 -8
- package/dist/react/apollo-error/apollo-error.component.cjs +1 -1
- package/dist/react/apollo-error/apollo-error.component.d.ts +1 -1
- package/dist/react/apollo-error/apollo-error.component.js +2 -1
- package/dist/react/apollo-error/apollo-error.provider.cjs +1 -1
- package/dist/react/apollo-error/apollo-error.provider.d.ts +1 -1
- package/dist/react/apollo-error/apollo-error.provider.js +4 -3
- package/dist/react/loading/loading.component.cjs +2 -2
- package/dist/react/loading/loading.component.d.ts +1 -1
- package/dist/react/loading/loading.component.js +7 -6
- package/dist/react/loading/loading.provider.cjs +1 -1
- package/dist/react/loading/loading.provider.d.ts +1 -1
- package/dist/react/loading/loading.provider.js +8 -7
- package/dist/react/next-intl/next-intl.hoc.cjs +1 -1
- package/dist/react/next-intl/next-intl.hoc.d.ts +2 -1
- package/dist/react/next-intl/next-intl.hoc.js +12 -12
- package/dist/react/next-intl/next-intl.provider.cjs +1 -1
- package/dist/react/next-intl/next-intl.provider.d.ts +1 -1
- package/dist/react/next-intl/next-intl.provider.js +5 -4
- package/package.json +23 -22
- /package/dist/node_modules/.pnpm/{vitest@4.0.16_@types_node@25.0.3_jiti@2.6.1_jsdom@27.4.0_sass@1.97.2_tsx@4.21.0_yaml@2.8.2 → vitest@4.0.17_@types_node@25.0.9_jiti@2.6.1_jsdom@27.4.0_@noble_hashes@1.8.0__sass@1.97.2_tsx@4.21.0_yaml@2.8.2}/node_modules/vitest/dist/config.cjs +0 -0
- /package/dist/node_modules/.pnpm/{vitest@4.0.16_@types_node@25.0.3_jiti@2.6.1_jsdom@27.4.0_sass@1.97.2_tsx@4.21.0_yaml@2.8.2 → vitest@4.0.17_@types_node@25.0.9_jiti@2.6.1_jsdom@27.4.0_@noble_hashes@1.8.0__sass@1.97.2_tsx@4.21.0_yaml@2.8.2}/node_modules/vitest/dist/config.js +0 -0
package/README.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("@antfu/eslint-config"),i=require("./config.type.cjs"),o=require("./eslint/index.cjs"),_=require("./vitest/vitest.e2e.cjs"),l=require("./vitest/vitest.unit.cjs"),a=require("../util/object/object.util.cjs");var f=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,E=(e,n)=>{var t={};for(var r in e)y.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&f)for(var r of f(e))n.indexOf(r)<0&&u.call(e,r)&&(t[r]=e[r]);return t};const p=(...e)=>{const t=a.deepMerge(...Array.isArray(o.default)?o.default:[o.default],...e),{ignores:r}=t,g=E(t,["ignores"]);return s({stylistic:{semi:!0,indent:4},formatters:!0,yaml:!1,react:!0},g,...Array.isArray(r)?[{ignores:r}]:[])},T={[i.E_ConfigType.ESLINT]:e=>p(e),[i.E_ConfigType.COMMITLINT]:e=>a.deepMerge(e),[i.E_ConfigType.LINT_STAGED]:e=>a.deepMerge(e),[i.E_ConfigType.VITEST_REACT_UNIT]:e=>l.vitestUnit(e),[i.E_ConfigType.VITEST_REACT_E2E]:e=>_.vitestE2E(e)};function d(e,...n){const t=T[e];if(!n||n.length===0)return t({});if(!t)throw new Error(`Unknown config type: ${e}`);return t(...n)}exports.mergeConfigs=d;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import
|
|
1
|
+
import s from "@antfu/eslint-config";
|
|
2
2
|
import { E_ConfigType as o } from "./config.type.js";
|
|
3
3
|
import i from "./eslint/index.js";
|
|
4
|
-
import { vitestE2E as
|
|
5
|
-
import { vitestUnit as
|
|
4
|
+
import { vitestE2E as p } from "./vitest/vitest.e2e.js";
|
|
5
|
+
import { vitestUnit as g } from "./vitest/vitest.unit.js";
|
|
6
6
|
import { deepMerge as a } from "../util/object/object.util.js";
|
|
7
|
-
var f = Object.getOwnPropertySymbols,
|
|
7
|
+
var f = Object.getOwnPropertySymbols, l = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable, _ = (r, n) => {
|
|
8
8
|
var e = {};
|
|
9
9
|
for (var t in r)
|
|
10
|
-
|
|
10
|
+
l.call(r, t) && n.indexOf(t) < 0 && (e[t] = r[t]);
|
|
11
11
|
if (r != null && f)
|
|
12
12
|
for (var t of f(r))
|
|
13
13
|
n.indexOf(t) < 0 && E.call(r, t) && (e[t] = r[t]);
|
|
@@ -17,33 +17,28 @@ const y = (...r) => {
|
|
|
17
17
|
const e = a(
|
|
18
18
|
...Array.isArray(i) ? i : [i],
|
|
19
19
|
...r
|
|
20
|
-
), { ignores: t } = e,
|
|
21
|
-
return
|
|
20
|
+
), { ignores: t } = e, m = _(e, ["ignores"]);
|
|
21
|
+
return s(
|
|
22
22
|
{
|
|
23
23
|
stylistic: {
|
|
24
24
|
semi: !0,
|
|
25
|
-
indent: 4
|
|
26
|
-
quotes: "single"
|
|
27
|
-
},
|
|
28
|
-
formatters: {
|
|
29
|
-
css: !0,
|
|
30
|
-
html: !0,
|
|
31
|
-
markdown: "prettier"
|
|
25
|
+
indent: 4
|
|
32
26
|
},
|
|
27
|
+
formatters: !0,
|
|
33
28
|
yaml: !1,
|
|
34
29
|
react: !0
|
|
35
30
|
},
|
|
36
|
-
|
|
31
|
+
m,
|
|
37
32
|
...Array.isArray(t) ? [{ ignores: t }] : []
|
|
38
33
|
);
|
|
39
34
|
}, T = {
|
|
40
35
|
[o.ESLINT]: (r) => y(r),
|
|
41
36
|
[o.COMMITLINT]: (r) => a(r),
|
|
42
37
|
[o.LINT_STAGED]: (r) => a(r),
|
|
43
|
-
[o.VITEST_REACT_UNIT]: (r) =>
|
|
44
|
-
[o.VITEST_REACT_E2E]: (r) =>
|
|
38
|
+
[o.VITEST_REACT_UNIT]: (r) => g(r),
|
|
39
|
+
[o.VITEST_REACT_E2E]: (r) => p(r)
|
|
45
40
|
};
|
|
46
|
-
function
|
|
41
|
+
function w(r, ...n) {
|
|
47
42
|
const e = T[r];
|
|
48
43
|
if (!n || n.length === 0)
|
|
49
44
|
return e({});
|
|
@@ -52,5 +47,5 @@ function b(r, ...n) {
|
|
|
52
47
|
return e(...n);
|
|
53
48
|
}
|
|
54
49
|
export {
|
|
55
|
-
|
|
50
|
+
w as mergeConfigs
|
|
56
51
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("globals");function u(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,o.get?o:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const n=u(i);var c=Object.defineProperty,a=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,l=(t,e,r)=>e in t?c(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,s=(t,e)=>{for(var r in e||(e={}))f.call(e,r)&&l(t,r,e[r]);if(a)for(var r of a(e))p.call(e,r)&&l(t,r,e[r]);return t};const d=[{languageOptions:{globals:s(s({},n.node),n.browser)},rules:{"perfectionist/sort-imports":["error",{internalPattern:["^#.*","^@/.*"]}],"dot-notation":"off"},ignores:["**/node_modules/**","**/.git/**","build","dist"]}];exports.default=d;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("globals");function u(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,o.get?o:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const n=u(i);var c=Object.defineProperty,a=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,l=(t,e,r)=>e in t?c(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,s=(t,e)=>{for(var r in e||(e={}))f.call(e,r)&&l(t,r,e[r]);if(a)for(var r of a(e))p.call(e,r)&&l(t,r,e[r]);return t};const d=[{languageOptions:{globals:s(s({},n.node),n.browser)},rules:{"perfectionist/sort-imports":["error",{internalPattern:["^#.*","^@/.*"]}],"dot-notation":"off"},ignores:["**/node_modules/**","**/.git/**","build","dist",".agent"]}];exports.default=d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@vitejs/plugin-react-swc"),i=require("../../node_modules/.pnpm/vitest@4.0.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@vitejs/plugin-react-swc"),i=require("../../node_modules/.pnpm/vitest@4.0.17_@types_node@25.0.9_jiti@2.6.1_jsdom@27.4.0_@noble_hashes@1.8.0__sass@1.97.2_tsx@4.21.0_yaml@2.8.2/node_modules/vitest/dist/config.cjs"),o=require("../../util/object/object.util.cjs");function n(e){const r={plugins:[t()],test:{include:["**/*.test.e2e.?(c|m)[jt]s?(x)"],browser:{enabled:!0,provider:"playwright",instances:[{browser:"chromium"},{browser:"firefox"},{browser:"webkit"}]}}};return i.defineConfig(o.deepMerge(r,e))}exports.vitestE2E=n;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import t from "@vitejs/plugin-react-swc";
|
|
2
|
-
import { defineConfig as o } from "../../node_modules/.pnpm/vitest@4.0.
|
|
2
|
+
import { defineConfig as o } from "../../node_modules/.pnpm/vitest@4.0.17_@types_node@25.0.9_jiti@2.6.1_jsdom@27.4.0_@noble_hashes@1.8.0__sass@1.97.2_tsx@4.21.0_yaml@2.8.2/node_modules/vitest/dist/config.js";
|
|
3
3
|
import { deepMerge as i } from "../../util/object/object.util.js";
|
|
4
4
|
function m(e) {
|
|
5
5
|
const r = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("@vitejs/plugin-react-swc"),n=require("../../node_modules/.pnpm/vitest@4.0.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("@vitejs/plugin-react-swc"),n=require("../../node_modules/.pnpm/vitest@4.0.17_@types_node@25.0.9_jiti@2.6.1_jsdom@27.4.0_@noble_hashes@1.8.0__sass@1.97.2_tsx@4.21.0_yaml@2.8.2/node_modules/vitest/dist/config.cjs"),s=require("../../util/object/object.util.cjs");function r(e){const t={plugins:[i()],test:{globals:!0,environment:"jsdom",pool:"vmThreads",include:["**/*.test.unit.?(c|m)[jt]s?(x)"],setupFiles:["./vitest.unit.setup.ts"]}};return n.defineConfig(s.deepMerge(t,e))}exports.vitestUnit=r;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import i from "@vitejs/plugin-react-swc";
|
|
2
|
-
import { defineConfig as o } from "../../node_modules/.pnpm/vitest@4.0.
|
|
2
|
+
import { defineConfig as o } from "../../node_modules/.pnpm/vitest@4.0.17_@types_node@25.0.9_jiti@2.6.1_jsdom@27.4.0_@noble_hashes@1.8.0__sass@1.97.2_tsx@4.21.0_yaml@2.8.2/node_modules/vitest/dist/config.js";
|
|
3
3
|
import { deepMerge as n } from "../../util/object/object.util.js";
|
|
4
4
|
function p(t) {
|
|
5
5
|
const e = {
|
package/dist/node/cli/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
"use strict";const
|
|
2
|
+
"use strict";const s=require("node:process"),I=require("yargs/helpers"),T=require("yargs/yargs"),e=require("../command/command.util.cjs"),y=require("../package/package.util.cjs"),a=require("../fs/fs.util.cjs"),G=require("../path/path.util.cjs"),n=require("../path/path.constant.cjs"),c=require("../log/log.util.cjs"),f=require("../log/log.type.cjs");var t=(i,o,r)=>new Promise((l,p)=>{var A=u=>{try{m(r.next(u))}catch(g){p(g)}},k=u=>{try{m(r.throw(u))}catch(g){p(g)}},m=u=>u.done?l(u.value):Promise.resolve(u.value).then(A,k);m((r=r.apply(i,o)).next())});function M(){try{return JSON.parse(a.readFileSync(G.resolve(__dirname,"../../../package.json"),"utf-8")).version}catch(i){return"1.0.0"}}function E(){return t(this,null,function*(){a.pathExistsSync(n.PATH.TS_CONFIG)?yield e.runCommand("Performing TypeScript validation",yield n.command.typescriptCheck()):c.log.warn("No TypeScript configuration found. Skipping type check.")})}function C(i=!1){return t(this,null,function*(){const o=i?yield n.command.eslintFix():yield n.command.eslintCheck(),r=i?"Running ESLint with auto-fix":"Running ESLint check";try{yield e.runCommand(r,o,{timeout:6e4,throwOnError:!0})}catch(l){l.code==="ETIMEDOUT"||l.killed||l.signal==="SIGTERM"?(c.log.warn("Lint check timed out. Retrying with debug mode enabled..."),s.env.DEBUG="true",yield e.runCommand(`${r} (Debug Mode)`,o)):c.catchError(l)}})}function h(i,o){if(!o.length)return;const r=i==="Errors"?"red":"yellow";c.log.printBoxedLog(i==="Errors"?"✖ Errors":"⚠ Warnings",o,r)}function d(){return t(this,null,function*(){setTimeout(()=>t(null,null,function*(){const i=(yield e.getStoredErrorLists())||[],o=i.filter(l=>l.type===f.E_IssueType.Error),r=i.filter(l=>l.type===f.E_IssueType.Warning);!o.length&&!r.length?c.log.printBoxedLog("✔ NO ISSUES FOUND",[],"green"):(h("Warnings",r),h("Errors",o),o.length>0&&s.exit(1))}),0)})}function v(){return t(this,null,function*(){yield e.clearAllErrorLists();const i=yield y.getPackage({name:n.CYBERSKILL_PACKAGE_NAME});if(!i.success){c.log.error("Failed to retrieve package information. Aborting lint-staged.");return}i.result.isCurrentProject&&(yield e.runCommand(`Building package: ${n.CYBERSKILL_PACKAGE_NAME}`,yield n.command.build())),yield e.runCommand("Executing lint-staged",yield n.command.lintStaged()),d()})}function P(){return t(this,null,function*(){yield e.runCommand("Inspecting ESLint configuration",yield n.command.eslintInspect())})}function L(){return t(this,null,function*(){yield e.clearAllErrorLists(),yield E(),yield C(),d()})}function O(){return t(this,null,function*(){yield e.clearAllErrorLists(),yield E(),yield C(!0),d()})}function N(){return t(this,null,function*(){yield e.clearAllErrorLists(),yield e.runCommand("Validating commit message",yield n.command.commitLint()),d()})}function S(){return t(this,null,function*(){yield e.runCommand("Configuring Git hooks",yield n.command.configureGitHook()),a.removeSync(n.PATH.GIT_HOOK);const i=yield e.resolveCommands(n.createGitHooksConfig);a.writeFileSync(n.PATH.SIMPLE_GIT_HOOKS_JSON,JSON.stringify(i,null,4));const o=`
|
|
3
3
|
${n.SIMPLE_GIT_HOOK_JSON}
|
|
4
4
|
`;a.pathExistsSync(n.PATH.GIT_IGNORE)?a.readFileSync(n.PATH.GIT_IGNORE,"utf-8").split(`
|
|
5
|
-
`).includes(n.SIMPLE_GIT_HOOK_JSON)||a.appendFileSync(n.PATH.GIT_IGNORE,o):a.writeFileSync(n.PATH.GIT_IGNORE,o),yield
|
|
6
|
-
`).parse()}catch(
|
|
5
|
+
`).includes(n.SIMPLE_GIT_HOOK_JSON)||a.appendFileSync(n.PATH.GIT_IGNORE,o):a.writeFileSync(n.PATH.GIT_IGNORE,o),yield e.runCommand("Setting up simple-git-hooks",yield n.command.simpleGitHooks())})}function R(){return t(this,null,function*(){yield y.installDependencies(),yield S()})}function b(){return t(this,null,function*(){a.removeSync(n.PATH.NODE_MODULES,n.PATH.PNPM_LOCK_YAML),yield e.runCommand("Pruning pnpm store",yield n.command.pnpmPruneStore()),yield e.runCommand("Clearing pnpm cache",yield n.command.pnpmCleanCache()),yield y.installDependencies(),yield S(),yield _()})}function D(){return t(this,null,function*(){yield e.runCommand("Inspecting project dependencies",yield n.command.nodeModulesInspect())})}function B(){return t(this,null,function*(){yield e.runCommand("Running unit tests",yield n.command.testUnit())})}function H(){return t(this,null,function*(){yield e.runCommand("Running end-to-end tests",yield n.command.testE2e())})}function K(i){return t(this,null,function*(){yield e.runCommand("Creating MongoDB migration",yield n.command.mongoMigrateCreate(i))})}function w(){return t(this,null,function*(){yield e.runCommand("Running MongoDB migrations",yield n.command.mongoMigrateUp())})}function x(){return t(this,null,function*(){yield e.runCommand("Rolling back MongoDB migration",yield n.command.mongoMigrateDown())})}function q(){return t(this,null,function*(){yield e.runCommand("Starting Storybook development server",yield n.command.storybookDev())})}function F(){return t(this,null,function*(){yield e.runCommand("Building Storybook",yield n.command.storybookBuild())})}function _(){return t(this,null,function*(){try{yield e.runCommand(`Checking for ${n.AG_KIT_PACKAGE_NAME}`,`pnpm list -g ${n.AG_KIT_PACKAGE_NAME}`)}catch(i){yield e.runCommand(`Installing ${n.AG_KIT_PACKAGE_NAME} globally`,`pnpm i -g ${n.AG_KIT_PACKAGE_NAME}`)}a.pathExistsSync(n.PATH.DOT_AGENT)?yield e.runCommand("Updating AI agent","ag-kit update"):yield e.runCommand("Initializing AI agent","ag-kit init")})}t(null,null,function*(){try{yield T(I.hideBin(s.argv)).scriptName(n.CYBERSKILL_CLI).usage("$0 <command> [options]").command("ai:setup","Setup AI agent environment",_).command("lint","Check code for linting issues",L).command("lint:fix","Fix linting issues automatically",O).command("lint:inspect","View active ESLint configuration",P).command("lint-staged","Run lint checks on staged files",v).command("commitlint","Validate commit message format",N).command("ready","Initialize project and dependencies",R).command("reset","Reset the project and reinstall dependencies",b).command("inspect","Analyze installed project dependencies",D).command("test:unit","Run unit test suite",B).command("test:e2e","Run end-to-end test suite",H).command("mongo:migrate:create <name>","Create a MongoDB migration",i=>i.positional("name",{describe:"Migration name",type:"string"}),i=>t(null,null,function*(){if(!i.name){c.log.error("Migration name is required.");return}yield K(i.name)})).command("mongo:migrate:up","Apply all MongoDB migrations",w).command("mongo:migrate:down","Rollback last MongoDB migration",x).command("storybook:dev","Start Storybook development server",q).command("storybook:build","Build Storybook for production",F).demandCommand(1,"Please specify a valid command.").strict().help().alias("h","help").alias("v","version").version(M()).epilog(`💡 Tip: Use "--help" with any command to see options
|
|
6
|
+
`).parse()}catch(i){c.catchError(i),s.exit(1)}});
|
package/dist/node/cli/index.js
CHANGED
|
@@ -1,175 +1,185 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import
|
|
3
|
-
import { hideBin as
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import { getPackage as
|
|
7
|
-
import {
|
|
2
|
+
import d from "node:process";
|
|
3
|
+
import { hideBin as N } from "yargs/helpers";
|
|
4
|
+
import A from "yargs/yargs";
|
|
5
|
+
import { runCommand as e, clearAllErrorLists as m, getStoredErrorLists as B, resolveCommands as w } from "../command/command.util.js";
|
|
6
|
+
import { getPackage as P, installDependencies as _ } from "../package/package.util.js";
|
|
7
|
+
import { pathExistsSync as f, removeSync as C, readFileSync as M, writeFileSync as k, appendFileSync as U } from "../fs/fs.util.js";
|
|
8
8
|
import { resolve as x } from "../path/path.util.js";
|
|
9
|
-
import { CYBERSKILL_CLI as
|
|
10
|
-
import { log as
|
|
11
|
-
import { E_IssueType as
|
|
12
|
-
var
|
|
13
|
-
var
|
|
9
|
+
import { CYBERSKILL_CLI as F, command as t, CYBERSKILL_PACKAGE_NAME as E, PATH as s, SIMPLE_GIT_HOOK_JSON as S, createGitHooksConfig as K, AG_KIT_PACKAGE_NAME as u } from "../path/path.constant.js";
|
|
10
|
+
import { log as a, catchError as O } from "../log/log.util.js";
|
|
11
|
+
import { E_IssueType as I } from "../log/log.type.js";
|
|
12
|
+
var i = (n, o, r) => new Promise((l, h) => {
|
|
13
|
+
var T = (c) => {
|
|
14
14
|
try {
|
|
15
|
-
|
|
16
|
-
} catch (
|
|
17
|
-
p
|
|
15
|
+
y(r.next(c));
|
|
16
|
+
} catch (p) {
|
|
17
|
+
h(p);
|
|
18
18
|
}
|
|
19
|
-
},
|
|
19
|
+
}, D = (c) => {
|
|
20
20
|
try {
|
|
21
|
-
|
|
22
|
-
} catch (
|
|
23
|
-
p
|
|
21
|
+
y(r.throw(c));
|
|
22
|
+
} catch (p) {
|
|
23
|
+
h(p);
|
|
24
24
|
}
|
|
25
|
-
},
|
|
26
|
-
|
|
25
|
+
}, y = (c) => c.done ? l(c.value) : Promise.resolve(c.value).then(T, D);
|
|
26
|
+
y((r = r.apply(n, o)).next());
|
|
27
27
|
});
|
|
28
|
-
function
|
|
28
|
+
function H() {
|
|
29
29
|
try {
|
|
30
30
|
return JSON.parse(
|
|
31
|
-
|
|
31
|
+
M(x(__dirname, "../../../package.json"), "utf-8")
|
|
32
32
|
).version;
|
|
33
33
|
} catch (n) {
|
|
34
34
|
return "1.0.0";
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
return
|
|
39
|
-
|
|
37
|
+
function b() {
|
|
38
|
+
return i(this, null, function* () {
|
|
39
|
+
f(s.TS_CONFIG) ? yield e("Performing TypeScript validation", yield t.typescriptCheck()) : a.warn("No TypeScript configuration found. Skipping type check.");
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
return
|
|
42
|
+
function G(n = !1) {
|
|
43
|
+
return i(this, null, function* () {
|
|
44
44
|
const o = n ? yield t.eslintFix() : yield t.eslintCheck(), r = n ? "Running ESLint with auto-fix" : "Running ESLint check";
|
|
45
45
|
try {
|
|
46
|
-
yield
|
|
46
|
+
yield e(r, o, { timeout: 6e4, throwOnError: !0 });
|
|
47
47
|
} catch (l) {
|
|
48
|
-
l.code === "ETIMEDOUT" || l.killed || l.signal === "SIGTERM" ? (
|
|
48
|
+
l.code === "ETIMEDOUT" || l.killed || l.signal === "SIGTERM" ? (a.warn("Lint check timed out. Retrying with debug mode enabled..."), d.env.DEBUG = "true", yield e(`${r} (Debug Mode)`, o)) : O(l);
|
|
49
49
|
}
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function v(n, o) {
|
|
53
53
|
if (!o.length)
|
|
54
54
|
return;
|
|
55
55
|
const r = n === "Errors" ? "red" : "yellow";
|
|
56
|
-
|
|
56
|
+
a.printBoxedLog(n === "Errors" ? "✖ Errors" : "⚠ Warnings", o, r);
|
|
57
57
|
}
|
|
58
|
-
function
|
|
59
|
-
return
|
|
60
|
-
setTimeout(() =>
|
|
61
|
-
const n = (yield B()) || [], o = n.filter((l) => l.type ===
|
|
62
|
-
!o.length && !r.length ?
|
|
58
|
+
function g() {
|
|
59
|
+
return i(this, null, function* () {
|
|
60
|
+
setTimeout(() => i(null, null, function* () {
|
|
61
|
+
const n = (yield B()) || [], o = n.filter((l) => l.type === I.Error), r = n.filter((l) => l.type === I.Warning);
|
|
62
|
+
!o.length && !r.length ? a.printBoxedLog("✔ NO ISSUES FOUND", [], "green") : (v("Warnings", r), v("Errors", o), o.length > 0 && d.exit(1));
|
|
63
63
|
}), 0);
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
return
|
|
68
|
-
yield
|
|
69
|
-
const n = yield
|
|
66
|
+
function $() {
|
|
67
|
+
return i(this, null, function* () {
|
|
68
|
+
yield m();
|
|
69
|
+
const n = yield P({ name: E });
|
|
70
70
|
if (!n.success) {
|
|
71
|
-
|
|
71
|
+
a.error("Failed to retrieve package information. Aborting lint-staged.");
|
|
72
72
|
return;
|
|
73
73
|
}
|
|
74
|
-
n.result.isCurrentProject && (yield
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
function K() {
|
|
78
|
-
return e(this, null, function* () {
|
|
79
|
-
yield i("Inspecting ESLint configuration", yield t.eslintInspect());
|
|
74
|
+
n.result.isCurrentProject && (yield e(`Building package: ${E}`, yield t.build())), yield e("Executing lint-staged", yield t.lintStaged()), g();
|
|
80
75
|
});
|
|
81
76
|
}
|
|
82
77
|
function j() {
|
|
83
|
-
return
|
|
84
|
-
yield
|
|
78
|
+
return i(this, null, function* () {
|
|
79
|
+
yield e("Inspecting ESLint configuration", yield t.eslintInspect());
|
|
85
80
|
});
|
|
86
81
|
}
|
|
87
82
|
function J() {
|
|
88
|
-
return
|
|
89
|
-
yield
|
|
83
|
+
return i(this, null, function* () {
|
|
84
|
+
yield m(), yield b(), yield G(), g();
|
|
90
85
|
});
|
|
91
86
|
}
|
|
92
87
|
function V() {
|
|
93
|
-
return
|
|
94
|
-
yield
|
|
88
|
+
return i(this, null, function* () {
|
|
89
|
+
yield m(), yield b(), yield G(!0), g();
|
|
95
90
|
});
|
|
96
91
|
}
|
|
97
|
-
function
|
|
98
|
-
return
|
|
99
|
-
yield
|
|
100
|
-
const n = yield w(A);
|
|
101
|
-
f(s.SIMPLE_GIT_HOOKS_JSON, JSON.stringify(n, null, 4));
|
|
102
|
-
const o = `
|
|
103
|
-
${k}
|
|
104
|
-
`;
|
|
105
|
-
M(s.GIT_IGNORE) ? C(s.GIT_IGNORE, "utf-8").split(`
|
|
106
|
-
`).includes(k) || P(s.GIT_IGNORE, o) : f(s.GIT_IGNORE, o), yield i("Setting up simple-git-hooks", yield t.simpleGitHooks());
|
|
92
|
+
function z() {
|
|
93
|
+
return i(this, null, function* () {
|
|
94
|
+
yield m(), yield e("Validating commit message", yield t.commitLint()), g();
|
|
107
95
|
});
|
|
108
96
|
}
|
|
109
|
-
function
|
|
110
|
-
return
|
|
111
|
-
yield
|
|
97
|
+
function L() {
|
|
98
|
+
return i(this, null, function* () {
|
|
99
|
+
yield e("Configuring Git hooks", yield t.configureGitHook()), C(s.GIT_HOOK);
|
|
100
|
+
const n = yield w(K);
|
|
101
|
+
k(s.SIMPLE_GIT_HOOKS_JSON, JSON.stringify(n, null, 4));
|
|
102
|
+
const o = `
|
|
103
|
+
${S}
|
|
104
|
+
`;
|
|
105
|
+
f(s.GIT_IGNORE) ? M(s.GIT_IGNORE, "utf-8").split(`
|
|
106
|
+
`).includes(S) || U(s.GIT_IGNORE, o) : k(s.GIT_IGNORE, o), yield e("Setting up simple-git-hooks", yield t.simpleGitHooks());
|
|
112
107
|
});
|
|
113
108
|
}
|
|
114
109
|
function W() {
|
|
115
|
-
return
|
|
116
|
-
|
|
110
|
+
return i(this, null, function* () {
|
|
111
|
+
yield _(), yield L();
|
|
117
112
|
});
|
|
118
113
|
}
|
|
119
114
|
function Y() {
|
|
120
|
-
return
|
|
121
|
-
yield
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
function z() {
|
|
125
|
-
return e(this, null, function* () {
|
|
126
|
-
yield i("Running unit tests", yield t.testUnit());
|
|
115
|
+
return i(this, null, function* () {
|
|
116
|
+
C(s.NODE_MODULES, s.PNPM_LOCK_YAML), yield e("Pruning pnpm store", yield t.pnpmPruneStore()), yield e("Clearing pnpm cache", yield t.pnpmCleanCache()), yield _(), yield L(), yield R();
|
|
127
117
|
});
|
|
128
118
|
}
|
|
129
119
|
function q() {
|
|
130
|
-
return
|
|
131
|
-
yield
|
|
120
|
+
return i(this, null, function* () {
|
|
121
|
+
yield e("Inspecting project dependencies", yield t.nodeModulesInspect());
|
|
132
122
|
});
|
|
133
123
|
}
|
|
134
|
-
function Q(
|
|
135
|
-
return
|
|
136
|
-
yield
|
|
124
|
+
function Q() {
|
|
125
|
+
return i(this, null, function* () {
|
|
126
|
+
yield e("Running unit tests", yield t.testUnit());
|
|
137
127
|
});
|
|
138
128
|
}
|
|
139
129
|
function X() {
|
|
140
|
-
return
|
|
141
|
-
yield
|
|
130
|
+
return i(this, null, function* () {
|
|
131
|
+
yield e("Running end-to-end tests", yield t.testE2e());
|
|
142
132
|
});
|
|
143
133
|
}
|
|
144
|
-
function Z() {
|
|
145
|
-
return
|
|
146
|
-
yield
|
|
134
|
+
function Z(n) {
|
|
135
|
+
return i(this, null, function* () {
|
|
136
|
+
yield e("Creating MongoDB migration", yield t.mongoMigrateCreate(n));
|
|
147
137
|
});
|
|
148
138
|
}
|
|
149
139
|
function nn() {
|
|
150
|
-
return
|
|
151
|
-
yield
|
|
140
|
+
return i(this, null, function* () {
|
|
141
|
+
yield e("Running MongoDB migrations", yield t.mongoMigrateUp());
|
|
152
142
|
});
|
|
153
143
|
}
|
|
154
144
|
function en() {
|
|
155
|
-
return
|
|
156
|
-
yield
|
|
145
|
+
return i(this, null, function* () {
|
|
146
|
+
yield e("Rolling back MongoDB migration", yield t.mongoMigrateDown());
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
function tn() {
|
|
150
|
+
return i(this, null, function* () {
|
|
151
|
+
yield e("Starting Storybook development server", yield t.storybookDev());
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
function on() {
|
|
155
|
+
return i(this, null, function* () {
|
|
156
|
+
yield e("Building Storybook", yield t.storybookBuild());
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
function R() {
|
|
160
|
+
return i(this, null, function* () {
|
|
161
|
+
try {
|
|
162
|
+
yield e(`Checking for ${u}`, `pnpm list -g ${u}`);
|
|
163
|
+
} catch (n) {
|
|
164
|
+
yield e(`Installing ${u} globally`, `pnpm i -g ${u}`);
|
|
165
|
+
}
|
|
166
|
+
f(s.DOT_AGENT) ? yield e("Updating AI agent", "ag-kit update") : yield e("Initializing AI agent", "ag-kit init");
|
|
157
167
|
});
|
|
158
168
|
}
|
|
159
|
-
|
|
169
|
+
i(null, null, function* () {
|
|
160
170
|
try {
|
|
161
|
-
yield
|
|
171
|
+
yield A(N(d.argv)).scriptName(F).usage("$0 <command> [options]").command("ai:setup", "Setup AI agent environment", R).command("lint", "Check code for linting issues", J).command("lint:fix", "Fix linting issues automatically", V).command("lint:inspect", "View active ESLint configuration", j).command("lint-staged", "Run lint checks on staged files", $).command("commitlint", "Validate commit message format", z).command("ready", "Initialize project and dependencies", W).command("reset", "Reset the project and reinstall dependencies", Y).command("inspect", "Analyze installed project dependencies", q).command("test:unit", "Run unit test suite", Q).command("test:e2e", "Run end-to-end test suite", X).command("mongo:migrate:create <name>", "Create a MongoDB migration", (n) => n.positional("name", {
|
|
162
172
|
describe: "Migration name",
|
|
163
173
|
type: "string"
|
|
164
|
-
}), (n) =>
|
|
174
|
+
}), (n) => i(null, null, function* () {
|
|
165
175
|
if (!n.name) {
|
|
166
|
-
|
|
176
|
+
a.error("Migration name is required.");
|
|
167
177
|
return;
|
|
168
178
|
}
|
|
169
|
-
yield
|
|
170
|
-
})).command("mongo:migrate:up", "Apply all MongoDB migrations",
|
|
179
|
+
yield Z(n.name);
|
|
180
|
+
})).command("mongo:migrate:up", "Apply all MongoDB migrations", nn).command("mongo:migrate:down", "Rollback last MongoDB migration", en).command("storybook:dev", "Start Storybook development server", tn).command("storybook:build", "Build Storybook for production", on).demandCommand(1, "Please specify a valid command.").strict().help().alias("h", "help").alias("v", "version").version(H()).epilog(`💡 Tip: Use "--help" with any command to see options
|
|
171
181
|
`).parse();
|
|
172
182
|
} catch (n) {
|
|
173
|
-
|
|
183
|
+
O(n), d.exit(1);
|
|
174
184
|
}
|
|
175
185
|
});
|
|
@@ -5,7 +5,7 @@ import { storage as y } from "../storage/storage.util.js";
|
|
|
5
5
|
import { getPackage as B } from "../package/package.util.js";
|
|
6
6
|
import { CYBERSKILL_PACKAGE_NAME as M, PNPM_EXEC_CLI as T, TSX_CLI as O, CYBERSKILL_CLI_PATH as R, CYBERSKILL_CLI as b } from "../path/path.constant.js";
|
|
7
7
|
import { E_IssueType as f } from "../log/log.type.js";
|
|
8
|
-
import {
|
|
8
|
+
import { log as h, catchError as E } from "../log/log.util.js";
|
|
9
9
|
import { getEnv as N } from "../../config/env/env.util.js";
|
|
10
10
|
var a = (r, t, e) => new Promise((s, i) => {
|
|
11
11
|
var o = (u) => {
|
package/dist/node/path/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("./path.constant.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("./path.constant.cjs"),E=require("./path.util.cjs");exports.AG_KIT_PACKAGE_NAME=_.AG_KIT_PACKAGE_NAME;exports.BUILD_DIRECTORY=_.BUILD_DIRECTORY;exports.COMMIT_LINT_CLI=_.COMMIT_LINT_CLI;exports.COMMIT_LINT_CONVENTIONAL_CONFIG_PACKAGE_NAME=_.COMMIT_LINT_CONVENTIONAL_CONFIG_PACKAGE_NAME;exports.COMMIT_LINT_PACKAGE_NAME=_.COMMIT_LINT_PACKAGE_NAME;exports.CYBERSKILL_CLI=_.CYBERSKILL_CLI;exports.CYBERSKILL_CLI_PATH=_.CYBERSKILL_CLI_PATH;exports.CYBERSKILL_DIRECTORY=_.CYBERSKILL_DIRECTORY;exports.CYBERSKILL_PACKAGE_NAME=_.CYBERSKILL_PACKAGE_NAME;exports.DOT_AGENT=_.DOT_AGENT;exports.ESLINT_CLI=_.ESLINT_CLI;exports.ESLINT_INSPECT_CLI=_.ESLINT_INSPECT_CLI;exports.ESLINT_INSPECT_PACKAGE_NAME=_.ESLINT_INSPECT_PACKAGE_NAME;exports.ESLINT_PACKAGE_NAME=_.ESLINT_PACKAGE_NAME;exports.GIT_CLI=_.GIT_CLI;exports.GIT_COMMIT_EDITMSG=_.GIT_COMMIT_EDITMSG;exports.GIT_HOOK=_.GIT_HOOK;exports.GIT_IGNORE=_.GIT_IGNORE;exports.LINT_STAGED_CLI=_.LINT_STAGED_CLI;exports.LINT_STAGED_PACKAGE_NAME=_.LINT_STAGED_PACKAGE_NAME;exports.MIGRATE_MONGO_CLI=_.MIGRATE_MONGO_CLI;exports.MIGRATE_MONGO_CONFIG=_.MIGRATE_MONGO_CONFIG;exports.MIGRATE_MONGO_PACKAGE_NAME=_.MIGRATE_MONGO_PACKAGE_NAME;exports.NODE_MODULES=_.NODE_MODULES;exports.NODE_MODULES_INSPECT_CLI=_.NODE_MODULES_INSPECT_CLI;exports.NODE_MODULES_INSPECT_PACKAGE_NAME=_.NODE_MODULES_INSPECT_PACKAGE_NAME;exports.PACKAGE_JSON=_.PACKAGE_JSON;exports.PACKAGE_LOCK_JSON=_.PACKAGE_LOCK_JSON;exports.PATH=_.PATH;exports.PNPM_CLI=_.PNPM_CLI;exports.PNPM_EXEC_CLI=_.PNPM_EXEC_CLI;exports.PNPM_LOCK_YAML=_.PNPM_LOCK_YAML;exports.PUBLIC_DIRECTORY=_.PUBLIC_DIRECTORY;exports.SIMPLE_GIT_HOOKS_PACKAGE_NAME=_.SIMPLE_GIT_HOOKS_PACKAGE_NAME;exports.SIMPLE_GIT_HOOK_CLI=_.SIMPLE_GIT_HOOK_CLI;exports.SIMPLE_GIT_HOOK_JSON=_.SIMPLE_GIT_HOOK_JSON;exports.STORYBOOK_CLI=_.STORYBOOK_CLI;exports.STORYBOOK_PACKAGE_NAME=_.STORYBOOK_PACKAGE_NAME;exports.TSCONFIG_JSON=_.TSCONFIG_JSON;exports.TSC_CLI=_.TSC_CLI;exports.TSC_PACKAGE_NAME=_.TSC_PACKAGE_NAME;exports.TSX_CLI=_.TSX_CLI;exports.VITEST_CLI=_.VITEST_CLI;exports.VITEST_PACKAGE_NAME=_.VITEST_PACKAGE_NAME;exports.WORKING_DIRECTORY=_.WORKING_DIRECTORY;exports.command=_.command;exports.createGitHooksConfig=_.createGitHooksConfig;exports.dirname=E.dirname;exports.join=E.join;exports.path=E.path;exports.resolve=E.resolve;exports.resolveWorkingPath=E.resolveWorkingPath;
|
package/dist/node/path/index.js
CHANGED
|
@@ -1,54 +1,56 @@
|
|
|
1
|
-
import { BUILD_DIRECTORY as
|
|
2
|
-
import { dirname as
|
|
1
|
+
import { AG_KIT_PACKAGE_NAME as I, BUILD_DIRECTORY as C, COMMIT_LINT_CLI as A, COMMIT_LINT_CONVENTIONAL_CONFIG_PACKAGE_NAME as T, COMMIT_LINT_PACKAGE_NAME as N, CYBERSKILL_CLI as O, CYBERSKILL_CLI_PATH as L, CYBERSKILL_DIRECTORY as G, CYBERSKILL_PACKAGE_NAME as M, DOT_AGENT as S, ESLINT_CLI as P, ESLINT_INSPECT_CLI as K, ESLINT_INSPECT_PACKAGE_NAME as R, ESLINT_PACKAGE_NAME as D, GIT_CLI as o, GIT_COMMIT_EDITMSG as Y, GIT_HOOK as e, GIT_IGNORE as r, LINT_STAGED_CLI as B, LINT_STAGED_PACKAGE_NAME as H, MIGRATE_MONGO_CLI as t, MIGRATE_MONGO_CONFIG as a, MIGRATE_MONGO_PACKAGE_NAME as i, NODE_MODULES as m, NODE_MODULES_INSPECT_CLI as n, NODE_MODULES_INSPECT_PACKAGE_NAME as U, PACKAGE_JSON as J, PACKAGE_LOCK_JSON as f, PATH as p, PNPM_CLI as s, PNPM_EXEC_CLI as F, PNPM_LOCK_YAML as V, PUBLIC_DIRECTORY as c, SIMPLE_GIT_HOOKS_PACKAGE_NAME as d, SIMPLE_GIT_HOOK_CLI as g, SIMPLE_GIT_HOOK_JSON as h, STORYBOOK_CLI as k, STORYBOOK_PACKAGE_NAME as l, TSCONFIG_JSON as v, TSC_CLI as x, TSC_PACKAGE_NAME as W, TSX_CLI as X, VITEST_CLI as j, VITEST_PACKAGE_NAME as b, WORKING_DIRECTORY as q, command as u, createGitHooksConfig as w } from "./path.constant.js";
|
|
2
|
+
import { dirname as z, join as Q, path as Z, resolve as $, resolveWorkingPath as __ } from "./path.util.js";
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
C as
|
|
6
|
-
A as
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
L as
|
|
4
|
+
I as AG_KIT_PACKAGE_NAME,
|
|
5
|
+
C as BUILD_DIRECTORY,
|
|
6
|
+
A as COMMIT_LINT_CLI,
|
|
7
|
+
T as COMMIT_LINT_CONVENTIONAL_CONFIG_PACKAGE_NAME,
|
|
8
|
+
N as COMMIT_LINT_PACKAGE_NAME,
|
|
9
|
+
O as CYBERSKILL_CLI,
|
|
10
|
+
L as CYBERSKILL_CLI_PATH,
|
|
11
|
+
G as CYBERSKILL_DIRECTORY,
|
|
11
12
|
M as CYBERSKILL_PACKAGE_NAME,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
w as
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
13
|
+
S as DOT_AGENT,
|
|
14
|
+
P as ESLINT_CLI,
|
|
15
|
+
K as ESLINT_INSPECT_CLI,
|
|
16
|
+
R as ESLINT_INSPECT_PACKAGE_NAME,
|
|
17
|
+
D as ESLINT_PACKAGE_NAME,
|
|
18
|
+
o as GIT_CLI,
|
|
19
|
+
Y as GIT_COMMIT_EDITMSG,
|
|
20
|
+
e as GIT_HOOK,
|
|
21
|
+
r as GIT_IGNORE,
|
|
22
|
+
B as LINT_STAGED_CLI,
|
|
23
|
+
H as LINT_STAGED_PACKAGE_NAME,
|
|
24
|
+
t as MIGRATE_MONGO_CLI,
|
|
25
|
+
a as MIGRATE_MONGO_CONFIG,
|
|
26
|
+
i as MIGRATE_MONGO_PACKAGE_NAME,
|
|
27
|
+
m as NODE_MODULES,
|
|
28
|
+
n as NODE_MODULES_INSPECT_CLI,
|
|
29
|
+
U as NODE_MODULES_INSPECT_PACKAGE_NAME,
|
|
30
|
+
J as PACKAGE_JSON,
|
|
31
|
+
f as PACKAGE_LOCK_JSON,
|
|
32
|
+
p as PATH,
|
|
33
|
+
s as PNPM_CLI,
|
|
34
|
+
F as PNPM_EXEC_CLI,
|
|
35
|
+
V as PNPM_LOCK_YAML,
|
|
36
|
+
c as PUBLIC_DIRECTORY,
|
|
37
|
+
d as SIMPLE_GIT_HOOKS_PACKAGE_NAME,
|
|
38
|
+
g as SIMPLE_GIT_HOOK_CLI,
|
|
39
|
+
h as SIMPLE_GIT_HOOK_JSON,
|
|
40
|
+
k as STORYBOOK_CLI,
|
|
41
|
+
l as STORYBOOK_PACKAGE_NAME,
|
|
42
|
+
v as TSCONFIG_JSON,
|
|
43
|
+
x as TSC_CLI,
|
|
44
|
+
W as TSC_PACKAGE_NAME,
|
|
45
|
+
X as TSX_CLI,
|
|
46
|
+
j as VITEST_CLI,
|
|
47
|
+
b as VITEST_PACKAGE_NAME,
|
|
48
|
+
q as WORKING_DIRECTORY,
|
|
49
|
+
u as command,
|
|
50
|
+
w as createGitHooksConfig,
|
|
51
|
+
z as dirname,
|
|
52
|
+
Q as join,
|
|
53
|
+
Z as path,
|
|
54
|
+
$ as resolve,
|
|
55
|
+
__ as resolveWorkingPath
|
|
54
56
|
};
|