@gapi/gcli 1.8.209 → 1.8.211

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/README.md CHANGED
@@ -347,3 +347,11 @@ For a complete list of commands and options, use the built-in help:
347
347
  gcli --help
348
348
  gcli lambda:create --help
349
349
  ```
350
+
351
+ ## Running in WebContainer using wasm
352
+
353
+ Install `esbuild-wasm` dependency inside your package.json if the project will be running in WebContainer
354
+
355
+ ```bash
356
+ npm install esbuild-wasm
357
+ ```
package/build.js CHANGED
@@ -5,7 +5,7 @@ require('esbuild')
5
5
  platform: 'node',
6
6
  target: 'node24',
7
7
  outfile: './release/index.js',
8
- external: ["esbuild-wasm"]
8
+ external: process.env.BINARY_BUILD ? [] : ["esbuild"]
9
9
  })
10
10
  .then((data) => console.log('SUCCESS', data))
11
11
  .catch((e) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gapi/gcli",
3
- "version": "1.8.209",
3
+ "version": "1.8.211",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/Stradivario/gapi.git"
@@ -64,16 +64,14 @@
64
64
  "typescript": "^5.9.3",
65
65
  "@anatine/esbuild-decorators": "^0.2.19",
66
66
  "@modelcontextprotocol/sdk": "^1.24.3",
67
- "esbuild": "^0.27.3",
68
- "esbuild-wasm": "^0.27.3"
69
- },
70
- "optionalDependencies": {
71
- "esbuild-wasm": "^0.27.3"
67
+ "esbuild": "^0.27.3"
72
68
  },
73
69
  "bin": {
74
70
  "gcli": "./release/index.js"
75
71
  },
76
- "dependencies": {},
72
+ "dependencies": {
73
+ "esbuild": "^0.27.3"
74
+ },
77
75
  "main": "./dist/index.js",
78
76
  "types": "./dist/index.d.ts",
79
77
  "module": "./dist/index.js",