alchemy 2.0.0-beta.6 → 2.0.0-beta.cli-platform-split

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alchemy",
3
- "version": "2.0.0-beta.6",
3
+ "version": "2.0.0-beta.cli-platform-split",
4
4
  "homepage": "https://alchemy.run",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Sam Goodwin <sam@alchemy.run>",
@@ -9,9 +9,6 @@
9
9
  "url": "git+https://github.com/alchemy-run/alchemy-effect.git",
10
10
  "directory": "alchemy"
11
11
  },
12
- "bin": {
13
- "alchemy": "bin/alchemy.sh"
14
- },
15
12
  "files": [
16
13
  "bin",
17
14
  "lib",
@@ -195,11 +192,16 @@
195
192
  "bun": "./src/Util/index.ts",
196
193
  "worker": "./src/Util/index.ts",
197
194
  "import": "./lib/Util/index.js"
198
- }
195
+ },
196
+ "./bin/alchemy.js": "./bin/alchemy.js"
199
197
  },
200
198
  "publishConfig": {
201
199
  "access": "public"
202
200
  },
201
+ "optionalDependencies": {
202
+ "@alchemy.run/cli-posix": "0.0.1",
203
+ "@alchemy.run/cli-win32": "0.0.1"
204
+ },
203
205
  "dependencies": {
204
206
  "@clack/prompts": "^0.11.0",
205
207
  "@ai-sdk/anthropic": "^3.0.31",
@@ -1165,16 +1165,7 @@ export const WorkerProvider = () =>
1165
1165
  cloudflareRolldown({
1166
1166
  compatibilityDate:
1167
1167
  props.compatibility?.date ?? defaultCompatibilityDate,
1168
- compatibilityFlags: props.compatibility?.flags
1169
- ? [
1170
- ...props.compatibility.flags,
1171
- ...(props.isExternal ? [] : ["nodejs_compat"]),
1172
- ].filter(
1173
- (value, index, self) => self.indexOf(value) === index,
1174
- )
1175
- : props.isExternal
1176
- ? []
1177
- : ["nodejs_compat"],
1168
+ compatibilityFlags: props.compatibility?.flags,
1178
1169
  }),
1179
1170
  plugins,
1180
1171
  ...(props.build?.metafile ? [Sonda({ open: false })] : []),
package/bin/alchemy.sh DELETED
@@ -1,13 +0,0 @@
1
- #!/bin/sh
2
- # Resolve symlink to find the real bin directory
3
- link="$(readlink "$0")"
4
- if [ -n "$link" ]; then
5
- dir="$(cd "$(dirname "$0")" && cd "$(dirname "$link")" && pwd)"
6
- else
7
- dir="$(cd "$(dirname "$0")" && pwd)"
8
- fi
9
- if command -v bun >/dev/null 2>&1; then
10
- exec bun "$dir/alchemy.js" "$@"
11
- else
12
- exec node "$dir/alchemy.js" "$@"
13
- fi