create-loopengine 0.1.61 → 0.1.62
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/cli.js +3 -1
- package/package.json +1 -1
- package/template/adapters/http.ts +3 -1
- package/template/package.json +5 -5
package/dist/cli.js
CHANGED
|
@@ -199,7 +199,9 @@ function resolveLatestVersionFromNpm(pkg) {
|
|
|
199
199
|
return execFileSync('npm', ['view', pkg, 'version'], { stdio: 'pipe' }).toString().trim();
|
|
200
200
|
}
|
|
201
201
|
function runRealNpmInstall(projectDir) {
|
|
202
|
-
|
|
202
|
+
// --include=dev: with NODE_ENV=production npm would drop devDependencies,
|
|
203
|
+
// and an older project still lists tsx, which runs it, as one.
|
|
204
|
+
execFileSync('npm', ['install', '--include=dev'], { cwd: projectDir, stdio: 'pipe' });
|
|
203
205
|
}
|
|
204
206
|
// Only loopengine/actauth/skillgarden — the three packages a scaffolded
|
|
205
207
|
// project's own adapters/http.ts can import directly (see this repo's own
|
package/package.json
CHANGED
|
@@ -1568,7 +1568,9 @@ async function handleAbilityInstallDepsPost(req: IncomingMessage, res: ServerRes
|
|
|
1568
1568
|
return
|
|
1569
1569
|
}
|
|
1570
1570
|
try {
|
|
1571
|
-
|
|
1571
|
+
// --include=dev: under NODE_ENV=production npm would otherwise drop
|
|
1572
|
+
// devDependencies, including tsx, which runs this project.
|
|
1573
|
+
await execFileAsync('npm', ['install', '--include=dev', ...deps], { cwd: process.cwd(), timeout: NPM_INSTALL_DEPS_TIMEOUT_MS })
|
|
1572
1574
|
res.writeHead(200, { 'content-type': 'application/json' }).end(JSON.stringify({ installed: deps }))
|
|
1573
1575
|
} catch (err) {
|
|
1574
1576
|
const stderr = err && typeof err === 'object' && 'stderr' in err ? String((err as { stderr: unknown }).stderr) : undefined
|
package/template/package.json
CHANGED
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
"cli": "tsx adapters/cli.ts"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"loopengine": "^0.1.
|
|
13
|
-
"actauth": "^0.0.12"
|
|
14
|
-
},
|
|
15
|
-
"devDependencies": {
|
|
16
|
-
"@types/node": "^22.10.0",
|
|
12
|
+
"loopengine": "^0.1.77",
|
|
13
|
+
"actauth": "^0.0.12",
|
|
17
14
|
"tsx": "^4.19.0",
|
|
18
15
|
"typescript": "^5.7.0"
|
|
16
|
+
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@types/node": "^22.10.0"
|
|
19
19
|
}
|
|
20
20
|
}
|