@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 === null) {
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 === null) {
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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/generators",
3
- "version": "1.21.0",
3
+ "version": "1.21.1",
4
4
  "description": "Main classes and utils for generators.",
5
5
  "main": "index.js",
6
6
  "keywords": [],