@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.
@@ -2,6 +2,7 @@
2
2
  // @ts-check
3
3
  import { resolve } from 'node:path';
4
4
  import { writeFileSync, readFileSync } from 'node:fs';
5
+ import '@travetto/runtime/support/patch.js';
5
6
  import '@travetto/compiler/bin/hook.js';
6
7
 
7
8
  const current = process.cwd();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/scaffold",
3
- "version": "8.0.0-alpha.0",
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.0",
32
- "@travetto/compiler": "^8.0.0-alpha.0",
33
- "@travetto/runtime": "^8.0.0-alpha.0",
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.0",
38
+ "@travetto/model": "^8.0.0-alpha.5",
39
39
  "@types/mustache": "^4.2.6"
40
40
  },
41
41
  "travetto": {
@@ -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`).catch(() => { })) {
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);