create-nexu 1.1.8 → 1.2.0

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/index.js CHANGED
@@ -25,6 +25,7 @@ var TEMPLATE_DIRS = {
25
25
  ".eslintignore",
26
26
  ".prettierrc",
27
27
  ".prettierignore",
28
+ ".nexu-version",
28
29
  "tsconfig.json",
29
30
  "turbo.json",
30
31
  "vitest.config.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-nexu",
3
- "version": "1.1.8",
3
+ "version": "1.2.0",
4
4
  "description": "CLI to create and update Nexu monorepo projects",
5
5
  "author": "Nexu Team",
6
6
  "license": "MIT",
@@ -6,6 +6,9 @@ commitlint.config.js
6
6
  *.config.ts
7
7
  packages/config/**
8
8
 
9
+ # Scripts (JavaScript, not TypeScript)
10
+ scripts/**
11
+
9
12
  # Build outputs
10
13
  node_modules
11
14
  dist
@@ -2,4 +2,5 @@
2
2
  # Each app has its own docker-compose.yml in apps/<app-name>/
3
3
  # Run: pnpm generate:app <name> <port> to add a new app
4
4
 
5
- include: []
5
+ include:
6
+ - path: ../apps/test-app/docker-compose.yml
@@ -4,7 +4,7 @@
4
4
  "packageManager": "pnpm@9.0.0",
5
5
  "scripts": {
6
6
  "build": "turbo build",
7
- "dev": "turbo dev",
7
+ "dev": "turbo dev --filter='./apps/*'",
8
8
  "lint": "turbo lint",
9
9
  "lint:fix": "turbo lint:fix",
10
10
  "format": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"",
@@ -13,7 +13,7 @@
13
13
  "test:coverage": "turbo test:coverage",
14
14
  "typecheck": "turbo typecheck",
15
15
  "clean": "turbo clean && rm -rf node_modules",
16
- "nexu:version": "cat .nexu-version",
16
+ "nexu:version": "cat \"$PNPM_SCRIPT_SRC_DIR/.nexu-version\" 2>/dev/null || cat .nexu-version",
17
17
  "prepare": "husky install",
18
18
  "docker:dev": "docker-compose -f docker/docker-compose.dev.yml up",
19
19
  "docker:build": "docker-compose -f docker/docker-compose.prod.yml build",
@@ -392,7 +392,7 @@ function createBackendApp(appDir, appName, framework, port) {
392
392
  },
393
393
  dependencies: {},
394
394
  devDependencies: {
395
- '@repo/typescript-config': 'workspace:*',
395
+ '@repo/config': 'workspace:*',
396
396
  },
397
397
  };
398
398
 
@@ -415,7 +415,7 @@ function createBackendApp(appDir, appName, framework, port) {
415
415
 
416
416
  // Create tsconfig.json
417
417
  const tsconfig = {
418
- extends: '@repo/typescript-config/node.json',
418
+ extends: '@repo/config/typescript/base',
419
419
  compilerOptions: {
420
420
  outDir: 'dist',
421
421
  rootDir: 'src',