@vividcodeai/embeddedcowork 0.0.18 → 0.0.19

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.
Files changed (2) hide show
  1. package/bin/cli.js +4 -4
  2. package/package.json +3 -2
package/bin/cli.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
- const { spawn } = require("child_process")
3
- const path = require("path")
4
- const fs = require("fs")
2
+ import { spawn } from "child_process"
3
+ import path from "path"
4
+ import fs from "fs"
5
5
 
6
6
  const platformMap = {
7
7
  "darwin-x64": "@vividcodeai/embeddedcowork-darwin-x64",
@@ -35,7 +35,7 @@ function findBinary(startDir) {
35
35
  }
36
36
  }
37
37
 
38
- const scriptDir = path.dirname(fs.realpathSync(__filename))
38
+ const scriptDir = import.meta.dirname
39
39
  const binPath = findBinary(scriptDir)
40
40
 
41
41
  if (!binPath) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vividcodeai/embeddedcowork",
3
- "version": "0.0.18",
3
+ "version": "0.0.19",
4
4
  "description": "EmbeddedCowork Server",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -19,13 +19,14 @@
19
19
  "type": "module",
20
20
  "bin": {
21
21
  "embeddedCowork": "bin/cli.js",
22
+ "embeddedcowork-server": "bin/cli.js",
23
+ "eco": "bin/cli.js",
22
24
  "embcowork": "bin/cli.js"
23
25
  },
24
26
  "scripts": {
25
27
  "build": "npm run build:ui && npm run prepare-ui && tsc -p tsconfig.json && node ./scripts/copy-auth-pages.mjs && npm run prepare-config",
26
28
  "build:standalone": "node ./scripts/build-standalone.mjs",
27
29
  "build:platforms": "node ./scripts/build-platforms.mjs",
28
- "build:node": "node ./scripts/build-node.mjs",
29
30
  "build:ui": "npm run build --prefix ../ui",
30
31
  "prepare-ui": "node ./scripts/copy-ui-dist.mjs",
31
32
  "prepare-config": "node ./scripts/copy-opencode-config.mjs",