@batijs/core 0.0.260 → 0.0.261

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/index.d.ts CHANGED
@@ -73,7 +73,7 @@ declare function loadAsMagicast<Exports extends object>({ readfile, source, targ
73
73
  declare function loadRelativeFileAsMagicast<Exports extends object>(relativePath: string, meta: Pick<ImportMeta, "url">): Promise<ProxifiedModule<Exports>>;
74
74
  declare function loadYaml({ readfile, source, target }: TransformerProps, options?: ParseOptions & DocumentOptions & SchemaOptions): Promise<Document.Parsed<yaml.Alias.Parsed, true> | Document.Parsed<yaml.Scalar.Parsed, true> | Document.Parsed<yaml.YAMLMap.Parsed<yaml.ParsedNode, yaml.ParsedNode | null>, true> | Document.Parsed<yaml.YAMLSeq.Parsed<yaml.ParsedNode>, true>>;
75
75
 
76
- declare const keys: readonly ["dev", "build", "preview", "lint", "format", "deploy"];
76
+ declare const keys: readonly ["dev", "build", "preview", "lint", "format", "deploy", "test"];
77
77
  type Scripts = (typeof keys)[number];
78
78
  type ValidScripts = Scripts | `${Scripts}:${string}`;
79
79
  interface PackageJsonDeps {
package/dist/index.js CHANGED
@@ -1086,7 +1086,7 @@ ${t}
1086
1086
 
1087
1087
  `));let a=s?s.replace(/^(.+)/gm,"# $1")+`
1088
1088
  `:"",l=`${e}=${qls(n)}
1089
- `;return t+a+l}function qls(t){let e="";switch(typeof t){case"string":t&&(e=JSON.stringify(t));break;case"boolean":case"number":e=String(t);break;case"undefined":e="";break;case"object":t!==null&&(e=JSON.stringify(t));break}return e}var ous=$f(DYr(),1);import{randomBytes as dLs}from"node:crypto";var qTt={name:"@batijs/core",version:"0.0.260",description:"",type:"module",types:"./dist/index.d.ts",scripts:{"check-types":"tsc --noEmit",vue:"tsx src/parse/linters/vue.ts",test:"vitest run","test:ci":"vitest run",build:"tsup"},keywords:[],author:"Jo\xEBl Charles <joel.charles91@gmail.com>",repository:"https://github.com/vikejs/bati",license:"MIT",devDependencies:{"@batijs/features":"workspace:*","@types/eslint":"^9.6.1","@types/estree":"^1.0.5","@types/node":"^18.19.14","@types/which":"^3.0.4","@typescript-eslint/parser":"^8.3.0","@typescript-eslint/utils":"^8.3.0",colorette:"^2.0.20",esbuild:"^0.23.1",eslint:"^9.9.1","eslint-plugin-solid":"^0.14.3","eslint-rule-composer":"^0.3.0",espree:"^10.1.0",magicast:"^0.3.5",prettier:"^3.3.3",squirrelly:"^9.1.0",tsup:"^8.2.4",tsx:"^4.18.0",typescript:"^5.5.4","unplugin-purge-polyfills":"^0.0.5",vitest:"^2.0.5","vue-eslint-parser":"^9.4.3",which:"^4.0.0",yaml:"^2.5.0"},exports:{".":"./dist/index.js","./types":{types:"./global.d.ts"}},typesVersions:{"*":{types:["./global.d.ts"]}},files:["dist/"]};function lus(){if(process.env.npm_config_user_agent)return uus(process.env.npm_config_user_agent)}function uus(t){let e=t.split(" ")[0],n=e.lastIndexOf("/"),s=e.substring(0,n);return{name:s==="npminstall"?"cnpm":s,version:e.substring(n+1)}}function yLs(){switch(lus()?.name){case"pnpm":return"pnpm create bati";case"yarn":return"yarn dlx @batijs/cli";case"bun":return"bun create bati";default:return"npm create bati --"}}function bLs(){let t=qTt.version.split("."),e=t[0],n=t[1],s=t.slice(2).join(".");return{version:qTt.version,semver:[e,n,s]}}var export_which=ous.default;export{svt as Readme,rLs as addDependency,wls as addVitePlugin,sLs as appendToEnv,Crt as formatCode,Gq as generateCode,yLs as getArgs,bLs as getVersion,t8s as loadAsJson,r8s as loadAsMagicast,ivt as loadFile,e8s as loadReadme,n8s as loadRelativeFileAsMagicast,i8s as loadYaml,kFs as markdown,lus as packageManager,RLe as parseModule,uJr as parseReadme,dLs as randomBytes,nLs as setScripts,Dts as transformAndFormat,export_which as which,iYr as withIcon};
1089
+ `;return t+a+l}function qls(t){let e="";switch(typeof t){case"string":t&&(e=JSON.stringify(t));break;case"boolean":case"number":e=String(t);break;case"undefined":e="";break;case"object":t!==null&&(e=JSON.stringify(t));break}return e}var ous=$f(DYr(),1);import{randomBytes as dLs}from"node:crypto";var qTt={name:"@batijs/core",version:"0.0.261",description:"",type:"module",types:"./dist/index.d.ts",scripts:{"check-types":"tsc --noEmit",vue:"tsx src/parse/linters/vue.ts",test:"vitest run","test:ci":"vitest run",build:"tsup"},keywords:[],author:"Jo\xEBl Charles <joel.charles91@gmail.com>",repository:"https://github.com/vikejs/bati",license:"MIT",devDependencies:{"@batijs/features":"workspace:*","@types/eslint":"^9.6.1","@types/estree":"^1.0.5","@types/node":"^18.19.14","@types/which":"^3.0.4","@typescript-eslint/parser":"^8.3.0","@typescript-eslint/utils":"^8.3.0",colorette:"^2.0.20",esbuild:"^0.23.1",eslint:"^9.9.1","eslint-plugin-solid":"^0.14.3","eslint-rule-composer":"^0.3.0",espree:"^10.1.0",magicast:"^0.3.5",prettier:"^3.3.3",squirrelly:"^9.1.0",tsup:"^8.2.4",tsx:"^4.18.0",typescript:"^5.5.4","unplugin-purge-polyfills":"^0.0.5",vitest:"^2.0.5","vue-eslint-parser":"^9.4.3",which:"^4.0.0",yaml:"^2.5.0"},exports:{".":"./dist/index.js","./types":{types:"./global.d.ts"}},typesVersions:{"*":{types:["./global.d.ts"]}},files:["dist/"]};function lus(){if(process.env.npm_config_user_agent)return uus(process.env.npm_config_user_agent)}function uus(t){let e=t.split(" ")[0],n=e.lastIndexOf("/"),s=e.substring(0,n);return{name:s==="npminstall"?"cnpm":s,version:e.substring(n+1)}}function yLs(){switch(lus()?.name){case"pnpm":return"pnpm create bati";case"yarn":return"yarn dlx @batijs/cli";case"bun":return"bun create bati";default:return"npm create bati --"}}function bLs(){let t=qTt.version.split("."),e=t[0],n=t[1],s=t.slice(2).join(".");return{version:qTt.version,semver:[e,n,s]}}var export_which=ous.default;export{svt as Readme,rLs as addDependency,wls as addVitePlugin,sLs as appendToEnv,Crt as formatCode,Gq as generateCode,yLs as getArgs,bLs as getVersion,t8s as loadAsJson,r8s as loadAsMagicast,ivt as loadFile,e8s as loadReadme,n8s as loadRelativeFileAsMagicast,i8s as loadYaml,kFs as markdown,lus as packageManager,RLe as parseModule,uJr as parseReadme,dLs as randomBytes,nLs as setScripts,Dts as transformAndFormat,export_which as which,iYr as withIcon};
1090
1090
  /*! Bundled license information:
1091
1091
 
1092
1092
  uri-js/dist/es5/uri.all.js:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@batijs/core",
3
- "version": "0.0.260",
3
+ "version": "0.0.261",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
@@ -32,7 +32,7 @@
32
32
  "vue-eslint-parser": "^9.4.3",
33
33
  "which": "^4.0.0",
34
34
  "yaml": "^2.5.0",
35
- "@batijs/features": "0.0.260"
35
+ "@batijs/features": "0.0.261"
36
36
  },
37
37
  "exports": {
38
38
  ".": "./dist/index.js",