@phila/cli 0.0.5 → 0.0.7

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 (77) hide show
  1. package/README.md +20 -1
  2. package/dist/commands/config.d.ts +2 -0
  3. package/dist/commands/config.d.ts.map +1 -1
  4. package/dist/commands/config.js.map +1 -1
  5. package/dist/commands/deploy.d.ts.map +1 -1
  6. package/dist/commands/deploy.js +17 -6
  7. package/dist/commands/deploy.js.map +1 -1
  8. package/dist/commands/init.d.ts.map +1 -1
  9. package/dist/commands/init.js +89 -6
  10. package/dist/commands/init.js.map +1 -1
  11. package/dist/commands/ship.d.ts.map +1 -1
  12. package/dist/commands/ship.js +14 -4
  13. package/dist/commands/ship.js.map +1 -1
  14. package/dist/templates/_shared/webapp-cdk-package.json.tmpl +6 -3
  15. package/dist/templates/lambda-api-nodejs/cdk/package.json +6 -3
  16. package/dist/templates/lambda-api-nodejs/cdk/tsconfig.json +2 -1
  17. package/dist/templates/lambda-api-nodejs/package.json.tmpl +3 -2
  18. package/dist/templates/lambda-api-nodejs/pnpm-workspace.yaml.tmpl +3 -0
  19. package/dist/templates/lambda-dynamo-api/cdk/package.json +6 -3
  20. package/dist/templates/lambda-dynamo-api/cdk/tsconfig.json +4 -8
  21. package/dist/templates/lambda-dynamo-api/package.json.tmpl +3 -2
  22. package/dist/templates/lambda-dynamo-api/pnpm-workspace.yaml.tmpl +3 -0
  23. package/dist/templates/lambda-postgres-api/cdk/package.json +6 -3
  24. package/dist/templates/lambda-postgres-api/cdk/tsconfig.json +2 -1
  25. package/dist/templates/lambda-postgres-api/package.json.tmpl +3 -2
  26. package/dist/templates/lambda-postgres-api/pnpm-workspace.yaml.tmpl +3 -0
  27. package/dist/templates/static-site/cdk/cdk.json +2 -1
  28. package/dist/templates/static-site/cdk/package.json +6 -3
  29. package/dist/templates/static-site/cdk/tsconfig.json +2 -1
  30. package/dist/templates/static-site/package.json.tmpl +2 -5
  31. package/dist/templates/static-site/pnpm-workspace.yaml.tmpl +3 -0
  32. package/dist/templates/webapp-ecs-dotnet/cdk/tsconfig.json +2 -1
  33. package/dist/templates/webapp-ecs-dotnet/package.json.tmpl +2 -1
  34. package/dist/templates/webapp-ecs-dotnet/pnpm-workspace.yaml.tmpl +3 -0
  35. package/dist/templates/webapp-ecs-node/cdk/tsconfig.json +2 -1
  36. package/dist/templates/webapp-ecs-node/package.json.tmpl +3 -2
  37. package/dist/templates/webapp-ecs-node/pnpm-workspace.yaml.tmpl +4 -0
  38. package/dist/templates/webapp-ecs-postgres-dotnet/cdk/tsconfig.json +2 -1
  39. package/dist/templates/webapp-ecs-postgres-dotnet/package.json.tmpl +2 -1
  40. package/dist/templates/webapp-ecs-postgres-dotnet/pnpm-workspace.yaml.tmpl +3 -0
  41. package/dist/templates/webapp-ecs-postgres-node/cdk/tsconfig.json +2 -1
  42. package/dist/templates/webapp-ecs-postgres-node/package.json.tmpl +3 -2
  43. package/dist/templates/webapp-ecs-postgres-node/pnpm-workspace.yaml.tmpl +4 -0
  44. package/dist/templates/webapp-lambda-dotnet/cdk/tsconfig.json +2 -1
  45. package/dist/templates/webapp-lambda-dotnet/package.json.tmpl +2 -1
  46. package/dist/templates/webapp-lambda-dotnet/pnpm-workspace.yaml.tmpl +3 -0
  47. package/dist/templates/webapp-lambda-dynamo-dotnet/cdk/tsconfig.json +2 -1
  48. package/dist/templates/webapp-lambda-dynamo-dotnet/package.json.tmpl +2 -1
  49. package/dist/templates/webapp-lambda-dynamo-dotnet/pnpm-workspace.yaml.tmpl +3 -0
  50. package/dist/templates/webapp-lambda-dynamo-node/cdk/tsconfig.json +2 -1
  51. package/dist/templates/webapp-lambda-dynamo-node/package.json.tmpl +3 -2
  52. package/dist/templates/webapp-lambda-dynamo-node/pnpm-workspace.yaml.tmpl +4 -0
  53. package/dist/templates/webapp-lambda-node/cdk/tsconfig.json +2 -1
  54. package/dist/templates/webapp-lambda-node/package.json.tmpl +3 -2
  55. package/dist/templates/webapp-lambda-node/pnpm-workspace.yaml.tmpl +4 -0
  56. package/dist/templates/webapp-lambda-postgres-dotnet/cdk/tsconfig.json +2 -1
  57. package/dist/templates/webapp-lambda-postgres-dotnet/package.json.tmpl +2 -1
  58. package/dist/templates/webapp-lambda-postgres-dotnet/pnpm-workspace.yaml.tmpl +3 -0
  59. package/dist/templates/webapp-lambda-postgres-node/cdk/tsconfig.json +2 -1
  60. package/dist/templates/webapp-lambda-postgres-node/package.json.tmpl +3 -2
  61. package/dist/templates/webapp-lambda-postgres-node/pnpm-workspace.yaml.tmpl +4 -0
  62. package/dist/utils/cli-installation.d.ts +17 -0
  63. package/dist/utils/cli-installation.d.ts.map +1 -0
  64. package/dist/utils/cli-installation.js +131 -0
  65. package/dist/utils/cli-installation.js.map +1 -0
  66. package/dist/utils/dependencies.d.ts.map +1 -1
  67. package/dist/utils/dependencies.js +75 -0
  68. package/dist/utils/dependencies.js.map +1 -1
  69. package/dist/utils/package-manager.d.ts +30 -0
  70. package/dist/utils/package-manager.d.ts.map +1 -0
  71. package/dist/utils/package-manager.js +145 -0
  72. package/dist/utils/package-manager.js.map +1 -0
  73. package/dist/utils/template.d.ts +3 -0
  74. package/dist/utils/template.d.ts.map +1 -1
  75. package/dist/utils/template.js +23 -5
  76. package/dist/utils/template.js.map +1 -1
  77. package/package.json +4 -4
@@ -9,15 +9,18 @@
9
9
  },
10
10
  "dependencies": {
11
11
  "@phila/constructs": "^{{constructsVersion}}",
12
- "aws-cdk-lib": "^2.100.0",
12
+ "aws-cdk-lib": "^2.236.0",
13
13
  "cdk-nag": "^2.28.0",
14
- "constructs": "^10.0.0",
14
+ "constructs": "^10.4.4",
15
15
  "source-map-support": "^0.5.21"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@types/node": "^20.10.0",
19
- "aws-cdk": "^2.100.0",
19
+ "aws-cdk": "^2.1103.0",
20
20
  "ts-node": "^10.9.0",
21
21
  "typescript": "^5.3.0"
22
+ },
23
+ "overrides": {
24
+ "constructs": "^10.4.4"
22
25
  }
23
26
  }
@@ -2,7 +2,8 @@
2
2
  "extends": "../tsconfig.json",
3
3
  "compilerOptions": {
4
4
  "outDir": "dist",
5
- "rootDir": "."
5
+ "rootDir": ".",
6
+ "types": ["node"]
6
7
  },
7
8
  "include": ["*.ts"],
8
9
  "exclude": ["node_modules", "cdk.out"]
@@ -4,8 +4,8 @@
4
4
  "description": "Lambda API application using Philadelphia constructs",
5
5
  "private": true,
6
6
  "scripts": {
7
- "build": "npm run build --workspaces",
8
- "test": "npm test --workspaces",
7
+ "build": "{{buildCommand}}",
8
+ "test": "{{testCommand}}",
9
9
  "synth": "cd cdk && cdk synth",
10
10
  "deploy": "cd cdk && cdk deploy",
11
11
  "diff": "cd cdk && cdk diff"
@@ -15,6 +15,7 @@
15
15
  "apps/*"
16
16
  ],
17
17
  "devDependencies": {
18
+ "@types/node": "^20.10.0",
18
19
  "typescript": "^5.3.0"
19
20
  }
20
21
  }
@@ -0,0 +1,3 @@
1
+ packages:
2
+ - 'cdk'
3
+ - 'apps/*'
@@ -9,15 +9,18 @@
9
9
  },
10
10
  "dependencies": {
11
11
  "@phila/constructs": "^{{constructsVersion}}",
12
- "aws-cdk-lib": "^2.100.0",
12
+ "aws-cdk-lib": "^2.236.0",
13
13
  "cdk-nag": "^2.28.0",
14
- "constructs": "^10.0.0",
14
+ "constructs": "^10.4.4",
15
15
  "source-map-support": "^0.5.21"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@types/node": "^20.10.0",
19
- "aws-cdk": "^2.100.0",
19
+ "aws-cdk": "^2.1103.0",
20
20
  "ts-node": "^10.9.0",
21
21
  "typescript": "^5.3.0"
22
+ },
23
+ "overrides": {
24
+ "constructs": "^10.4.4"
22
25
  }
23
26
  }
@@ -2,13 +2,9 @@
2
2
  "extends": "../tsconfig.json",
3
3
  "compilerOptions": {
4
4
  "outDir": "dist",
5
- "rootDir": "."
5
+ "rootDir": ".",
6
+ "types": ["node"]
6
7
  },
7
- "include": [
8
- "*.ts"
9
- ],
10
- "exclude": [
11
- "node_modules",
12
- "cdk.out"
13
- ]
8
+ "include": ["*.ts"],
9
+ "exclude": ["node_modules", "cdk.out"]
14
10
  }
@@ -4,8 +4,8 @@
4
4
  "description": "Lambda DynamoDB API application using Philadelphia constructs",
5
5
  "private": true,
6
6
  "scripts": {
7
- "build": "npm run build --workspaces",
8
- "test": "npm test --workspaces",
7
+ "build": "{{buildCommand}}",
8
+ "test": "{{testCommand}}",
9
9
  "synth": "cd cdk && cdk synth",
10
10
  "deploy": "cd cdk && cdk deploy",
11
11
  "diff": "cd cdk && cdk diff"
@@ -15,6 +15,7 @@
15
15
  "apps/*"
16
16
  ],
17
17
  "devDependencies": {
18
+ "@types/node": "^20.10.0",
18
19
  "typescript": "^5.3.0"
19
20
  }
20
21
  }
@@ -0,0 +1,3 @@
1
+ packages:
2
+ - 'cdk'
3
+ - 'apps/*'
@@ -9,15 +9,18 @@
9
9
  },
10
10
  "dependencies": {
11
11
  "@phila/constructs": "^{{constructsVersion}}",
12
- "aws-cdk-lib": "^2.100.0",
12
+ "aws-cdk-lib": "^2.236.0",
13
13
  "cdk-nag": "^2.28.0",
14
- "constructs": "^10.0.0",
14
+ "constructs": "^10.4.4",
15
15
  "source-map-support": "^0.5.21"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@types/node": "^20.10.0",
19
- "aws-cdk": "^2.100.0",
19
+ "aws-cdk": "^2.1103.0",
20
20
  "ts-node": "^10.9.0",
21
21
  "typescript": "^5.3.0"
22
+ },
23
+ "overrides": {
24
+ "constructs": "^10.4.4"
22
25
  }
23
26
  }
@@ -19,7 +19,8 @@
19
19
  "strictPropertyInitialization": false,
20
20
  "outDir": "./dist",
21
21
  "rootDir": ".",
22
- "skipLibCheck": true
22
+ "skipLibCheck": true,
23
+ "types": ["node"]
23
24
  },
24
25
  "exclude": ["node_modules", "dist"]
25
26
  }
@@ -4,8 +4,8 @@
4
4
  "description": "Lambda API with PostgreSQL database using Philadelphia constructs",
5
5
  "private": true,
6
6
  "scripts": {
7
- "build": "npm run build --workspaces",
8
- "test": "npm test --workspaces",
7
+ "build": "{{buildCommand}}",
8
+ "test": "{{testCommand}}",
9
9
  "synth": "cd cdk && cdk synth",
10
10
  "deploy": "cd cdk && cdk deploy",
11
11
  "diff": "cd cdk && cdk diff"
@@ -15,6 +15,7 @@
15
15
  "apps/*"
16
16
  ],
17
17
  "devDependencies": {
18
+ "@types/node": "^20.10.0",
18
19
  "typescript": "^5.3.0"
19
20
  }
20
21
  }
@@ -0,0 +1,3 @@
1
+ packages:
2
+ - 'cdk'
3
+ - 'apps/*'
@@ -63,6 +63,7 @@
63
63
  "@aws-cdk/aws-ec2:ebsDefaultGp3Volume": true,
64
64
  "@aws-cdk/aws-ecs:removeDefaultDeploymentAlarm": true,
65
65
  "@aws-cdk/custom-resources:logApiResponseDataPropertyTrueDefault": false,
66
- "@aws-cdk/aws-s3:keepNotificationInImportedBucket": false
66
+ "@aws-cdk/aws-s3:keepNotificationInImportedBucket": false,
67
+ "@aws-cdk/aws-cloudfront:defaultSecurityPolicyTLSv1.2_2021": true
67
68
  }
68
69
  }
@@ -9,15 +9,18 @@
9
9
  },
10
10
  "dependencies": {
11
11
  "@phila/constructs": "^{{constructsVersion}}",
12
- "aws-cdk-lib": "^2.100.0",
12
+ "aws-cdk-lib": "^2.236.0",
13
13
  "cdk-nag": "^2.28.0",
14
- "constructs": "^10.0.0",
14
+ "constructs": "^10.4.4",
15
15
  "source-map-support": "^0.5.21"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@types/node": "^20.10.0",
19
- "aws-cdk": "^2.100.0",
19
+ "aws-cdk": "^2.1103.0",
20
20
  "ts-node": "^10.9.0",
21
21
  "typescript": "^5.3.0"
22
+ },
23
+ "overrides": {
24
+ "constructs": "^10.4.4"
22
25
  }
23
26
  }
@@ -2,7 +2,8 @@
2
2
  "extends": "../tsconfig.json",
3
3
  "compilerOptions": {
4
4
  "outDir": "dist",
5
- "rootDir": "."
5
+ "rootDir": ".",
6
+ "types": ["node"]
6
7
  },
7
8
  "include": ["*.ts"],
8
9
  "exclude": ["node_modules", "cdk.out"]
@@ -4,7 +4,7 @@
4
4
  "description": "Static site application using Philadelphia constructs",
5
5
  "private": true,
6
6
  "scripts": {
7
- "build": "npm run build --workspaces",
7
+ "build": "{{buildCommand}}",
8
8
  "synth": "cd cdk && cdk synth",
9
9
  "deploy": "cd cdk && cdk deploy",
10
10
  "diff": "cd cdk && cdk diff"
@@ -12,8 +12,5 @@
12
12
  "workspaces": [
13
13
  "cdk",
14
14
  "frontend"
15
- ],
16
- "devDependencies": {
17
- "typescript": "^5.3.0"
18
- }
15
+ ]
19
16
  }
@@ -0,0 +1,3 @@
1
+ packages:
2
+ - 'cdk'
3
+ - 'frontend'
@@ -18,7 +18,8 @@
18
18
  "experimentalDecorators": true,
19
19
  "strictPropertyInitialization": false,
20
20
  "outDir": "./dist",
21
- "rootDir": "./"
21
+ "rootDir": "./",
22
+ "types": ["node"]
22
23
  },
23
24
  "include": ["./*.ts"],
24
25
  "exclude": ["node_modules", "cdk.out"]
@@ -8,7 +8,7 @@
8
8
  "build:frontend": "cd frontend && npm run build",
9
9
  "build:api": "cd apps/api && docker build -t {{appName}}-api .",
10
10
  "dev": "cd frontend && npm run dev",
11
- "test": "npm test --workspaces --if-present",
11
+ "test": "{{testCommand}}",
12
12
  "synth": "cd cdk && cdk synth",
13
13
  "deploy": "cd cdk && cdk deploy",
14
14
  "diff": "cd cdk && cdk diff"
@@ -18,6 +18,7 @@
18
18
  "frontend"
19
19
  ],
20
20
  "devDependencies": {
21
+ "@types/node": "^20.10.0",
21
22
  "typescript": "^5.3.0"
22
23
  }
23
24
  }
@@ -0,0 +1,3 @@
1
+ packages:
2
+ - 'cdk'
3
+ - 'frontend'
@@ -18,7 +18,8 @@
18
18
  "experimentalDecorators": true,
19
19
  "strictPropertyInitialization": false,
20
20
  "outDir": "./dist",
21
- "rootDir": "./"
21
+ "rootDir": "./",
22
+ "types": ["node"]
22
23
  },
23
24
  "include": ["./*.ts"],
24
25
  "exclude": ["node_modules", "cdk.out"]
@@ -4,12 +4,12 @@
4
4
  "description": "Web application with Nuxt frontend and ECS containerized API backend",
5
5
  "private": true,
6
6
  "scripts": {
7
- "build": "npm run build --workspaces",
7
+ "build": "{{buildCommand}}",
8
8
  "build:frontend": "cd frontend && npm run build",
9
9
  "build:api": "cd apps/api && npm run build",
10
10
  "dev": "cd frontend && npm run dev",
11
11
  "dev:api": "cd apps/api && npm run dev",
12
- "test": "npm test --workspaces --if-present",
12
+ "test": "{{testCommand}}",
13
13
  "synth": "cd cdk && cdk synth",
14
14
  "deploy": "cd cdk && cdk deploy",
15
15
  "diff": "cd cdk && cdk diff"
@@ -20,6 +20,7 @@
20
20
  "frontend"
21
21
  ],
22
22
  "devDependencies": {
23
+ "@types/node": "^20.10.0",
23
24
  "typescript": "^5.3.0"
24
25
  }
25
26
  }
@@ -0,0 +1,4 @@
1
+ packages:
2
+ - 'cdk'
3
+ - 'apps/*'
4
+ - 'frontend'
@@ -18,7 +18,8 @@
18
18
  "experimentalDecorators": true,
19
19
  "strictPropertyInitialization": false,
20
20
  "outDir": "./dist",
21
- "rootDir": "./"
21
+ "rootDir": "./",
22
+ "types": ["node"]
22
23
  },
23
24
  "include": ["./*.ts"],
24
25
  "exclude": ["node_modules", "cdk.out"]
@@ -8,7 +8,7 @@
8
8
  "build:frontend": "cd frontend && npm run build",
9
9
  "build:api": "cd apps/api && docker build -t {{appName}}-api .",
10
10
  "dev": "cd frontend && npm run dev",
11
- "test": "npm test --workspaces --if-present",
11
+ "test": "{{testCommand}}",
12
12
  "synth": "cd cdk && cdk synth",
13
13
  "deploy": "cd cdk && cdk deploy",
14
14
  "diff": "cd cdk && cdk diff"
@@ -18,6 +18,7 @@
18
18
  "frontend"
19
19
  ],
20
20
  "devDependencies": {
21
+ "@types/node": "^20.10.0",
21
22
  "typescript": "^5.3.0"
22
23
  }
23
24
  }
@@ -0,0 +1,3 @@
1
+ packages:
2
+ - 'cdk'
3
+ - 'frontend'
@@ -18,7 +18,8 @@
18
18
  "experimentalDecorators": true,
19
19
  "strictPropertyInitialization": false,
20
20
  "outDir": "./dist",
21
- "rootDir": "./"
21
+ "rootDir": "./",
22
+ "types": ["node"]
22
23
  },
23
24
  "include": ["./*.ts"],
24
25
  "exclude": ["node_modules", "cdk.out"]
@@ -4,12 +4,12 @@
4
4
  "description": "Web application with Nuxt frontend, ECS containerized API backend, and PostgreSQL",
5
5
  "private": true,
6
6
  "scripts": {
7
- "build": "npm run build --workspaces",
7
+ "build": "{{buildCommand}}",
8
8
  "build:frontend": "cd frontend && npm run build",
9
9
  "build:api": "cd apps/api && npm run build",
10
10
  "dev": "cd frontend && npm run dev",
11
11
  "dev:api": "cd apps/api && npm run dev",
12
- "test": "npm test --workspaces --if-present",
12
+ "test": "{{testCommand}}",
13
13
  "synth": "cd cdk && cdk synth",
14
14
  "deploy": "cd cdk && cdk deploy",
15
15
  "diff": "cd cdk && cdk diff"
@@ -20,6 +20,7 @@
20
20
  "frontend"
21
21
  ],
22
22
  "devDependencies": {
23
+ "@types/node": "^20.10.0",
23
24
  "typescript": "^5.3.0"
24
25
  }
25
26
  }
@@ -0,0 +1,4 @@
1
+ packages:
2
+ - 'cdk'
3
+ - 'apps/*'
4
+ - 'frontend'
@@ -2,7 +2,8 @@
2
2
  "extends": "../tsconfig.json",
3
3
  "compilerOptions": {
4
4
  "outDir": "dist",
5
- "rootDir": "."
5
+ "rootDir": ".",
6
+ "types": ["node"]
6
7
  },
7
8
  "include": ["*.ts"],
8
9
  "exclude": ["node_modules", "cdk.out"]
@@ -8,7 +8,7 @@
8
8
  "build:frontend": "cd frontend && npm run build",
9
9
  "build:api": "cd apps/api && dotnet publish -c Release -o publish",
10
10
  "dev": "cd frontend && npm run dev",
11
- "test": "npm test --workspaces --if-present",
11
+ "test": "{{testCommand}}",
12
12
  "synth": "cd cdk && cdk synth",
13
13
  "deploy": "cd cdk && cdk deploy",
14
14
  "diff": "cd cdk && cdk diff"
@@ -18,6 +18,7 @@
18
18
  "frontend"
19
19
  ],
20
20
  "devDependencies": {
21
+ "@types/node": "^20.10.0",
21
22
  "typescript": "^5.3.0"
22
23
  }
23
24
  }
@@ -0,0 +1,3 @@
1
+ packages:
2
+ - 'cdk'
3
+ - 'frontend'
@@ -2,7 +2,8 @@
2
2
  "extends": "../tsconfig.json",
3
3
  "compilerOptions": {
4
4
  "outDir": "dist",
5
- "rootDir": "."
5
+ "rootDir": ".",
6
+ "types": ["node"]
6
7
  },
7
8
  "include": ["*.ts"],
8
9
  "exclude": ["node_modules", "cdk.out"]
@@ -8,7 +8,7 @@
8
8
  "build:frontend": "cd frontend && npm run build",
9
9
  "build:api": "cd apps/api && dotnet publish -c Release -o publish",
10
10
  "dev": "cd frontend && npm run dev",
11
- "test": "npm test --workspaces --if-present",
11
+ "test": "{{testCommand}}",
12
12
  "synth": "cd cdk && cdk synth",
13
13
  "deploy": "cd cdk && cdk deploy",
14
14
  "diff": "cd cdk && cdk diff"
@@ -18,6 +18,7 @@
18
18
  "frontend"
19
19
  ],
20
20
  "devDependencies": {
21
+ "@types/node": "^20.10.0",
21
22
  "typescript": "^5.3.0"
22
23
  }
23
24
  }
@@ -0,0 +1,3 @@
1
+ packages:
2
+ - 'cdk'
3
+ - 'frontend'
@@ -2,7 +2,8 @@
2
2
  "extends": "../tsconfig.json",
3
3
  "compilerOptions": {
4
4
  "outDir": "dist",
5
- "rootDir": "."
5
+ "rootDir": ".",
6
+ "types": ["node"]
6
7
  },
7
8
  "include": ["*.ts"],
8
9
  "exclude": ["node_modules", "cdk.out"]
@@ -4,11 +4,11 @@
4
4
  "description": "Web application with Nuxt frontend and Lambda API backend",
5
5
  "private": true,
6
6
  "scripts": {
7
- "build": "npm run build --workspaces",
7
+ "build": "{{buildCommand}}",
8
8
  "build:frontend": "cd frontend && npm run build",
9
9
  "build:api": "cd apps/api && npm run build",
10
10
  "dev": "cd frontend && npm run dev",
11
- "test": "npm test --workspaces --if-present",
11
+ "test": "{{testCommand}}",
12
12
  "synth": "cd cdk && cdk synth",
13
13
  "deploy": "cd cdk && cdk deploy",
14
14
  "diff": "cd cdk && cdk diff"
@@ -19,6 +19,7 @@
19
19
  "frontend"
20
20
  ],
21
21
  "devDependencies": {
22
+ "@types/node": "^20.10.0",
22
23
  "typescript": "^5.3.0"
23
24
  }
24
25
  }
@@ -0,0 +1,4 @@
1
+ packages:
2
+ - 'cdk'
3
+ - 'apps/*'
4
+ - 'frontend'
@@ -2,7 +2,8 @@
2
2
  "extends": "../tsconfig.json",
3
3
  "compilerOptions": {
4
4
  "outDir": "dist",
5
- "rootDir": "."
5
+ "rootDir": ".",
6
+ "types": ["node"]
6
7
  },
7
8
  "include": ["*.ts"],
8
9
  "exclude": ["node_modules", "cdk.out"]
@@ -4,11 +4,11 @@
4
4
  "description": "Web application with Nuxt frontend and Lambda API backend",
5
5
  "private": true,
6
6
  "scripts": {
7
- "build": "npm run build --workspaces",
7
+ "build": "{{buildCommand}}",
8
8
  "build:frontend": "cd frontend && npm run build",
9
9
  "build:api": "cd apps/api && npm run build",
10
10
  "dev": "cd frontend && npm run dev",
11
- "test": "npm test --workspaces --if-present",
11
+ "test": "{{testCommand}}",
12
12
  "synth": "cd cdk && cdk synth",
13
13
  "deploy": "cd cdk && cdk deploy",
14
14
  "diff": "cd cdk && cdk diff"
@@ -19,6 +19,7 @@
19
19
  "frontend"
20
20
  ],
21
21
  "devDependencies": {
22
+ "@types/node": "^20.10.0",
22
23
  "typescript": "^5.3.0"
23
24
  }
24
25
  }
@@ -0,0 +1,4 @@
1
+ packages:
2
+ - 'cdk'
3
+ - 'apps/*'
4
+ - 'frontend'
@@ -2,7 +2,8 @@
2
2
  "extends": "../tsconfig.json",
3
3
  "compilerOptions": {
4
4
  "outDir": "dist",
5
- "rootDir": "."
5
+ "rootDir": ".",
6
+ "types": ["node"]
6
7
  },
7
8
  "include": ["*.ts"],
8
9
  "exclude": ["node_modules", "cdk.out"]
@@ -8,7 +8,7 @@
8
8
  "build:frontend": "cd frontend && npm run build",
9
9
  "build:api": "cd apps/api && dotnet publish -c Release -o publish",
10
10
  "dev": "cd frontend && npm run dev",
11
- "test": "npm test --workspaces --if-present",
11
+ "test": "{{testCommand}}",
12
12
  "synth": "cd cdk && cdk synth",
13
13
  "deploy": "cd cdk && cdk deploy",
14
14
  "diff": "cd cdk && cdk diff"
@@ -18,6 +18,7 @@
18
18
  "frontend"
19
19
  ],
20
20
  "devDependencies": {
21
+ "@types/node": "^20.10.0",
21
22
  "typescript": "^5.3.0"
22
23
  }
23
24
  }
@@ -0,0 +1,3 @@
1
+ packages:
2
+ - 'cdk'
3
+ - 'frontend'
@@ -2,7 +2,8 @@
2
2
  "extends": "../tsconfig.json",
3
3
  "compilerOptions": {
4
4
  "outDir": "dist",
5
- "rootDir": "."
5
+ "rootDir": ".",
6
+ "types": ["node"]
6
7
  },
7
8
  "include": ["*.ts"],
8
9
  "exclude": ["node_modules", "cdk.out"]
@@ -4,11 +4,11 @@
4
4
  "description": "Web application with Nuxt frontend and Lambda API backend",
5
5
  "private": true,
6
6
  "scripts": {
7
- "build": "npm run build --workspaces",
7
+ "build": "{{buildCommand}}",
8
8
  "build:frontend": "cd frontend && npm run build",
9
9
  "build:api": "cd apps/api && npm run build",
10
10
  "dev": "cd frontend && npm run dev",
11
- "test": "npm test --workspaces --if-present",
11
+ "test": "{{testCommand}}",
12
12
  "synth": "cd cdk && cdk synth",
13
13
  "deploy": "cd cdk && cdk deploy",
14
14
  "diff": "cd cdk && cdk diff"
@@ -19,6 +19,7 @@
19
19
  "frontend"
20
20
  ],
21
21
  "devDependencies": {
22
+ "@types/node": "^20.10.0",
22
23
  "typescript": "^5.3.0"
23
24
  }
24
25
  }
@@ -0,0 +1,4 @@
1
+ packages:
2
+ - 'cdk'
3
+ - 'apps/*'
4
+ - 'frontend'
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Detects if the CLI package is running from a local link or workspace (via npm link, pnpm link, or direct workspace execution)
3
+ * vs installed from npm registry.
4
+ *
5
+ * @returns true if running from a local link or workspace, false if from npm registry
6
+ */
7
+ export declare function isLocalLink(): boolean;
8
+ /**
9
+ * Finds the workspace root by looking for pnpm-workspace.yaml, package.json with workspaces,
10
+ * or other workspace indicators
11
+ */
12
+ export declare function findWorkspaceRoot(startDir: string): string | null;
13
+ /**
14
+ * Gets the installation type as a string for display purposes
15
+ */
16
+ export declare function getInstallationType(): 'local' | 'npm';
17
+ //# sourceMappingURL=cli-installation.d.ts.map