@travetto/scaffold 8.0.0-alpha.0 → 8.0.0-alpha.10
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/trv-scaffold.js +1 -0
- package/package.json +5 -5
- package/support/bin/context.ts +1 -1
package/bin/trv-scaffold.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/scaffold",
|
|
3
|
-
"version": "8.0.0-alpha.
|
|
3
|
+
"version": "8.0.0-alpha.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "App Scaffold for the Travetto framework",
|
|
6
6
|
"keywords": [
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
"trv-scaffold": "bin/trv-scaffold.js"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@travetto/cli": "^8.0.0-alpha.
|
|
32
|
-
"@travetto/compiler": "^8.0.0-alpha.
|
|
33
|
-
"@travetto/runtime": "^8.0.0-alpha.
|
|
31
|
+
"@travetto/cli": "^8.0.0-alpha.9",
|
|
32
|
+
"@travetto/compiler": "^8.0.0-alpha.6",
|
|
33
|
+
"@travetto/runtime": "^8.0.0-alpha.5",
|
|
34
34
|
"enquirer": "^2.4.1",
|
|
35
35
|
"mustache": "^4.2.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@travetto/model": "^8.0.0-alpha.
|
|
38
|
+
"@travetto/model": "^8.0.0-alpha.5",
|
|
39
39
|
"@types/mustache": "^4.2.6"
|
|
40
40
|
},
|
|
41
41
|
"travetto": {
|
package/support/bin/context.ts
CHANGED
|
@@ -97,7 +97,7 @@ export class Context {
|
|
|
97
97
|
async initialize(): Promise<void> {
|
|
98
98
|
let base = this.destination();
|
|
99
99
|
while (base) {
|
|
100
|
-
if (await fs.stat(`${base}/package.json
|
|
100
|
+
if (await fs.stat(`${base}/package.json`, { throwIfNoEntry: false })) {
|
|
101
101
|
throw new Error(`Cannot create project inside of an existing node project ${base}`);
|
|
102
102
|
}
|
|
103
103
|
const next = path.dirname(base);
|