esa-cli 1.0.8 → 1.0.9

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.
@@ -12,11 +12,11 @@ class EdgeKV {
12
12
  if (typeof root === 'undefined') {
13
13
  root = Deno.cwd();
14
14
  }
15
- if (root === '/') {
15
+ const prev = path.resolve(root, '../');
16
+ if (prev === root) {
16
17
  return Deno.cwd();
17
18
  }
18
19
  const file = path.join(root, 'cliconfig.toml');
19
- const prev = path.resolve(root, '../');
20
20
  try {
21
21
  const hasToml = fs.existsSync(file);
22
22
  if (hasToml) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esa-cli",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "A CLI for operating Alibaba Cloud ESA Functions and Pages.",
5
5
  "main": "bin/enter.cjs",
6
6
  "type": "module",