create-aerobuilt 0.2.3 → 0.2.4

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/index.js +5 -2
  2. package/package.json +2 -10
package/index.js CHANGED
@@ -48,8 +48,11 @@ function copyTemplate(src, dest) {
48
48
 
49
49
  function isInMonorepo() {
50
50
  try {
51
- const rootPath = join(startPkgDir, '..', '..')
52
- return existsSync(join(rootPath, 'pnpm-workspace.yaml'))
51
+ const aeroRoot = join(startPkgDir, '..', '..')
52
+ if (!existsSync(join(aeroRoot, 'pnpm-workspace.yaml'))) return false
53
+ // Only use monorepo layout (scaffold into dist/) when run from inside this repo
54
+ const cwdWorkspaceRoot = findWorkspaceRoot(process.cwd())
55
+ return cwdWorkspaceRoot !== null && cwdWorkspaceRoot === aeroRoot
53
56
  } catch {
54
57
  return false
55
58
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-aerobuilt",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Jamie Wilson",
@@ -19,15 +19,7 @@
19
19
  "create-aerobuilt": "index.js"
20
20
  },
21
21
  "dependencies": {
22
- "@aerobuilt/template-minimal": "^0.2.3"
23
- },
24
- "peerDependencies": {
25
- "vite": "*"
26
- },
27
- "peerDependenciesMeta": {
28
- "vite": {
29
- "optional": true
30
- }
22
+ "@aerobuilt/template-minimal": "0.2.4"
31
23
  },
32
24
  "scripts": {
33
25
  "create": "node .",