Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 65f5b10

Browse files
authored
spl-token: fix CJS imports (#3529)
* token-js: patch version bump * add CJS package.json; fixes #3522 * alpha version bump * remove alpha version * add same postbuild step to memo js * fix lockfiles
1 parent 2fe0ce6 commit 65f5b10

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

memo/js/package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

memo/js/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@solana/spl-memo",
33
"description": "SPL Memo Program JS API",
4-
"version": "0.2.1",
4+
"version": "0.2.2",
55
"author": "Solana Maintainers <[email protected]>",
66
"repository": "https://github.com/solana-labs/solana-program-library",
77
"license": "Apache-2.0",
@@ -32,6 +32,7 @@
3232
"reinstall": "npm run nuke && npm install",
3333
"clean": "shx rm -rf lib **/*.tsbuildinfo || true",
3434
"build": "tsc --build --verbose tsconfig.all.json",
35+
"postbuild": "shx echo '{ \"type\": \"commonjs\" }' > lib/cjs/package.json",
3536
"watch": "tsc --build --verbose --watch tsconfig.all.json",
3637
"release": "npm run clean && npm run build",
3738
"fmt": "prettier --write '{*,**/*}.{ts,tsx,js,jsx,json}'",

token/js/package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

token/js/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@solana/spl-token",
33
"description": "SPL Token Program JS API",
4-
"version": "0.3.2",
4+
"version": "0.3.4",
55
"author": "Solana Maintainers <[email protected]>",
66
"repository": "https://github.com/solana-labs/solana-program-library",
77
"license": "Apache-2.0",
@@ -32,6 +32,7 @@
3232
"reinstall": "npm run nuke && npm install",
3333
"clean": "shx rm -rf lib **/*.tsbuildinfo || true",
3434
"build": "tsc --build --verbose tsconfig.all.json",
35+
"postbuild": "shx echo '{ \"type\": \"commonjs\" }' > lib/cjs/package.json",
3536
"watch": "tsc --build --verbose --watch tsconfig.all.json",
3637
"release": "npm run clean && npm run build",
3738
"fmt": "prettier --write '{*,**/*}.{ts,tsx,js,jsx,json}'",

0 commit comments

Comments
 (0)