Skip to content

Commit 2b1126d

Browse files
authored
Use new JS renderer syncPackageJson and Prettier auto-resolve features (#63)
1 parent 11cfe70 commit 2b1126d

39 files changed

+3573
-4088
lines changed

.prettierrc

Lines changed: 0 additions & 9 deletions
This file was deleted.

clients/js/.eslintrc.cjs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
module.exports = {
2-
extends: ['@solana/eslint-config-solana'],
3-
ignorePatterns: ['.eslintrc.cjs', 'tsup.config.ts', 'env-shim.ts'],
4-
parserOptions: {
5-
project: 'tsconfig.json',
6-
tsconfigRootDir: __dirname,
7-
sourceType: 'module',
8-
},
9-
rules: {
10-
'@typescript-eslint/ban-types': 'off',
11-
'@typescript-eslint/sort-type-constituents': 'off',
12-
'prefer-destructuring': 'off',
13-
'simple-import-sort/imports': 'off',
14-
'sort-keys-fix/sort-keys-fix': 'off',
15-
'typescript-sort-keys/interface': 'off',
16-
},
2+
extends: ['@solana/eslint-config-solana'],
3+
ignorePatterns: ['.eslintrc.cjs', 'tsup.config.ts', 'env-shim.ts'],
4+
parserOptions: {
5+
project: 'tsconfig.json',
6+
tsconfigRootDir: __dirname,
7+
sourceType: 'module',
8+
},
9+
rules: {
10+
'@typescript-eslint/ban-types': 'off',
11+
'@typescript-eslint/sort-type-constituents': 'off',
12+
'prefer-destructuring': 'off',
13+
'simple-import-sort/imports': 'off',
14+
'sort-keys-fix/sort-keys-fix': 'off',
15+
'typescript-sort-keys/interface': 'off',
16+
},
1717
};

clients/js/.prettierrc.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

clients/js/package.json

Lines changed: 71 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,74 @@
11
{
2-
"name": "@solana-program/system",
3-
"version": "0.10.0",
4-
"description": "JavaScript client for the System program",
5-
"sideEffects": false,
6-
"module": "./dist/src/index.mjs",
7-
"main": "./dist/src/index.js",
8-
"types": "./dist/types/index.d.ts",
9-
"type": "commonjs",
10-
"exports": {
11-
".": {
12-
"types": "./dist/types/index.d.ts",
13-
"import": "./dist/src/index.mjs",
14-
"require": "./dist/src/index.js"
15-
}
16-
},
17-
"files": [
18-
"./dist/src",
19-
"./dist/types"
20-
],
21-
"scripts": {
22-
"build": "rimraf dist && tsup && tsc -p ./tsconfig.declarations.json",
23-
"build:docs": "typedoc",
24-
"test": "ava",
25-
"lint": "eslint --ext js,ts,tsx src",
26-
"lint:fix": "eslint --fix --ext js,ts,tsx src",
27-
"format": "prettier --check src test",
28-
"format:fix": "prettier --write src test",
29-
"prepublishOnly": "pnpm build"
30-
},
31-
"publishConfig": {
32-
"access": "public",
33-
"registry": "https://registry.npmjs.org"
34-
},
35-
"license": "Apache-2.0",
36-
"repository": {
37-
"type": "git",
38-
"url": "git+https://github.com/solana-program/system.git"
39-
},
40-
"bugs": {
41-
"url": "https://github.com/solana-program/system/issues"
42-
},
43-
"homepage": "https://github.com/solana-program/system#readme",
44-
"peerDependencies": {
45-
"@solana/kit": "^5.0"
46-
},
47-
"devDependencies": {
48-
"@ava/typescript": "^4.1.0",
49-
"@solana/eslint-config-solana": "^3.0.3",
50-
"@solana/kit": "^5.0",
51-
"@types/node": "^24",
52-
"@typescript-eslint/eslint-plugin": "^7.16.1",
53-
"@typescript-eslint/parser": "^7.16.1",
54-
"ava": "^6.1.3",
55-
"eslint": "^8.57.0",
56-
"prettier": "^3.6.2",
57-
"rimraf": "^5.0.5",
58-
"tsup": "^8.1.2",
59-
"typedoc": "^0.25.12",
60-
"typescript": "^5.5.3"
61-
},
62-
"ava": {
63-
"nodeArguments": [
64-
"--no-warnings"
2+
"name": "@solana-program/system",
3+
"version": "0.10.0",
4+
"description": "JavaScript client for the System program",
5+
"sideEffects": false,
6+
"module": "./dist/src/index.mjs",
7+
"main": "./dist/src/index.js",
8+
"types": "./dist/types/index.d.ts",
9+
"type": "commonjs",
10+
"exports": {
11+
".": {
12+
"types": "./dist/types/index.d.ts",
13+
"import": "./dist/src/index.mjs",
14+
"require": "./dist/src/index.js"
15+
}
16+
},
17+
"files": [
18+
"./dist/src",
19+
"./dist/types"
6520
],
66-
"typescript": {
67-
"compile": false,
68-
"rewritePaths": {
69-
"test/": "dist/test/"
70-
}
71-
}
72-
},
73-
"packageManager": "[email protected]"
21+
"scripts": {
22+
"build": "rimraf dist && tsup && tsc -p ./tsconfig.declarations.json",
23+
"build:docs": "typedoc",
24+
"test": "ava",
25+
"lint": "eslint --ext js,ts,tsx src",
26+
"lint:fix": "eslint --fix --ext js,ts,tsx src",
27+
"format": "prettier --check src test",
28+
"format:fix": "prettier --write src test",
29+
"prepublishOnly": "pnpm build"
30+
},
31+
"publishConfig": {
32+
"access": "public",
33+
"registry": "https://registry.npmjs.org"
34+
},
35+
"license": "Apache-2.0",
36+
"repository": {
37+
"type": "git",
38+
"url": "git+https://github.com/solana-program/system.git"
39+
},
40+
"bugs": {
41+
"url": "https://github.com/solana-program/system/issues"
42+
},
43+
"homepage": "https://github.com/solana-program/system#readme",
44+
"peerDependencies": {
45+
"@solana/kit": "^5.0"
46+
},
47+
"devDependencies": {
48+
"@ava/typescript": "^4.1.0",
49+
"@solana/eslint-config-solana": "^3.0.3",
50+
"@solana/kit": "^5.0",
51+
"@types/node": "^24",
52+
"@typescript-eslint/eslint-plugin": "^7.16.1",
53+
"@typescript-eslint/parser": "^7.16.1",
54+
"ava": "^6.1.3",
55+
"eslint": "^8.57.0",
56+
"prettier": "^3.7.4",
57+
"rimraf": "^5.0.5",
58+
"tsup": "^8.1.2",
59+
"typedoc": "^0.25.12",
60+
"typescript": "^5.5.3"
61+
},
62+
"ava": {
63+
"nodeArguments": [
64+
"--no-warnings"
65+
],
66+
"typescript": {
67+
"compile": false,
68+
"rewritePaths": {
69+
"test/": "dist/test/"
70+
}
71+
}
72+
},
73+
"packageManager": "[email protected]"
7474
}

clients/js/pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)