@gjsify/resolve-npm 0.5.2 → 0.6.0

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/lib/index.mjs +3 -2
  2. package/package.json +1 -1
package/lib/index.mjs CHANGED
@@ -325,8 +325,9 @@ export const ALIASES_NODE_FOR_NATIVESCRIPT = {
325
325
  'module': '@gjsify/module',
326
326
  'crypto': '@gjsify/crypto',
327
327
  'events': '@gjsify/events',
328
- 'fs': '@gjsify/fs',
329
- 'fs/promises': '@gjsify/fs/promises',
328
+ // @gjsify/fs uses gi://Gio (GJS-only). On NS, route to the native bridge.
329
+ 'fs': '@gjsify/native-fs-bridge',
330
+ 'fs/promises': '@gjsify/native-fs-bridge',
330
331
  'os': '@gjsify/os',
331
332
  'path': '@gjsify/path',
332
333
  'path/posix': '@gjsify/path/posix',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gjsify/resolve-npm",
3
- "version": "0.5.2",
3
+ "version": "0.6.0",
4
4
  "description": "Resolve NPM package aliases",
5
5
  "type": "module",
6
6
  "main": "lib/index.mjs",