@leo-h/create-nodejs-app 1.0.26 → 1.0.28
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/package.json.js +1 -1
- package/dist/src/compose-app/copy-template.compose.js +1 -1
- package/dist/src/core/validation.js +1 -1
- package/package.json +2 -2
- package/templates/clean/package.json +1 -1
- package/templates/clean/pnpm-lock.yaml +1091 -953
- package/templates/fastify/package.json +1 -1
- package/templates/fastify/pnpm-lock.yaml +1096 -858
- package/templates/nest/package.json +1 -1
- package/templates/nest/pnpm-lock.yaml +67 -32
package/dist/package.json.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0});const name="@leo-h/create-nodejs-app",
|
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
|
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");
|
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.
|
3
|
+
"version": "1.0.28",
|
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,7 +64,7 @@
|
|
64
64
|
"tsx": "4.19.2",
|
65
65
|
"typescript": "5.7.2",
|
66
66
|
"typescript-eslint": "8.18.1",
|
67
|
-
"unbuild": "
|
67
|
+
"unbuild": "3.5.0",
|
68
68
|
"vite-tsconfig-paths": "4.3.2",
|
69
69
|
"vitest": "1.6.1"
|
70
70
|
}
|