-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: better treeshaking support by using
packemon
(#105)
Co-authored-by: Wes Pickett <[email protected]>
- Loading branch information
1 parent
00a7b3e
commit fc74af1
Showing
14 changed files
with
2,640 additions
and
101 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,9 @@ | ||
--- | ||
'@coinbase/onchainkit': minor | ||
--- | ||
|
||
- **feat**: better treeshaking support by using **packemon**. By @zizzamia & @wespickett #105 | ||
|
||
BREAKING CHANGES | ||
|
||
For modern apps that utilize `ES2020` or the latest version, breaking changes are not anticipated. However, if you encounter any building issues when using OnchainKit with older apps that rely on `ES6`, please open an issue and provide details of the error you're experiencing. We will do our best to provide the necessary support. |
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 |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
|
||
# compiled output | ||
dist | ||
esm | ||
lib | ||
tmp | ||
/out-tsc | ||
|
||
|
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
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,14 +1,13 @@ | ||
{ | ||
"name": "@coinbase/onchainkit", | ||
"version": "0.5.4", | ||
"version": "0.5.3", | ||
"repository": "https://github.com/coinbase/onchainkit.git", | ||
"license": "MIT", | ||
"scripts": { | ||
"build": "tsc && tsc --module commonjs --outDir dist/lib", | ||
"build": "packemon build --addExports --addEngines --addFiles --declaration && npx packemon validate --no-license --no-people --no-repo", | ||
"check": "yarn format", | ||
"format": "prettier --log-level warn --write .", | ||
"format:check": "prettier --check .", | ||
"prebuild": "rimraf dist", | ||
"test": "jest --testPathIgnorePatterns=\\.integ\\.", | ||
"test:integration": "jest --testPathIgnorePatterns=\\.test\\.", | ||
"test:all": "jest .", | ||
|
@@ -36,6 +35,7 @@ | |
"jest": "^29.7.0", | ||
"jest-environment-jsdom": "^29.7.0", | ||
"jest-extended": "^4.0.2", | ||
"packemon": "^3.3.0", | ||
"prettier": "^3.1.1", | ||
"prettier-plugin-tailwindcss": "^0.5.9", | ||
"react": "^18", | ||
|
@@ -47,15 +47,41 @@ | |
"vitepress": "^1.0.0-rc.42", | ||
"yarn": "^1.22.21" | ||
}, | ||
"packemon": [ | ||
{ | ||
"format": [ | ||
"esm", | ||
"lib" | ||
], | ||
"platform": [ | ||
"browser" | ||
], | ||
"bundle": false | ||
} | ||
], | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"files": [ | ||
"esm/**/*", | ||
"lib/**/*", | ||
"src/", | ||
"dist/" | ||
"src/**/*" | ||
], | ||
"type": "commonjs", | ||
"main": "./dist/lib/index.js", | ||
"typings": "./dist/types/index.d.ts", | ||
"packageManager": "[email protected]" | ||
"main": "./lib/index.js", | ||
"types": "./lib/index.d.ts", | ||
"module": "./esm/index.js", | ||
"exports": { | ||
"./package.json": "./package.json", | ||
".": { | ||
"types": "./lib/index.d.ts", | ||
"browser": { | ||
"types": "./esm/index.d.ts", | ||
"module": "./esm/index.js", | ||
"import": "./esm/index.js", | ||
"default": "./lib/index.js" | ||
}, | ||
"default": "./lib/index.js" | ||
} | ||
} | ||
} |
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 +1 @@ | ||
export const version = '0.5.4'; | ||
export const version = '0.6.0'; |
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,9 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
"outDir": "esm" | ||
}, | ||
"include": [ | ||
"src" | ||
] | ||
} |
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,9 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
"outDir": "lib" | ||
}, | ||
"include": [ | ||
"src" | ||
] | ||
} |
Oops, something went wrong.