@platformatic/generators 3.67.0 → 3.69.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.
Files changed (2) hide show
  1. package/lib/utils.js +4 -3
  2. package/package.json +3 -3
package/lib/utils.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { convertApplicationNameToPrefix } from '@platformatic/foundation'
1
2
  import { EOL } from 'node:os'
2
3
  import { join } from 'node:path'
3
4
  import { setTimeout } from 'timers/promises'
@@ -20,9 +21,9 @@ export function stripVersion (version) {
20
21
  return version
21
22
  }
22
23
 
23
- export function convertApplicationNameToPrefix (applicationName) {
24
- return applicationName.replace(/-/g, '_').toUpperCase()
25
- }
24
+ // Kept as a re-export: the convention now lives in @platformatic/foundation, so that the runtime can
25
+ // recognise application references without depending on the generators.
26
+ export { convertApplicationNameToPrefix }
26
27
 
27
28
  export function addPrefixToString (input, prefix) {
28
29
  if (!prefix) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/generators",
3
- "version": "3.67.0",
3
+ "version": "3.69.0",
4
4
  "description": "Main classes and utils for generators.",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -23,7 +23,7 @@
23
23
  "fastify": "^5.0.0",
24
24
  "pino": "^9.9.0",
25
25
  "undici": "^7.27.2",
26
- "@platformatic/foundation": "3.67.0"
26
+ "@platformatic/foundation": "3.69.0"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/inquirer": "^9.0.7",
@@ -31,7 +31,7 @@
31
31
  "cleaner-spec-reporter": "^0.5.0",
32
32
  "eslint": "9",
33
33
  "neostandard": "^0.12.0",
34
- "tstyche": "^6.0.0",
34
+ "tstyche": "^7.0.0",
35
35
  "typescript": "~6.0.3"
36
36
  },
37
37
  "engines": {