forked from ourzora/zora-protocol
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support CommonJS by properly setting the
exports
field and using `.…
…npmignore` to filter out filtes to ignore (ourzora#225) * Revert "Revert "Adding exports to protocol-sdk package.json (ourzora#214)" (ourzora#223)" This reverts commit 8a87809. * added npm ignore * applied exports fixes to other dependent package
- Loading branch information
Showing
13 changed files
with
90 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"@zoralabs/protocol-deployments": patch | ||
"@zoralabs/zora-1155-contracts": patch | ||
"@zoralabs/protocol-sdk": patch | ||
--- | ||
|
||
Publishing package in format that supports commonjs imports by specifying exports |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# this defines what should be ignored | ||
# for npm publishing. it overrides the .gitignore | ||
# for npm publishing. We need this to be defined separately | ||
# so we can include the dist folder. | ||
tsconfig.build.json | ||
**/*test-integration | ||
**/*.test.ts | ||
.turbo | ||
tsup.config.ts | ||
**/*.env* | ||
wagmi.config.ts | ||
cache | ||
lcov.info | ||
.storage-layout | ||
**/*.puml | ||
**/*.sh | ||
test | ||
out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,18 @@ | |
"repository": "[email protected]:ourzora/zora-protocol.git", | ||
"author": "Iain <[email protected]>", | ||
"license": "MIT", | ||
"main": "./dist/index.js", | ||
"types": "./dist/package/index.d.ts", | ||
"type": "module", | ||
"main": "./dist/index.cjs", | ||
"module": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"sideEffects": false, | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.js", | ||
"default": "./dist/index.cjs" | ||
} | ||
}, | ||
"scripts": { | ||
"dev": "FOUNDRY_PROFILE=dev forge test --watch -vvv", | ||
"test": "forge test -vv", | ||
|
@@ -25,16 +34,6 @@ | |
"storage-inspect:generate": "./script/storage-check.sh generate ZoraCreator1155Impl ZoraCreator1155FactoryImpl", | ||
"update-contract-version": "node script/update-contract-version.mjs" | ||
}, | ||
"files": [ | ||
"dist/", | ||
"src/", | ||
"out/", | ||
"addresses/", | ||
"chainConfigs/", | ||
"package/", | ||
"abis/", | ||
"_imagine/" | ||
], | ||
"dependencies": { | ||
"solmate": "6.1.0", | ||
"forge-std": "https://github.com/foundry-rs/forge-std#705263c95892a906d7af65f0f73ce8a4a0c80b80", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"extends": "zoralabs-tsconfig/tsconfig.json", | ||
"compilerOptions": { | ||
"lib": ["es2021", "DOM"], | ||
"baseUrl": ".", | ||
"outDir": "dist" | ||
}, | ||
"exclude": ["node_modules/**", "dist/**"], | ||
"include": ["package/**/*.ts"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
import { defineConfig } from 'tsup' | ||
import { defineConfig } from "tsup"; | ||
|
||
export default defineConfig({ | ||
entry: ['package/index.ts'], | ||
entry: ["package/index.ts"], | ||
sourcemap: true, | ||
clean: true, | ||
dts: false, | ||
format: ['cjs', 'esm'], | ||
onSuccess: 'tsc --emitDeclarationOnly --declaration --declarationMap' | ||
}) | ||
format: ["cjs", "esm"], | ||
onSuccess: | ||
"tsc --project tsconfig.build.json --emitDeclarationOnly --declaration --declarationMap", | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
scripts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"extends": "zoralabs-tsconfig/tsconfig.json", | ||
"compilerOptions": { | ||
"lib": ["es2021", "DOM"], | ||
"baseUrl": ".", | ||
"outDir": "dist" | ||
}, | ||
"exclude": ["node_modules/**", "dist/**"], | ||
"include": ["src/**/*.ts"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
src/anvil.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters