Skip to content

Commit e7aef8f

Browse files
committed
add microbundle
1 parent a763c74 commit e7aef8f

File tree

2 files changed

+3559
-32
lines changed

2 files changed

+3559
-32
lines changed

package.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,26 @@
22
"name": "@reecem/custom-type-api",
33
"version": "0.1.1",
44
"description": "API interface for the Prismic.io Custom Type API (beta)",
5-
"main": "dist/index.js",
5+
"type": "module",
6+
"source": "src/index.ts",
7+
"main": "./dist/index.cjs",
8+
"module": "./dist/index.mjs",
69
"scripts": {
710
"test": "echo \"Error: no test specified\" && exit 1",
8-
"build": "tsc --build tsconfig.json"
11+
"build": "microbundle",
12+
"dev": "microbundle watch",
13+
"tsc-build": "tsc --build tsconfig.json"
914
},
1015
"keywords": [
1116
"prismic.io",
12-
"custom-type"
17+
"custom-types",
18+
"slices"
1319
],
1420
"author": "ReeceM",
1521
"license": "ISC",
1622
"devDependencies": {
1723
"@types/node-fetch": "^2.5.10",
24+
"microbundle": "^0.13.3",
1825
"typescript": "^4.2.4"
1926
},
2027
"dependencies": {

0 commit comments

Comments
 (0)