lapeh 2.2.4 → 2.2.5
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/bin/index.js +4 -2
- package/package.json +4 -7
package/bin/index.js
CHANGED
|
@@ -9,7 +9,7 @@ const args = process.argv.slice(2);
|
|
|
9
9
|
const command = args[0];
|
|
10
10
|
|
|
11
11
|
// Register tsconfig paths for development
|
|
12
|
-
require('tsconfig-paths/register');
|
|
12
|
+
// require('tsconfig-paths/register');
|
|
13
13
|
|
|
14
14
|
switch (command) {
|
|
15
15
|
case 'dev':
|
|
@@ -34,9 +34,11 @@ switch (command) {
|
|
|
34
34
|
function runDev() {
|
|
35
35
|
console.log('🚀 Starting Lapeh in development mode...');
|
|
36
36
|
try {
|
|
37
|
+
const tsNodePath = require.resolve('ts-node/register');
|
|
38
|
+
const tsConfigPathsPath = require.resolve('tsconfig-paths/register');
|
|
37
39
|
// We execute a script that requires ts-node to run lib/bootstrap.ts
|
|
38
40
|
// In a real package, this would be `node dist/lib/bootstrap.js`
|
|
39
|
-
execSync(
|
|
41
|
+
execSync(`npx nodemon --exec "node -r ${tsNodePath} -r ${tsConfigPathsPath}" -e "require('./lib/bootstrap').bootstrap()"`, { stdio: 'inherit' });
|
|
40
42
|
} catch (error) {
|
|
41
43
|
// Ignore error
|
|
42
44
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lapeh",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.5",
|
|
4
4
|
"description": "Framework API Express yang siap pakai (Standardized)",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -81,6 +81,9 @@
|
|
|
81
81
|
"pg": "8.16.3",
|
|
82
82
|
"slugify": "1.6.6",
|
|
83
83
|
"socket.io": "4.8.3",
|
|
84
|
+
"ts-node": "^10.9.2",
|
|
85
|
+
"tsconfig-paths": "^4.2.0",
|
|
86
|
+
"typescript": "^5.9.3",
|
|
84
87
|
"uuid": "13.0.0",
|
|
85
88
|
"winston": "^3.19.0",
|
|
86
89
|
"winston-daily-rotate-file": "^5.0.0",
|
|
@@ -99,12 +102,6 @@
|
|
|
99
102
|
"@types/uuid": "10.0.0",
|
|
100
103
|
"eslint": "^9.39.2",
|
|
101
104
|
"globals": "^16.5.0",
|
|
102
|
-
"nodemon": "3.1.11",
|
|
103
|
-
"prisma": "7.2.0",
|
|
104
|
-
"ts-node": "10.9.2",
|
|
105
|
-
"tsc-alias": "^1.8.16",
|
|
106
|
-
"tsconfig-paths": "^4.2.0",
|
|
107
|
-
"typescript": "5.9.3",
|
|
108
105
|
"typescript-eslint": "^8.50.1"
|
|
109
106
|
}
|
|
110
107
|
}
|