create-platformatic 0.44.0 → 0.45.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-platformatic",
3
- "version": "0.44.0",
3
+ "version": "0.45.1",
4
4
  "description": "Create platformatic-db interactive tool",
5
5
  "repository": {
6
6
  "type": "git",
@@ -34,7 +34,7 @@
34
34
  "semver": "^7.5.1",
35
35
  "undici": "^5.22.1",
36
36
  "which": "^3.0.1",
37
- "@platformatic/config": "0.44.0"
37
+ "@platformatic/config": "0.45.1"
38
38
  },
39
39
  "devDependencies": {
40
40
  "ajv": "^8.12.0",
@@ -47,8 +47,8 @@
47
47
  "tap": "^16.3.6",
48
48
  "typescript": "~5.2.0",
49
49
  "yaml": "^2.3.1",
50
- "@platformatic/db": "0.44.0",
51
- "@platformatic/service": "0.44.0"
50
+ "@platformatic/db": "0.45.1",
51
+ "@platformatic/service": "0.45.1"
52
52
  },
53
53
  "scripts": {
54
54
  "test": "standard | snazzy && cross-env NODE_OPTIONS=\"--loader=esmock --no-warnings\" c8 tap --no-coverage test/*test.mjs test/*/*test.mjs",
@@ -87,6 +87,12 @@ const createPlatformaticService = async (_args, opts = {}) => {
87
87
  }
88
88
  await createReadme(logger, projectDir)
89
89
 
90
+ if (runPackageManagerInstall) {
91
+ const spinner = ora('Installing dependencies...').start()
92
+ await execa(pkgManager, ['install'], { cwd: projectDir })
93
+ spinner.succeed('...done!')
94
+ }
95
+
90
96
  const spinner = ora('Generating types...').start()
91
97
  try {
92
98
  await execa(pkgManager, ['exec', 'platformatic', 'service', 'types'], { cwd: projectDir })
@@ -96,12 +102,6 @@ const createPlatformaticService = async (_args, opts = {}) => {
96
102
  spinner.fail('...failed! Try again by running "platformatic service types"')
97
103
  }
98
104
 
99
- if (runPackageManagerInstall) {
100
- const spinner = ora('Installing dependencies...').start()
101
- await execa(pkgManager, ['install'], { cwd: projectDir })
102
- spinner.succeed('...done!')
103
- }
104
-
105
105
  if (!opts.skipGitHubActions) {
106
106
  await askDynamicWorkspaceCreateGHAction(logger, env, 'service', useTypescript, projectDir)
107
107
  await askStaticWorkspaceGHAction(logger, env, 'service', useTypescript, projectDir)
@@ -56,7 +56,7 @@ PLT_TYPESCRIPT=true
56
56
  }
57
57
 
58
58
  const JS_PLUGIN_WITH_TYPES_SUPPORT = `\
59
- /// <reference types="../global.d.ts" />
59
+ /// <reference path="../global.d.ts" />
60
60
  'use strict'
61
61
  /** @param {import('fastify').FastifyInstance} fastify */
62
62
  module.exports = async function (fastify, opts) {
@@ -65,7 +65,7 @@ module.exports = async function (fastify, opts) {
65
65
  `
66
66
 
67
67
  const TS_PLUGIN_WITH_TYPES_SUPPORT = `\
68
- /// <reference types="../global.d.ts" />
68
+ /// <reference path="../global.d.ts" />
69
69
  import { FastifyInstance, FastifyPluginOptions } from 'fastify'
70
70
 
71
71
  export default async function (fastify: FastifyInstance, opts: FastifyPluginOptions) {
@@ -74,7 +74,7 @@ export default async function (fastify: FastifyInstance, opts: FastifyPluginOpti
74
74
  `
75
75
 
76
76
  const JS_ROUTES_WITH_TYPES_SUPPORT = `\
77
- /// <reference types="../global.d.ts" />
77
+ /// <reference path="../global.d.ts" />
78
78
  'use strict'
79
79
  /** @param {import('fastify').FastifyInstance} fastify */
80
80
  module.exports = async function (fastify, opts) {
@@ -85,7 +85,7 @@ module.exports = async function (fastify, opts) {
85
85
  `
86
86
 
87
87
  const TS_ROUTES_WITH_TYPES_SUPPORT = `\
88
- /// <reference types="../global.d.ts" />
88
+ /// <reference path="../global.d.ts" />
89
89
  import { FastifyInstance, FastifyPluginOptions } from 'fastify'
90
90
 
91
91
  declare module 'fastify' {