@funish/basis 0.2.7 → 0.2.8-edge.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/dist/_chunks/config-Coiy-SOC.mjs +1 -0
- package/dist/_chunks/fmt-C7X2ZSv6.mjs +1 -0
- package/dist/_chunks/jiti-vEYKRgRF.mjs +1 -0
- package/dist/_chunks/json5-ChGBk47n.mjs +1 -0
- package/dist/_chunks/jsonc-Bxv8GEpJ.mjs +1 -0
- package/dist/_chunks/lint-ESN87Ohj.mjs +1 -0
- package/dist/_chunks/ohash-B0rolVSO.mjs +1 -0
- package/dist/_chunks/prompt-B-_yUJXC.mjs +1 -0
- package/dist/_chunks/run-CYtHqbev.mjs +1 -0
- package/dist/_chunks/toml-DAGiUu8W.mjs +1 -0
- package/dist/_chunks/{types-D97hRU-z.d.mts → types-DVbgCQzS.d.mts} +1 -1
- package/dist/_chunks/vendor/common-C57wNPL5.d.mts +7226 -0
- package/dist/_chunks/vendor/common-DNe_sHJp.mjs +352 -0
- package/dist/_chunks/yaml-Dm3OG7zi.mjs +1 -0
- package/dist/cli/basis.mjs +11 -0
- package/dist/cli/oxfmt.d.mts +1 -0
- package/dist/cli/oxfmt.mjs +2 -0
- package/dist/cli/oxlint.d.mts +1 -0
- package/dist/cli/oxlint.mjs +2 -0
- package/dist/config.d.mts +9 -6872
- package/dist/config.mjs +1 -1
- package/dist/index.d.mts +2 -2
- package/package.json +4 -2
- package/dist/_chunks/common-ImpHew-F-C_Vy_bWl.mjs +0 -563
- package/dist/_chunks/config-DlKQJJuJ.mjs +0 -1
- package/dist/_chunks/dist-DmC4QnLo-DOtdNTJ9.mjs +0 -1
- package/dist/_chunks/jiti-4UP3iYSN.mjs +0 -1
- package/dist/_chunks/jiti-BTGRq7zm-CIyI5D4F.mjs +0 -1
- package/dist/_chunks/json5-jlDEA_LV-COBYYABw.mjs +0 -1
- package/dist/_chunks/json5-yz56pVhc.mjs +0 -1
- package/dist/_chunks/jsonc-BQ0-fIlR.mjs +0 -1
- package/dist/_chunks/jsonc-h2mYQXaC-DrYrX9nH.mjs +0 -1
- package/dist/_chunks/ohash-CBmXOb0i.mjs +0 -1
- package/dist/_chunks/ohash-auviw4oE-C1rS-sj5.mjs +0 -1
- package/dist/_chunks/prompt-B0wRZcxM.mjs +0 -1
- package/dist/_chunks/prompt-B56gTa4S-DU9z28wS-C5xwSzir.mjs +0 -1
- package/dist/_chunks/prompt-DWoeycZC-CrPLiZ-7.mjs +0 -1
- package/dist/_chunks/resolver-j7HY1N36-CYXyUckt-KaY2bzL2.mjs +0 -1
- package/dist/_chunks/toml-Db_vu9L2.mjs +0 -1
- package/dist/_chunks/toml-DpopYhMQ-Cm2FvyAB.mjs +0 -1
- package/dist/_chunks/trace-DE8F1ZUa-BjFwYDv5.mjs +0 -1
- package/dist/_chunks/tsc-DYjBCyQo-W841VDnt.mjs +0 -1
- package/dist/_chunks/vendor/common-BKG-EppI.mjs +0 -352
- package/dist/_chunks/vendor/common-BpqHhQqH.d.mts +0 -359
- package/dist/_chunks/yaml-Bk1o9q2C.mjs +0 -1
- package/dist/_chunks/yaml-rm6ZZAQq-BzQnHREY.mjs +0 -1
- package/dist/cli.mjs +0 -21
- /package/dist/{cli.d.mts → cli/basis.d.mts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{O as e,b as t,v as n,y as r}from"./vendor/common-DNe_sHJp.mjs";const i=(await n(import.meta.url,{alias:{"@funish/build":`E:/basis/packages/build`,"./config":`E:/basis/packages/build/src/config`},transformOptions:{babel:{plugins:[]}}}).import(`E:/basis/packages/build/src/config.ts`)).defineBuildConfig;function a(e){return e}async function o(n={}){if(n.cwd)return await r({name:`basis`,cwd:n.cwd,...n,defaults:{...n.defaults}});let i=process.cwd(),a=await t(i);for(;;){let t=await r({name:`basis`,cwd:i,...n,defaults:{...n.defaults}});if(t._configFile||i===a)return t;i=e(i)}}export{o as n,i as r,a as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as e,h as t}from"./vendor/common-DNe_sHJp.mjs";import{n}from"./config-Coiy-SOC.mjs";import{t as r}from"./run-CYtHqbev.mjs";const i=e({meta:{name:`fmt`,description:`Format code`},async run({rawArgs:e}){let{config:i}=await n(),a=i.fmt?.config||[];r({pkg:`oxfmt`,bin:`cli.js`,args:e.length>0?e:a}).status!==0&&process.exit(1),t.success(`Formatting completed`)}});export{i as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{v as e}from"./vendor/common-DNe_sHJp.mjs";export{e as createJiti,e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{D as e}from"./vendor/common-DNe_sHJp.mjs";export{e as parseJSON5};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{E as e}from"./vendor/common-DNe_sHJp.mjs";export{e as parseJSONC};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as e,h as t}from"./vendor/common-DNe_sHJp.mjs";import{n}from"./config-Coiy-SOC.mjs";import{t as r}from"./run-CYtHqbev.mjs";const i=e({meta:{name:`lint`,description:`Lint code`},async run({rawArgs:e}){let{config:i}=await n(),a=i.lint?.config||[];r({pkg:`oxlint`,bin:`cli.js`,args:e.length>0?e:a}).status!==0&&process.exit(1),t.success(`Linting completed`)}});export{i as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as e,r as t}from"./vendor/common-DNe_sHJp.mjs";export{t as n,e as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./vendor/common-DNe_sHJp.mjs";export{e as prompt};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{O as e,h as t,k as n}from"./vendor/common-DNe_sHJp.mjs";import{createRequire as r}from"node:module";import{spawnSync as i}from"node:child_process";function a(a){let{pkg:o,bin:s,args:c}=a,l=n(e(r(import.meta.url).resolve(o)),s),u=i(process.execPath,[l,...c],{stdio:`inherit`,shell:!1});return u.error&&t.error(u.error),u.status!==0&&t.error(`${o} failed with exit code ${u.status}`),u}export{a as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{w as e}from"./vendor/common-DNe_sHJp.mjs";export{e as parseTOML};
|