create-ones-app 0.0.11 → 0.0.12

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/actions/create/index.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAA0B,oBAAoB,EAAE,MAAM,WAAW,CAAA;AAc7E,eAAO,MAAM,MAAM,sFAyElB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/actions/create/index.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAA0B,oBAAoB,EAAE,MAAM,WAAW,CAAA;AA2D7E,eAAO,MAAM,MAAM,sFAuFlB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/common/command/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAC1D,OAAO,KAAK,EACV,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,EACf,MAAM,SAAS,CAAA;AAEhB,eAAO,MAAM,iBAAiB,oKAe7B,CAAA;AAED,eAAO,MAAM,eAAe,QAAS,OAAO,KAAG,QAAQ,EAGtD,CAAA;AAED,eAAO,MAAM,aAAa,QAAS,OAAO,KAAG,MAAM,EAGlD,CAAA;AAED,eAAO,MAAM,eAAe,QAAS,OAAO,cAAc,MAAM,EAAE,SAkBjE,CAAA;AAED,eAAO,MAAM,gBAAgB,QAAS,OAAO,SAM5C,CAAA"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/common/command/utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAC1D,OAAO,KAAK,EACV,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,EACf,MAAM,SAAS,CAAA;AAEhB,eAAO,MAAM,iBAAiB,oKAe7B,CAAA;AAED,eAAO,MAAM,eAAe,QAAS,OAAO,KAAG,QAAQ,EAGtD,CAAA;AAED,eAAO,MAAM,aAAa,QAAS,OAAO,KAAG,MAAM,EAGlD,CAAA;AAED,eAAO,MAAM,eAAe,QAAS,OAAO,cAAc,MAAM,EAAE,SAkBjE,CAAA;AAED,eAAO,MAAM,gBAAgB,QAAS,OAAO,SAU5C,CAAA"}
@@ -3,6 +3,12 @@ declare const _default: {
3
3
  readonly 'desc.create.projectPath': "Specify the project path";
4
4
  readonly 'desc.create.templateName': "Specify the template name";
5
5
  readonly 'desc.create.manifestOnly': "Only create the manifest file";
6
+ readonly 'success.create.gitInitialized': "Git repository initialized.";
7
+ readonly 'success.create.gitInitializedAndIgnoreStaged': "Git repository initialized, and \".gitignore\" has been staged.";
8
+ readonly 'success.create.fetchReferences': "To help your AI work on this app, fetch the app development references:";
9
+ readonly 'warn.create.gitInitSkipped': "Warning: failed to initialize a Git repository automatically. You can run \"git init\" later. Reason: {reason}";
10
+ readonly 'warn.create.gitIgnoreStageSkipped': "Warning: Git repository initialized, but failed to stage \".gitignore\". You can run \"git add .gitignore\" later. Reason: {reason}";
11
+ readonly 'error.command.missingProjectPathFriendly': "Project path is required. Example: ones create hello-ones";
6
12
  readonly 'error.create.templateNotFound': "Template \"{templateName}\" not found";
7
13
  readonly 'error.create.missingProjectPath': "Project path is required";
8
14
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/common/locales/en/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,wBAOU"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/common/locales/en/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,wBAkBU"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-ones-app",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -77,5 +77,5 @@
77
77
  "uuid": "^13.0.0",
78
78
  "zod": "^3.22.2"
79
79
  },
80
- "gitHead": "8d8c0f3341a322d62952b7cd83c7b90992790853"
80
+ "gitHead": "291916cc0340fe91aafacd9930285f4a670682fb"
81
81
  }
@@ -19,5 +19,6 @@ Thumbs.db
19
19
  .codex
20
20
 
21
21
  .specify/
22
+ .ones/
22
23
  specs/
23
24
  *.opkx
@@ -5,6 +5,12 @@ import { getHostedPort } from './utils'
5
5
  async function bootstrap() {
6
6
  const app = await NestFactory.create(AppModule)
7
7
  app.enableShutdownHooks()
8
- await app.listen(getHostedPort())
8
+ const configuredPort = getHostedPort()
9
+ await app.listen(configuredPort)
10
+
11
+ const address = app.getHttpServer().address()
12
+ const currentPort =
13
+ typeof address === 'string' ? configuredPort : (address?.port ?? configuredPort)
14
+ console.log(`App server is listening on port ${currentPort}`)
9
15
  }
10
16
  bootstrap().catch(console.error)