create-a-pkg 1.0.1 → 1.0.2
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/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function n(){return"\
|
|
1
|
+
function n(){return"\nnode_modules\ndist\n*.tgz\ncoverage\n.DS_Store\n.eg"}export{n as gitIgnoreText};
|
package/src/data-store/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{initializeFile as e,getDirectoryBy as l,readFileToJsonSync as n,pathJoin as i}from"a-node-tools";import{originDependencies as p}from"./origin-dependencies.mjs";import{dog as s}from"../dog.mjs";import{isUndefined as t}from"a-type-of-js";const[r]=e();let o=l("package.json","file",r);s("获取到的地址为",o),t(o)&&(o=process.cwd());const c=n(i(o,"package.json"));s("获取到的数据为:",c);const a={cwd:"",range:"",pkgFile(...e){return i(this.cwd,...e)},rangeFile(...e){return i(this.range,...e)},get name(){return this.package.name},set name(e){this.childPkg?this.carryRange?(this.range=e.replace(/^@(.*)\/.*$/g,"$1"),this.cwd=e.replace(/@/,"").replace(/\//,"/packages/")):this.cwd=e.replace(/^.*\/(.*)$/g,"$1"):this.cwd=e,this.package.name=e},bin:0,local:{author:{name:"",email:"",url:""},dependencies:p},package:{name:"",version:"0.0.0",description:"",author:{name:"",email:"",url:""},dependencies:c?.dependencies||{},devDependencies:c?.devDependencies||{}},install:!1,carryRange:!1,childPkg:!1,buildDevDependencies(){const{dependencies:e}=this.local,{devDependencies:l,dependencies:n}=this.package;s("获取的本地的包信息",e),s("获取本地的");const i={"@qqi/check-version":l["@qqi/check-version"]||"^1.0.2","@qqi/rollup-external":l["@qqi/rollup-external"]||"^1.0.6","@rollup/plugin-commonjs":l["@rollup/plugin-commonjs"]||"^28.0.3","@rollup/plugin-json":l["@rollup/plugin-json"]||"^6.1.0","@rollup/plugin-node-resolve":l["@rollup/plugin-node-resolve"]||"^16.0.1","@rollup/plugin-terser":l["@rollup/plugin-terser"]||"^0.4.4","a-command":n["a-command"]||"^2.3.8","a-node-tools":n["a-node-tools"]||"^4.2.6",gvv:l.gvv||"^0.0.7",jja:l.jja||"^2.3.8",pjj:l.pjj||"^1.0.1",vjj:l.vjj||"^1.0.5",rollup:l.rollup||"^4.43.0","rollup-plugin-cleanup":l["rollup-plugin-cleanup"]||"^3.2.1","rollup-plugin-copy":l["rollup-plugin-copy"]||"^3.5.0"};return e.includes("husky")&&e.includes("prettier")&&(i.husky=l.husky||"^9.1.7",i["lint-staged"]=l["lint-staged"]||"^16.1.0"),e.includes("eslint")&&(i.eslint=l.eslint||"^9.28.0",i["eslint-plugin-jsdoc"]=l["eslint-plugin-jsdoc"]||"^51.0.1",i.globals=l.globals||"^16.2.0",i["@eslint/js"]=l["@eslint/js"]||"^9.28.0",e.includes("typescript")&&(i["typescript-eslint"]=l["typescript-eslint"]||"^8.34.0"),e.includes("prettier")&&(i["eslint-config-prettier"]=l["eslint-config-prettier"]||"^10.1.5")),e.includes("prettier")&&(i.prettier=l.prettier||"^3.5.3"),e.includes("typescript")&&(i["@types/node"]=l["@types/node"]||"^24.0.1",i["@rollup/plugin-typescript"]=l["@rollup/plugin-typescript"]||"^12.1.2",i.typescript=l.typescript||"^5.8.3"),s("构建的依赖图",i),i}};export{a as dataStore};
|
|
1
|
+
import{initializeFile as e,getDirectoryBy as l,readFileToJsonSync as n,pathJoin as i}from"a-node-tools";import{originDependencies as p}from"./origin-dependencies.mjs";import{dog as s}from"../dog.mjs";import{isUndefined as t}from"a-type-of-js";const[r]=e();let o=l("package.json","file",r);s("获取到的地址为",o),t(o)&&(o=process.cwd());const c=n(i(o,"package.json"));s("获取到的数据为:",c);const a={cwd:"",range:"",pkgFile(...e){return i(this.cwd,...e)},rangeFile(...e){return i(this.range,...e)},get name(){return this.package.name},set name(e){this.childPkg?this.carryRange?(this.range=e.replace(/^@(.*)\/.*$/g,"$1"),this.cwd=e.replace(/@/,"").replace(/\//,"/packages/")):this.cwd=e.replace(/^.*\/(.*)$/g,"$1"):this.cwd=e,this.package.name=e},bin:0,local:{author:{name:"",email:"",url:""},dependencies:p},package:{name:"",version:"0.0.0",description:"",author:{name:"",email:"",url:""},dependencies:c?.dependencies||{},devDependencies:c?.devDependencies||{}},install:!1,carryRange:!1,childPkg:!1,buildDevDependencies(){const{dependencies:e}=this.local,{devDependencies:l,dependencies:n}=this.package;s("获取的本地的包信息",e),s("获取本地的");const i={"@qqi/check-version":l["@qqi/check-version"]||"^1.0.2","@qqi/rollup-external":l["@qqi/rollup-external"]||"^1.0.6","@rollup/plugin-commonjs":l["@rollup/plugin-commonjs"]||"^28.0.3","@rollup/plugin-json":l["@rollup/plugin-json"]||"^6.1.0","@rollup/plugin-node-resolve":l["@rollup/plugin-node-resolve"]||"^16.0.1","@rollup/plugin-terser":l["@rollup/plugin-terser"]||"^0.4.4","a-command":n["a-command"]||"^2.3.8","a-node-tools":n["a-node-tools"]||"^4.2.6",gvv:l.gvv||"^0.0.7",tslib:l.tslib||"^2.8.1",jja:l.jja||"^2.3.8",pjj:l.pjj||"^1.0.1",vjj:l.vjj||"^1.0.5",rollup:l.rollup||"^4.43.0","rollup-plugin-cleanup":l["rollup-plugin-cleanup"]||"^3.2.1","rollup-plugin-copy":l["rollup-plugin-copy"]||"^3.5.0"};return e.includes("husky")&&e.includes("prettier")&&(i.husky=l.husky||"^9.1.7",i["lint-staged"]=l["lint-staged"]||"^16.1.0"),e.includes("eslint")&&(i.eslint=l.eslint||"^9.28.0",i["eslint-plugin-jsdoc"]=l["eslint-plugin-jsdoc"]||"^51.0.1",i.globals=l.globals||"^16.2.0",i["@eslint/js"]=l["@eslint/js"]||"^9.28.0",e.includes("typescript")&&(i["typescript-eslint"]=l["typescript-eslint"]||"^8.34.0"),e.includes("prettier")&&(i["eslint-config-prettier"]=l["eslint-config-prettier"]||"^10.1.5")),e.includes("prettier")&&(i.prettier=l.prettier||"^3.5.3"),e.includes("typescript")&&(i["@types/node"]=l["@types/node"]||"^24.0.1",i["@rollup/plugin-typescript"]=l["@rollup/plugin-typescript"]||"^12.1.2",i.typescript=l.typescript||"^5.8.3"),s("构建的依赖图",i),i}};export{a as dataStore};
|