@adobe/aio-cli-plugin-app-storage 1.0.1 → 1.0.2
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/oclif.manifest.json +1 -1
- package/package.json +1 -1
- package/src/BaseCommand.js +2 -2
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
package/src/BaseCommand.js
CHANGED
|
@@ -22,7 +22,7 @@ export class BaseCommand extends Command {
|
|
|
22
22
|
async init () {
|
|
23
23
|
await super.init()
|
|
24
24
|
// eslint-disable-next-line node/no-unsupported-features/es-syntax
|
|
25
|
-
const { readFile } = await import('fs') // dynamic import to be able to mock fs, ESM and Jest are not friends
|
|
25
|
+
const { readFile } = await import('fs/promises') // dynamic import to be able to mock fs, ESM and Jest are not friends
|
|
26
26
|
|
|
27
27
|
// setup debug logger
|
|
28
28
|
const command = this.constructor.name.toLowerCase() // hacky but convenient
|
|
@@ -52,7 +52,7 @@ export class BaseCommand extends Command {
|
|
|
52
52
|
const aioSdkVersion = packageJson.dependencies?.['@adobe/aio-sdk']
|
|
53
53
|
if ((aioLibStateVersion && semver.lt(semver.coerce(aioLibStateVersion), '4.0.0')) ||
|
|
54
54
|
(aioSdkVersion && semver.lt(semver.coerce(aioSdkVersion), '6.0.0'))) {
|
|
55
|
-
this.error('State commands are not available for legacy State, please migrate to "@adobe/aio-lib-state"
|
|
55
|
+
this.error('State commands are not available for legacy State, please migrate to the latest "@adobe/aio-lib-state" (or "@adobe/aio-sdk" >= 6.0.0).')
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
|