@gjsify/esbuild-plugin-gjsify 0.0.4 → 0.1.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.
package/README.md ADDED
@@ -0,0 +1,32 @@
1
+ # @gjsify/esbuild-plugin-gjsify
2
+
3
+ Main esbuild plugin for Gjsify. Handles Node.js to GJS module aliasing, CJS-ESM interop patching, and extension transforms.
4
+
5
+ Part of the [gjsify](https://github.com/gjsify/gjsify) project — Node.js and Web APIs for GJS (GNOME JavaScript).
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ npm install @gjsify/esbuild-plugin-gjsify
11
+ # or
12
+ yarn add @gjsify/esbuild-plugin-gjsify
13
+ ```
14
+
15
+ ## Usage
16
+
17
+ ```typescript
18
+ import { build } from 'esbuild';
19
+ import { gjsifyPlugin } from '@gjsify/esbuild-plugin-gjsify';
20
+
21
+ await build({
22
+ entryPoints: ['src/index.ts'],
23
+ bundle: true,
24
+ outfile: 'dist/index.js',
25
+ format: 'esm',
26
+ plugins: [gjsifyPlugin()],
27
+ });
28
+ ```
29
+
30
+ ## License
31
+
32
+ MIT