@vite-plugin-opencode-assistant/opencode 1.0.69 → 1.0.70

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/es/web.js CHANGED
@@ -134,10 +134,7 @@ function resolvePackageDir() {
134
134
  return path.resolve(path.dirname(entryPath), "..");
135
135
  }
136
136
  function resolveSourcePluginsDir() {
137
- const candidatePaths = [
138
- path.join(packageDir, "es", "plugins"),
139
- path.join(packageDir, "lib", "plugins")
140
- ];
137
+ const candidatePaths = [path.join(packageDir, "es", "plugins")];
141
138
  for (const candidatePath of candidatePaths) {
142
139
  if (fs.existsSync(candidatePath)) {
143
140
  return candidatePath;
@@ -14,8 +14,8 @@ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "defau
14
14
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
15
  var lib_exports = {};
16
16
  module.exports = __toCommonJS(lib_exports);
17
- __reExport(lib_exports, require("./web"), module.exports);
17
+ __reExport(lib_exports, require("./web.cjs"), module.exports);
18
18
  // Annotate the CommonJS export names for ESM import in node:
19
19
  0 && (module.exports = {
20
- ...require("./web")
20
+ ...require("./web.cjs")
21
21
  });
@@ -165,10 +165,7 @@ function resolvePackageDir() {
165
165
  return import_path.default.resolve(import_path.default.dirname(entryPath), "..");
166
166
  }
167
167
  function resolveSourcePluginsDir() {
168
- const candidatePaths = [
169
- import_path.default.join(packageDir, "es", "plugins"),
170
- import_path.default.join(packageDir, "lib", "plugins")
171
- ];
168
+ const candidatePaths = [import_path.default.join(packageDir, "es", "plugins")];
172
169
  for (const candidatePath of candidatePaths) {
173
170
  if (import_fs.default.existsSync(candidatePath)) {
174
171
  return candidatePath;
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@vite-plugin-opencode-assistant/opencode",
3
- "version": "1.0.69",
3
+ "version": "1.0.70",
4
4
  "type": "module",
5
- "main": "lib/index.js",
5
+ "main": "lib/index.cjs",
6
6
  "module": "es/index.js",
7
7
  "types": "es/index.d.ts",
8
8
  "files": [
@@ -13,7 +13,7 @@
13
13
  ".": {
14
14
  "types": "./es/index.d.ts",
15
15
  "import": "./es/index.js",
16
- "require": "./lib/index.js"
16
+ "require": "./lib/index.cjs"
17
17
  }
18
18
  },
19
19
  "publishConfig": {
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "execa": "^9.6.1",
25
- "@vite-plugin-opencode-assistant/shared": "1.0.69"
25
+ "@vite-plugin-opencode-assistant/shared": "1.0.70"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@opencode-ai/plugin": "^1.3.15",
File without changes