Skip to content

Commit

Permalink
adding mjs build
Browse files Browse the repository at this point in the history
  • Loading branch information
iainnash committed Oct 20, 2023
1 parent a4fb8b0 commit aa023d3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 13 additions & 1 deletion packages/1155-contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,20 @@
"repository": "[email protected]:ourzora/zora-protocol.git",
"author": "Iain <[email protected]>",
"license": "MIT",
"main": "./dist/index.cjs",
"main": "./dist/index.js",
"types": "./dist/package/index.d.ts",
"exports": {
"./premint-api": {
"require": "./dist/premint-api.cjs",
"import": "./dist/premint-api.js",
"types": "./dist/package/premint-api.d.ts"
},
".": {
"require": "./dist/index.cjs",
"import": "./dist/index.js",
"types": "./dist/package/index.d.ts"
}
},
"type": "module",
"scripts": {
"test": "forge test",
Expand Down
2 changes: 1 addition & 1 deletion packages/1155-contracts/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ export default defineConfig({
sourcemap: true,
clean: true,
dts: false,
format: ['cjs'],
format: ['cjs', 'esm'],
onSuccess: 'tsc --emitDeclarationOnly --declaration --declarationMap'
})

0 comments on commit aa023d3

Please sign in to comment.