fastnode-cli 0.1.0 → 0.1.1

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +11 -6
package/dist/index.js CHANGED
@@ -15,7 +15,7 @@ if (command === "create" && arg) {
15
15
  // 1️⃣ main.ts
16
16
  const mainFile = path_1.default.join(moduleDir, "main.ts");
17
17
  fs_1.default.writeFileSync(mainFile, `import "reflect-metadata";
18
- import { Controller, Get, Module, createApp } from "@fastnode/core";
18
+ import { Controller, Get, Module, createApp } from "fastnode-core";
19
19
 
20
20
  @Controller("/${arg}")
21
21
  class ${capitalize(arg)}Controller {
@@ -58,7 +58,7 @@ createApp([${capitalize(arg)}Module]).listen(3000);
58
58
  "start": "node dist/${arg}/main.js"
59
59
  },
60
60
  "dependencies": {
61
- "@fastnode/core": "latest",
61
+ "fastnode-core": "latest",
62
62
  "reflect-metadata": "^0.1.13"
63
63
  },
64
64
  "devDependencies": {
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "fastnode-cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "A CLI tool for generating and managing FastNode projects using NestJS, inspired by FastAPI.",
5
5
  "bin": {
6
- "fastnode": "./bin/index.js"
6
+ "fastnode": "dist/index.js"
7
7
  },
8
- "main": "bin/index.js",
9
- "type": "module",
8
+ "main": "dist/index.js",
10
9
  "scripts": {
11
- "start": "node bin/index.js"
10
+ "start": "node bin/index.js",
11
+ "build": "tsc"
12
12
  },
13
13
  "keywords": [
14
14
  "cli",
@@ -22,8 +22,13 @@
22
22
  "author": "Valentine Emmanuel Ikechukwu",
23
23
  "license": "MIT",
24
24
  "dependencies": {
25
+ "chalk": "^5.3.0",
25
26
  "commander": "^11.0.0",
26
- "chalk": "^5.3.0"
27
+ "fastnode-core": "latest",
28
+ "reflect-metadata": "^0.1.13"
29
+ },
30
+ "devDependencies": {
31
+ "typescript": "^5.0.0"
27
32
  },
28
33
  "engines": {
29
34
  "node": ">=18.0.0"