@platformatic/generators 1.21.0 → 1.21.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.
|
@@ -218,7 +218,7 @@ class ${stackableGeneratorType} extends ServiceGenerator {
|
|
|
218
218
|
}
|
|
219
219
|
|
|
220
220
|
async getStackablePackageJson () {
|
|
221
|
-
if (this._packageJson
|
|
221
|
+
if (!this._packageJson) {
|
|
222
222
|
const packageJsonPath = join(__dirname, '..', 'package.json')
|
|
223
223
|
const packageJsonFile = await readFile(packageJsonPath, 'utf8')
|
|
224
224
|
const packageJson = JSON.parse(packageJsonFile)
|
|
@@ -327,7 +327,7 @@ class ${stackableGeneratorType} extends ServiceGenerator {
|
|
|
327
327
|
}
|
|
328
328
|
|
|
329
329
|
async getStackablePackageJson (): Promise<PackageJson> {
|
|
330
|
-
if (this._packageJson
|
|
330
|
+
if (!this._packageJson) {
|
|
331
331
|
const packageJsonPath = join(__dirname, '..', '..', 'package.json')
|
|
332
332
|
const packageJsonFile = await readFile(packageJsonPath, 'utf8')
|
|
333
333
|
const packageJson = JSON.parse(packageJsonFile)
|