@gjsify/rolldown-plugin-gjsify 0.4.13 → 0.4.15

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.
@@ -1,5 +1,10 @@
1
1
  export const GJS_PROCESS_STUB = 'if(typeof globalThis.process==="undefined"){' +
2
2
  'const _s=imports.system,_G=imports.gi.GLib;' +
3
+ // process.hrtime needs a `.bigint` property attached to the function
4
+ // itself (Node API shape: `process.hrtime.bigint()` — used by execa,
5
+ // perf-tracking libs, …). Build it as a named local so we can
6
+ // attach the property before stashing it on the stub object.
7
+ 'const _h=t=>t?[0,0]:[0,0];_h.bigint=()=>0n;' +
3
8
  'globalThis.process={' +
4
9
  'platform:"linux",arch:"x64",version:"v20.0.0",' +
5
10
  'env:new Proxy({},{' +
@@ -17,7 +22,7 @@ export const GJS_PROCESS_STUB = 'if(typeof globalThis.process==="undefined"){' +
17
22
  'stderr:{write(s){printerr(s)}},stdout:{write(s){print(s)}},stdin:null,' +
18
23
  'exitCode:undefined,' +
19
24
  'nextTick(fn,...a){Promise.resolve().then(()=>fn(...a))},' +
20
- 'hrtime(t){return t?[0,0]:[0,0]},' +
25
+ 'hrtime:_h,' +
21
26
  '};' +
22
27
  '}';
23
28
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gjsify/rolldown-plugin-gjsify",
3
- "version": "0.4.13",
3
+ "version": "0.4.15",
4
4
  "description": "Rolldown / Rollup / Vite plugin orchestrator for GJS, Node, and Browser targets",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -45,11 +45,11 @@
45
45
  ],
46
46
  "license": "MIT",
47
47
  "dependencies": {
48
- "@gjsify/console": "^0.4.13",
49
- "@gjsify/resolve-npm": "^0.4.13",
50
- "@gjsify/rolldown-plugin-deepkit": "^0.4.13",
51
- "@gjsify/rolldown-plugin-pnp": "^0.4.13",
52
- "@gjsify/vite-plugin-blueprint": "^0.4.13",
48
+ "@gjsify/console": "^0.4.15",
49
+ "@gjsify/resolve-npm": "^0.4.15",
50
+ "@gjsify/rolldown-plugin-deepkit": "^0.4.15",
51
+ "@gjsify/rolldown-plugin-pnp": "^0.4.15",
52
+ "@gjsify/vite-plugin-blueprint": "^0.4.15",
53
53
  "@rollup/pluginutils": "^5.3.0",
54
54
  "acorn": "^8.16.0",
55
55
  "acorn-walk": "^8.3.5",
@@ -57,7 +57,7 @@
57
57
  "lightningcss": "^1.32.0"
58
58
  },
59
59
  "peerDependencies": {
60
- "@gjsify/lightningcss-native": "^0.4.13",
60
+ "@gjsify/lightningcss-native": "^0.4.15",
61
61
  "rolldown": "^1.0.0-rc.18"
62
62
  },
63
63
  "peerDependenciesMeta": {