@gjsify/create-app 0.1.8 → 0.1.10

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": "@gjsify/create-app",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "description": "Create a new Gjsify project",
5
5
  "type": "module",
6
6
  "main": "lib/create.js",
@@ -34,7 +34,7 @@
34
34
  "yargs": "^18.0.0"
35
35
  },
36
36
  "devDependencies": {
37
- "@types/node": "^25.5.2",
37
+ "@types/node": "^25.6.0",
38
38
  "@types/yargs": "^17.0.35",
39
39
  "typescript": "^6.0.2"
40
40
  }
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "new-gjsify-app",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "type": "module",
5
5
  "private": true,
6
6
  "scripts": {
7
7
  "check": "tsc --noEmit",
8
- "build": "gjsify build src/index.ts --outfile dist/index.js --globals fetch,Buffer,process,URL,crypto,structuredClone,AbortController",
8
+ "build": "gjsify build src/index.ts --outfile dist/index.js",
9
9
  "start": "gjsify run dist/index.js",
10
- "dev": "gjsify build src/index.ts --outfile dist/index.js --globals fetch,Buffer,process,URL,crypto,structuredClone,AbortController && gjsify run dist/index.js"
10
+ "dev": "gjsify build src/index.ts --outfile dist/index.js && gjsify run dist/index.js"
11
11
  },
12
12
  "devDependencies": {
13
- "@gjsify/cli": "^0.1.8",
14
- "@types/node": "^25.5.2",
13
+ "@gjsify/cli": "^0.1.10",
14
+ "@types/node": "^25.6.0",
15
15
  "typescript": "^6.0.2"
16
16
  },
17
17
  "dependencies": {
18
- "@girs/gtk-4.0": "^4.23.0-4.0.0-rc.1"
18
+ "@girs/gtk-4.0": "^4.23.0-4.0.0-rc.2"
19
19
  }
20
20
  }
@@ -1,9 +1,7 @@
1
1
  import Gtk from 'gi://Gtk?version=4.0'
2
2
 
3
- // Globals injected via --globals in the build script:
4
- // process → Node.js process API (@gjsify/process)
5
- // crypto → Web Crypto API (@gjsify/webcrypto)
6
- // Buffer → Node.js Buffer API (@gjsify/buffer)
3
+ // Globals (process, crypto, Buffer, etc.) are automatically detected
4
+ // and injected by `gjsify build` via --globals auto (the default).
7
5
 
8
6
  const app = new Gtk.Application({
9
7
  applicationId: 'org.gjsify.example',