Skip to content

Commit

Permalink
chore: update Nx (#53)
Browse files Browse the repository at this point in the history
* chore: update Nx

* chore: update dependencies
  • Loading branch information
beeman authored Apr 21, 2024
1 parent c256cc2 commit 7263a13
Show file tree
Hide file tree
Showing 15 changed files with 4,625 additions and 1,063 deletions.
12 changes: 11 additions & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@
"codeCoverage": true
}
}
},
"@nx/eslint:lint": {
"cache": true,
"inputs": [
"default",
"{workspaceRoot}/.eslintrc.json",
"{workspaceRoot}/.eslintignore",
"{workspaceRoot}/eslint.config.js"
]
}
},
"namedInputs": {
Expand All @@ -43,5 +52,6 @@
],
"sharedGlobals": []
},
"nxCloudAccessToken": "NDM1NDU0MDctNDhlNC00MTA0LTg0ZjQtZWFkYjg3NDA0OWQxfHJlYWQtd3JpdGU="
"nxCloudAccessToken": "NDM1NDU0MDctNDhlNC00MTA0LTg0ZjQtZWFkYjg3NDA0OWQxfHJlYWQtd3JpdGU=",
"useInferencePlugins": false
}
70 changes: 35 additions & 35 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,46 +18,46 @@
"private": true,
"dependencies": {
"@clack/prompts": "^0.7.0",
"@inquirer/prompts": "^3.2.0",
"@nx/devkit": "17.2.7",
"@solana/web3.js": "^1.90.0",
"@swc/helpers": "~0.5.2",
"@inquirer/prompts": "^4.3.0",
"@nx/devkit": "18.1.3",
"@solana/web3.js": "^1.91.1",
"@swc/helpers": "~0.5.7",
"commander": "^11.1.0",
"create-nx-workspace": "17.0.1",
"json-schema-to-typescript": "^13.1.1",
"ts-morph": "^21.0.1",
"tslib": "^2.3.0",
"create-nx-workspace": "18.1.3",
"json-schema-to-typescript": "^13.1.2",
"ts-morph": "^22.0.0",
"tslib": "^2.6.2",
"yargs": "^17.7.2"
},
"devDependencies": {
"@nx/eslint": "17.2.7",
"@nx/eslint-plugin": "17.2.7",
"@nx/jest": "17.2.7",
"@nx/js": "17.2.7",
"@nx/next": "17.2.7",
"@nx/plugin": "17.2.7",
"@nx/react": "17.2.7",
"@nx/webpack": "17.2.7",
"@nx/workspace": "17.2.7",
"@swc-node/register": "~1.6.7",
"@swc/cli": "~0.1.62",
"@swc/core": "~1.3.85",
"@types/jest": "^29.4.0",
"@types/node": "18.16.9",
"@typescript-eslint/eslint-plugin": "6.10.0",
"@typescript-eslint/parser": "6.10.0",
"eslint": "8.48.0",
"eslint-config-prettier": "^9.0.0",
"husky": "^8.0.3",
"jest": "^29.4.1",
"jest-environment-jsdom": "^29.4.1",
"lint-staged": "^15.0.2",
"nx": "17.2.7",
"@nx/eslint": "18.1.3",
"@nx/eslint-plugin": "18.1.3",
"@nx/jest": "18.1.3",
"@nx/js": "18.1.3",
"@nx/next": "18.1.3",
"@nx/plugin": "18.1.3",
"@nx/react": "18.1.3",
"@nx/webpack": "18.1.3",
"@nx/workspace": "18.1.3",
"@swc-node/register": "~1.9.0",
"@swc/cli": "~0.3.10",
"@swc/core": "~1.4.11",
"@types/jest": "^29.5.12",
"@types/node": "20.11.30",
"@typescript-eslint/eslint-plugin": "7.4.0",
"@typescript-eslint/parser": "7.4.0",
"eslint": "8.57.0",
"eslint-config-prettier": "^9.1.0",
"husky": "^9.0.11",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"lint-staged": "^15.2.2",
"nx": "18.1.3",
"prettier": "^2.6.2",
"ts-jest": "^29.1.0",
"ts-node": "^10.9.1",
"typescript": "5.2.2",
"verdaccio": "^5.0.4"
"ts-jest": "^29.1.2",
"ts-node": "^10.9.2",
"typescript": "5.3.3",
"verdaccio": "^5.30.2"
},
"lint-staged": {
"*.{js,json,css,scss,md,ts,tsx,html,graphql}": [
Expand Down
2 changes: 1 addition & 1 deletion packages/create-solana-dapp/bin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ async function main() {
},
dryRun: args.dryRun,
name: args.name,
nxCloud: false,
nxCloud: 'skip',
packageManager: args.packageManager,
ui: args.ui,
webName: args.webName,
Expand Down
4 changes: 2 additions & 2 deletions packages/preset-anchor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This library is a preset for [create-solana-dapp](https://npm.im/create-solana-d
### anchor-application

```bash
> NX generate @solana-developers/preset-anchor:anchor-application [name] [options,...]
NX generate @solana-developers/preset-anchor:anchor-application [name] [options,...]

From: @solana-developers/preset-anchor (v0.0.1)
Name: anchor-application (aliases: application, preset)
Expand All @@ -27,7 +27,7 @@ Options:
### anchor-template

```bash
> NX generate @solana-developers/preset-anchor:anchor-template [name] [options,...]
NX generate @solana-developers/preset-anchor:anchor-template [name] [options,...]

From: @solana-developers/preset-anchor (v0.0.1)
Name: anchor-template (aliases: template)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@ exports[`anchor-application generator should generate app with "basic" template
"},",
""type": "commonjs",",
""main": "./index.cjs",",
""module": "./index.js"",
""module": "./index.js",",
""private": true",
"}",
],
"isBinary": false,
Expand Down Expand Up @@ -290,8 +291,7 @@ exports[`anchor-application generator should generate app with "basic" template
"}",
"},",
""lint": {",
""executor": "@nx/eslint:lint",",
""outputs": ["{options.outputFile}"]",
""executor": "@nx/eslint:lint"",
"},",
""test": {",
""executor": "nx:run-commands",",
Expand Down Expand Up @@ -732,7 +732,8 @@ exports[`anchor-application generator should generate app with "counter" templat
"},",
""type": "commonjs",",
""main": "./index.cjs",",
""module": "./index.js"",
""module": "./index.js",",
""private": true",
"}",
],
"isBinary": false,
Expand Down Expand Up @@ -868,8 +869,7 @@ exports[`anchor-application generator should generate app with "counter" templat
"}",
"},",
""lint": {",
""executor": "@nx/eslint:lint",",
""outputs": ["{options.outputFile}"]",
""executor": "@nx/eslint:lint"",
"},",
""test": {",
""executor": "nx:run-commands",",
Expand Down
2 changes: 1 addition & 1 deletion packages/preset-common/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ presets.
### common-template

```bash
> NX generate @solana-developers/preset-common:common-template [name] [options,...]
NX generate @solana-developers/preset-common:common-template [name] [options,...]

From: @solana-developers/preset-common (v0.0.1)
Name: common-template
Expand Down
2 changes: 1 addition & 1 deletion packages/preset-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.1",
"description": "This library is a preset for create-solana-dapp with shared code for the other presets.",
"dependencies": {
"@nx/devkit": "17.2.7",
"@nx/devkit": "18.1.3",
"ts-morph": "^21.0.1",
"tslib": "^2.3.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/preset-next/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This library is a preset for [create-solana-dapp](https://npm.im/create-solana-d
### next-application

```bash
> NX generate @solana-developers/preset-next:next-application [name] [options,...]
NX generate @solana-developers/preset-next:next-application [name] [options,...]

From: @solana-developers/preset-next (v0.0.1)
Name: next-application (aliases: application, preset)
Expand All @@ -35,7 +35,7 @@ Options:
### next-template

```bash
> NX generate @solana-developers/preset-next:next-template [name] [options,...]
NX generate @solana-developers/preset-next:next-template [name] [options,...]

From: @solana-developers/preset-next (v0.0.1)
Name: next-template (aliases: template)
Expand Down
1 change: 1 addition & 0 deletions packages/preset-next/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ export default {
},
moduleFileExtensions: ['ts', 'js', 'html'],
coverageDirectory: '../../coverage/packages/preset-next',
testEnvironment: 'node',
}
Loading

0 comments on commit 7263a13

Please sign in to comment.