@leo-h/create-nodejs-app 1.0.25 → 1.0.27

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.
@@ -1 +1 @@
1
- Object.defineProperty(exports,"__esModule",{value:!0});const name="@leo-h/create-nodejs-app",version="1.0.25",packageManager="pnpm@9.15.0",author="Leonardo Henrique <leonardo0507.business@gmail.com>",description="Create a modern Node.js app with TypeScript using one command.",license="MIT",keywords=["node","node.js","typescript"],bin={"create-nodejs-app":"./dist/index.js"},files=["./dist","./templates"],repository={type:"git",url:"https://github.com/Leo-Henrique/create-nodejs-app"},scripts={start:"node ./dist/index.js","start:dev":"tsx --env-file=.env.development ./src/index.ts","start:dev:watch":"tsx --env-file=.env.development watch ./src/index.ts",typecheck:"tsc --noEmit",lint:"eslint . --max-warnings 0 --cache","lint:fix":"pnpm lint --fix",format:"prettier . --write --cache","test:unit":"vitest run","test:unit:watch":"vitest","test:e2e":"vitest run --config ./vitest.config.e2e.mts","test:e2e:watch":"vitest --config ./vitest.config.e2e.mts","test:coverage":"vitest run --coverage.enabled=true",template:"tsx --env-file=.env.development ./scripts/template-cli.ts",prebuild:"rimraf ./dist",build:"unbuild",prepublishOnly:"pnpm build"},dependencies={commander:"12.1.0",picocolors:"1.1.1",prompts:"2.4.2","validate-npm-package-name":"5.0.1",zod:"3.24.1"},devDependencies={"@eslint/js":"9.17.0","@faker-js/faker":"9.3.0","@types/node":"22.10.2","@types/prompts":"2.4.9","@types/validate-npm-package-name":"4.0.2","@vitest/eslint-plugin":"1.1.18","conventional-changelog-conventionalcommits":"8.0.0",eslint:"9.17.0","eslint-config-prettier":"9.1.0",globals:"15.14.0",husky:"9.1.7","lint-staged":"15.2.11",prettier:"3.4.2",rimraf:"6.0.1",tsx:"4.19.2",typescript:"5.7.2","typescript-eslint":"8.18.1",unbuild:"2.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.6.0"},w={name,version,packageManager,author,description,license,keywords,bin,files,repository,scripts,dependencies,devDependencies};exports.author=author;exports.bin=bin;exports.default=w;exports.dependencies=dependencies;exports.description=description;exports.devDependencies=devDependencies;exports.files=files;exports.keywords=keywords;exports.license=license;exports.name=name;exports.packageManager=packageManager;exports.repository=repository;exports.scripts=scripts;exports.version=version;
1
+ Object.defineProperty(exports,"__esModule",{value:!0});const name="@leo-h/create-nodejs-app",description="Create a modern Node.js app with TypeScript using one command.",w={name,description};exports.default=w;exports.description=description;exports.name=name;
@@ -1 +1 @@
1
- const index=require("../config/index.js"),promises=require("fs/promises"),path=require("path");async function copyTemplateCompose(o,s){const n=(e,r)=>{for(const t of r)if(path.basename(e)===t)return!0;return!1};await promises.cp(path.resolve(index.TEMPLATES_PATH,s),o,{recursive:!0,filter:e=>!n(e,["node_modules","pnpm-lock.yaml",".env","dist",".eslintcache"])})}exports.copyTemplateCompose=copyTemplateCompose;
1
+ const index=require("../config/index.js"),promises=require("fs/promises"),path=require("path");async function copyTemplateCompose(o,s){const r=(e,t)=>{for(const n of t)if(path.basename(e)===n)return!0;return!1};await promises.cp(path.resolve(index.TEMPLATES_PATH,s),o,{recursive:!0,filter:e=>!r(e,["node_modules","pnpm-lock.yaml",".env","dist",".eslintcache"])})}exports.copyTemplateCompose=copyTemplateCompose;
@@ -1 +1 @@
1
- const left=require("../utils/left.js");var e=Object.defineProperty,r=(a,t,i)=>t in a?e(a,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):a[t]=i,s=(a,t,i)=>(r(a,typeof t!="symbol"?t+"":t,i),i);class Validation{constructor(){s(this,"params")}createValidation(t){return t&&(this.params=t),this}async fromCli(t){t&&(this.params=t);const i=await this.validate();if(!i.isValid)return left.left(i.issue)}async fromPrompt(t){t&&(this.params=t);const i=await this.validate();return i.isValid?!0:i.issue}}exports.Validation=Validation;
1
+ const left=require("../utils/left.js");class Validation{params;createValidation(t){return t&&(this.params=t),this}async fromCli(t){t&&(this.params=t);const i=await this.validate();if(!i.isValid)return left.left(i.issue)}async fromPrompt(t){t&&(this.params=t);const i=await this.validate();return i.isValid?!0:i.issue}}exports.Validation=Validation;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leo-h/create-nodejs-app",
3
- "version": "1.0.25",
3
+ "version": "1.0.27",
4
4
  "packageManager": "pnpm@9.15.0",
5
5
  "author": "Leonardo Henrique <leonardo0507.business@gmail.com>",
6
6
  "description": "Create a modern Node.js app with TypeScript using one command.",
@@ -64,8 +64,8 @@
64
64
  "tsx": "4.19.2",
65
65
  "typescript": "5.7.2",
66
66
  "typescript-eslint": "8.18.1",
67
- "unbuild": "2.0.0",
67
+ "unbuild": "3.5.0",
68
68
  "vite-tsconfig-paths": "4.3.2",
69
- "vitest": "1.6.0"
69
+ "vitest": "1.6.1"
70
70
  }
71
71
  }
@@ -35,8 +35,8 @@
35
35
  "tsx": "4.19.2",
36
36
  "typescript": "5.7.2",
37
37
  "typescript-eslint": "8.18.1",
38
- "unbuild": "2.0.0",
38
+ "unbuild": "3.5.0",
39
39
  "vite-tsconfig-paths": "4.3.2",
40
- "vitest": "1.6.0"
40
+ "vitest": "1.6.1"
41
41
  }
42
42
  }