@0x-jerry/x 2.6.0 → 2.6.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/dist/xn.js CHANGED
@@ -17,7 +17,7 @@ var DenoDependencyManager = class {
17
17
  return pathExists(path.join(cwd, "deno.json")) || pathExists(path.join(cwd, "deno.jsonc"));
18
18
  }
19
19
  async install(option) {
20
- await exec("deno", ["cache"]);
20
+ throw new Error("Deno project do not need to install dependencies");
21
21
  }
22
22
  async add(modules, option) {
23
23
  await exec("deno", ["add", ...modules]);
@@ -44,7 +44,7 @@ var NodeDependencyManager = class {
44
44
  }
45
45
  async add(modules, option = {}) {
46
46
  await runDepManagerCommand("add", ...modules);
47
- if (option.type) {
47
+ if (option.types) {
48
48
  const typeModules = modules.map((pkg) => getTypePackageName(pkg));
49
49
  await runDepManagerCommand("add", ...typeModules, "-D");
50
50
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0x-jerry/x",
3
- "version": "2.6.0",
3
+ "version": "2.6.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/0x-jerry/x.git"
@@ -39,7 +39,6 @@
39
39
  "format": [
40
40
  "esm"
41
41
  ],
42
- "dts": true,
43
42
  "clean": true
44
43
  },
45
44
  "dependencies": {
package/dist/x.d.ts DELETED
@@ -1 +0,0 @@
1
- #!/usr/bin/env node
package/dist/xn.d.ts DELETED
@@ -1 +0,0 @@
1
- #!/usr/bin/env node
package/dist/xr.d.ts DELETED
@@ -1 +0,0 @@
1
- #!/usr/bin/env node