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

Commit 48a859b

Browse files
authored
Fix Memo program ESM exports (#3507)
* Fix Memo program ESM exports * fix repository link * web3.js is a peer dependency * memo/ts -> memo/js (same as token) * add gh-pages dev dep * fix version * check in package-lock.json * remove editorconfig
1 parent c5db9ce commit 48a859b

23 files changed

+25672
-4237
lines changed

memo/js/.eslintignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1-
lib
21
docs
2+
lib
3+
test-ledger
4+
5+
package-lock.json

memo/js/.eslintrc

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"root": true,
3+
"extends": [
4+
"eslint:recommended",
5+
"plugin:@typescript-eslint/recommended",
6+
"plugin:prettier/recommended"
7+
],
8+
"parser": "@typescript-eslint/parser",
9+
"plugins": [
10+
"@typescript-eslint",
11+
"prettier"
12+
],
13+
"rules": {
14+
"@typescript-eslint/ban-ts-comment": "off",
15+
"@typescript-eslint/no-explicit-any": "off",
16+
"@typescript-eslint/no-unused-vars": "off",
17+
"@typescript-eslint/no-empty-interface": "off",
18+
"@typescript-eslint/consistent-type-imports": "error"
19+
}
20+
}

memo/js/.eslintrc.cjs

-12
This file was deleted.

memo/js/.gitignore

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,13 @@
1-
lib
1+
.idea
2+
.vscode
3+
.DS_Store
4+
5+
node_modules
6+
7+
pnpm-lock.yaml
8+
yarn.lock
9+
210
docs
11+
lib
12+
test-ledger
13+
*.tsbuildinfo

memo/js/.nojekyll

Whitespace-only changes.

memo/js/.prettierignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
docs
2+
lib
3+
test-ledger
4+
5+
package-lock.json

memo/js/.prettierrc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"printWidth": 120,
3+
"trailingComma": "es5",
4+
"tabWidth": 4,
5+
"semi": true,
6+
"singleQuote": true
7+
}

memo/js/.prettierrc.yaml

-6
This file was deleted.

memo/js/README.md

+13-4
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,20 @@ A TypeScript library for interacting with the SPL Memo program.
1111
## Install
1212

1313
```shell
14-
yarn add @solana/spl-memo
14+
npm install --save @solana/spl-memo @solana/web3.js
15+
```
16+
_OR_
17+
```shell
18+
yarn add @solana/spl-memo @solana/web3.js
1519
```
1620

1721
## Build from Source
1822

23+
0. Prerequisites
24+
25+
* Node 16+
26+
* NPM 8+
27+
1928
1. Clone the project:
2029
```shell
2130
git clone https://github.com/solana-labs/solana-program-library.git
@@ -28,15 +37,15 @@ cd solana-program-library/memo/js
2837

2938
3. Install the dependencies:
3039
```shell
31-
yarn install
40+
npm install
3241
```
3342

3443
4. Build the library:
3544
```shell
36-
yarn build
45+
npm run build
3746
```
3847

3948
5. Run the tests:
4049
```shell
41-
yarn test
50+
npm run test
4251
```

memo/js/jest.config.cjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
22
module.exports = {
3-
preset: 'ts-jest',
4-
testEnvironment: 'node',
3+
preset: 'ts-jest',
4+
testEnvironment: 'node',
55
};

0 commit comments

Comments
 (0)