Skip to content

Commit 1b87f12

Browse files
committed
Export FastlyPlugin
1 parent f038946 commit 1b87f12

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

package.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,18 @@
77
"type": "module",
88
"exports": {
99
".": {
10-
"types": "./types/index.d.ts",
11-
"default": "./types/index.js"
10+
"fastly": {
11+
"types": "./types/index.d.ts",
12+
"default": "./types/index.js"
13+
},
14+
"default": {
15+
"types": "./dist/index.d.ts",
16+
"default": "./dist/index.js"
17+
}
18+
},
19+
"./fastly-esbuild-plugin": {
20+
"types": "./dist/esbuild-plugins/fastlyPlugin.d.ts",
21+
"default": "./dist/esbuild-plugins/fastlyPlugin.js"
1222
}
1323
},
1424
"repository": {

src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { fastlyPlugin } from './esbuild-plugins/fastlyPlugin.js';
2+
3+
export { fastlyPlugin };

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"moduleResolution": "nodenext",
1010
"skipLibCheck": true,
1111
"forceConsistentCasingInFileNames": true,
12-
"allowJs": true
12+
"allowJs": true,
13+
"declaration": true
1314
},
1415
"include": [
1516
"src/**/*.ts",

0 commit comments

Comments
 (0)