@gjsify/example-node-cli-esbuild-plugin-transform-ext 0.1.3

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/README.md +19 -0
  2. package/package.json +23 -0
package/README.md ADDED
@@ -0,0 +1,19 @@
1
+ # @gjsify/example-cli-esbuild-plugin-transform-ext
2
+
3
+ This example demonstrates the usage of the esbuild plugin `@gjsify/esbuild-plugin-transform-ext`.
4
+
5
+ input:
6
+ ```ts
7
+ import { a } from './a.ts';
8
+ import { b } from './b.ts';
9
+ a();
10
+ b();
11
+ ```
12
+
13
+ output:
14
+ ```js
15
+ import { a } from "./a.js";
16
+ import { b } from "./b.js";
17
+ a();
18
+ b();
19
+ ```
package/package.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "@gjsify/example-node-cli-esbuild-plugin-transform-ext",
3
+ "version": "0.1.3",
4
+ "description": "",
5
+ "main": "dist/index.js",
6
+ "type": "module",
7
+ "files": [
8
+ "dist"
9
+ ],
10
+ "scripts": {
11
+ "clear": "rm -rf dist",
12
+ "check": "tsc --noEmit",
13
+ "start": "node dist/index.js",
14
+ "build": "node esbuild.mjs",
15
+ "test": "yarn start"
16
+ },
17
+ "devDependencies": {
18
+ "@gjsify/esbuild-plugin-transform-ext": "^0.1.3",
19
+ "typescript": "^6.0.2"
20
+ },
21
+ "author": "Pascal Garber <pascal@artandcode.studio>",
22
+ "license": "MIT"
23
+ }