Skip to content

Commit

Permalink
Fix: Contain amd build in library
Browse files Browse the repository at this point in the history
  • Loading branch information
kaisalmen committed Apr 6, 2022
1 parent 15cdf18 commit dadde1b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,14 @@
".": {
"default": "./lib/index.js",
"types": "./lib/index.d.ts"
},
"./amd": {
"default": "./dist/amd/index.js",
"types": "./dist/amd/index.d.ts"
}
},
"files": [
"dist/amd",
"lib",
"src"
],
Expand All @@ -43,7 +48,7 @@
"compile": "tsc",
"watch": "tsc -w",
"clean:amd": "npx shx rm -fr dist",
"build:amd": "npm run clean:amd && tsc --outDir dist/amd --module amd",
"build:amd": "npm run clean:amd && tsc --outDir dist/amd --module amd --declarationDir dist/amd --declaration",
"build": "npm run clean && npm run compile && npm run build:amd"
}
}

0 comments on commit dadde1b

Please sign in to comment.