Skip to content

Commit

Permalink
chore: update Nx to latest (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
beeman authored Sep 9, 2022
1 parent bacaeeb commit 9beb26c
Show file tree
Hide file tree
Showing 25 changed files with 1,720 additions and 695 deletions.
2 changes: 1 addition & 1 deletion jest.config.js → jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { getJestProjects } = require('@nrwl/jest');

module.exports = {
export default {
projects: getJestProjects(),
};
2 changes: 1 addition & 1 deletion jest.preset.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const nxPreset = require('@nrwl/jest/preset');
const nxPreset = require('@nrwl/jest/preset').default;

module.exports = { ...nxPreset };
20 changes: 11 additions & 9 deletions nx.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
{
"extends": "@nrwl/workspace/presets/npm.json",
"extends": "nx/presets/npm.json",
"npmScope": "kin-tools",
"affected": {
"defaultBase": "master"
},
"tasksRunnerOptions": {
"default": {
"runner": "@nrwl/workspace/tasks-runners/default",
"runner": "@nrwl/nx-cloud",
"options": {
"cacheableOperations": [
"build",
"lint",
"test",
"e2e"
],
"parallel": 1
"cacheableOperations": ["build", "lint", "test", "e2e"],
"parallel": 1,
"accessToken": "NDQ4Y2VmMmEtNjIwMy00NTYwLWJmZDAtZDBiOWE0MTRmYzgzfHJlYWQtd3JpdGU="
}
}
},
"cli": {
"defaultCollection": "@nrwl/workspace"
},
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"targetDefaults": {
"build": {
"dependsOn": ["^build"]
}
}
}
44 changes: 23 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,36 @@
"scripts": {},
"private": true,
"dependencies": {
"@kin-kinetic/keypair": "^1.0.0-beta.16",
"@solana/spl-token": "^0.2.0",
"@solana/web3.js": "^1.34.0",
"@kin-kinetic/keypair": "^1.0.0-rc.0",
"@solana/spl-token": "^0.3.4",
"@solana/web3.js": "^1.59.1",
"atob": "^2.1.2",
"bs58": "^5.0.0",
"crc": "^4.1.1",
"hex-to-32": "^2.0.0",
"tslib": "^2.0.0"
"tslib": "^2.4.0"
},
"devDependencies": {
"@nrwl/cli": "13.8.1",
"@nrwl/eslint-plugin-nx": "13.8.1",
"@nrwl/jest": "13.8.1",
"@nrwl/js": "13.8.1",
"@nrwl/linter": "13.8.1",
"@nrwl/node": "13.8.1",
"@nrwl/tao": "13.8.1",
"@nrwl/workspace": "13.8.1",
"@types/jest": "27.0.2",
"@types/node": "14.14.33",
"@typescript-eslint/eslint-plugin": "5.10.2",
"@typescript-eslint/parser": "5.10.2",
"eslint": "8.7.0",
"@nrwl/cli": "14.6.5",
"@nrwl/eslint-plugin-nx": "14.6.5",
"@nrwl/jest": "14.6.5",
"@nrwl/js": "14.6.5",
"@nrwl/linter": "14.6.5",
"@nrwl/node": "14.6.5",
"@nrwl/nx-cloud": "14.6.2",
"@nrwl/workspace": "14.6.5",
"@types/jest": "28.1.8",
"@types/node": "18.7.1",
"@typescript-eslint/eslint-plugin": "5.33.1",
"@typescript-eslint/parser": "5.33.1",
"eslint": "8.15.0",
"eslint-config-prettier": "8.1.0",
"jest": "27.2.3",
"jest": "28.1.3",
"nx": "14.6.5",
"nxpm": "^2.0.0",
"prettier": "2.5.1",
"ts-jest": "27.0.5",
"typescript": "~4.3.5"
"prettier": "2.7.1",
"ts-jest": "28.0.8",
"ts-node": "10.9.1",
"typescript": "4.7.4"
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
module.exports = {
/* eslint-disable */
export default {
displayName: 'keypair-compat',
preset: '../../jest.preset.js',
globals: {
Expand Down
6 changes: 3 additions & 3 deletions packages/keypair-compat/project.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"root": "packages/keypair-compat",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "packages/keypair-compat/src",
"projectType": "library",
"targets": {
"build": {
"executor": "@nrwl/node:package",
"executor": "@nrwl/js:tsc",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/packages/keypair-compat",
Expand All @@ -25,7 +25,7 @@
"executor": "@nrwl/jest:jest",
"outputs": ["coverage/packages/keypair-compat"],
"options": {
"jestConfig": "packages/keypair-compat/jest.config.js",
"jestConfig": "packages/keypair-compat/jest.config.ts",
"passWithNoTests": true
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/keypair-compat/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"declaration": true,
"types": ["node"]
},
"exclude": ["**/*.spec.ts", "**/*.test.ts"],
"exclude": ["**/*.spec.ts", "**/*.test.ts", "jest.config.ts"],
"include": ["**/*.ts"]
}
3 changes: 2 additions & 1 deletion packages/keypair-compat/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"**/*.spec.js",
"**/*.test.jsx",
"**/*.spec.jsx",
"**/*.d.ts"
"**/*.d.ts",
"jest.config.ts"
]
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
module.exports = {
/* eslint-disable */
export default {
displayName: 'kin-burn',
preset: '../../jest.preset.js',
globals: {
Expand Down
6 changes: 3 additions & 3 deletions packages/kin-burn/project.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"root": "packages/kin-burn",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "packages/kin-burn/src",
"projectType": "library",
"targets": {
"build": {
"executor": "@nrwl/node:package",
"executor": "@nrwl/js:tsc",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/packages/kin-burn",
Expand All @@ -25,7 +25,7 @@
"executor": "@nrwl/jest:jest",
"outputs": ["coverage/packages/kin-burn"],
"options": {
"jestConfig": "packages/kin-burn/jest.config.js",
"jestConfig": "packages/kin-burn/jest.config.ts",
"passWithNoTests": true
}
}
Expand Down
3 changes: 2 additions & 1 deletion packages/kin-burn/src/lib/kin-burn.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { KIN_MINT_MAINNET } from '@kin-tools/kin-transaction';
import { clusterApiUrl, Connection, PublicKey } from '@solana/web3.js';

const KIN_MINT_MAINNET = 'kinXdEcpDQeHPEuQnqmUgtYykqKGVFq6CeVX5iAHJq6';

export interface BurnSummary {
burnt: number;
max: number;
Expand Down
2 changes: 1 addition & 1 deletion packages/kin-burn/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"declaration": true,
"types": ["node"]
},
"exclude": ["**/*.spec.ts", "**/*.test.ts"],
"exclude": ["**/*.spec.ts", "**/*.test.ts", "jest.config.ts"],
"include": ["**/*.ts"]
}
3 changes: 2 additions & 1 deletion packages/kin-burn/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"**/*.spec.js",
"**/*.test.jsx",
"**/*.spec.jsx",
"**/*.d.ts"
"**/*.d.ts",
"jest.config.ts"
]
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
module.exports = {
/* eslint-disable */
export default {
displayName: 'kin-memo',
preset: '../../jest.preset.js',
globals: {
Expand Down
6 changes: 3 additions & 3 deletions packages/kin-memo/project.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"root": "packages/kin-memo",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "packages/kin-memo/src",
"projectType": "library",
"targets": {
"build": {
"executor": "@nrwl/node:package",
"executor": "@nrwl/js:tsc",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/packages/kin-memo",
Expand All @@ -25,7 +25,7 @@
"executor": "@nrwl/jest:jest",
"outputs": ["coverage/packages/kin-memo"],
"options": {
"jestConfig": "packages/kin-memo/jest.config.js",
"jestConfig": "packages/kin-memo/jest.config.ts",
"passWithNoTests": true
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/kin-memo/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"declaration": true,
"types": ["node"]
},
"exclude": ["**/*.spec.ts", "**/*.test.ts"],
"exclude": ["**/*.spec.ts", "**/*.test.ts", "jest.config.ts"],
"include": ["**/*.ts"]
}
3 changes: 2 additions & 1 deletion packages/kin-memo/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"**/*.spec.js",
"**/*.test.jsx",
"**/*.spec.jsx",
"**/*.d.ts"
"**/*.d.ts",
"jest.config.ts"
]
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
module.exports = {
/* eslint-disable */
export default {
displayName: 'kin-transaction',
preset: '../../jest.preset.js',
globals: {
Expand Down
6 changes: 3 additions & 3 deletions packages/kin-transaction/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"name": "@kin-tools/kin-transaction",
"version": "1.7.1",
"peerDependencies": {
"@kin-tools/kin-memo": "^1.1.0",
"@solana/web3.js": "^1.34.0",
"@solana/spl-token": "^0.2.0"
"@kin-tools/kin-memo": "^1.7.1",
"@solana/web3.js": "^1.59.1",
"@solana/spl-token": "^0.3.4"
},
"license": "MIT"
}
6 changes: 3 additions & 3 deletions packages/kin-transaction/project.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"root": "packages/kin-transaction",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "packages/kin-transaction/src",
"projectType": "library",
"targets": {
"build": {
"executor": "@nrwl/node:package",
"executor": "@nrwl/js:tsc",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/packages/kin-transaction",
Expand All @@ -25,7 +25,7 @@
"executor": "@nrwl/jest:jest",
"outputs": ["coverage/packages/kin-transaction"],
"options": {
"jestConfig": "packages/kin-transaction/jest.config.js",
"jestConfig": "packages/kin-transaction/jest.config.ts",
"passWithNoTests": true
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { TransactionType } from '@kin-tools/kin-memo';
import { MEMO_V1_TOKEN_ID } from '@kin-tools/kin-transaction';
import { generateKinMemoInstruction } from './generate-kin-memo-instruction';
import { TransactionType } from '@kin-tools/kin-memo'
import { MEMO_V1_TOKEN_ID } from '../constants'
import { generateKinMemoInstruction } from './generate-kin-memo-instruction'

describe('generateMemoInstruction', () => {
it('should create a Memo Instruction', async () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/kin-transaction/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"declaration": true,
"types": ["node"]
},
"exclude": ["**/*.spec.ts", "**/*.test.ts"],
"exclude": ["**/*.spec.ts", "**/*.test.ts", "jest.config.ts"],
"include": ["**/*.ts"]
}
3 changes: 2 additions & 1 deletion packages/kin-transaction/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"**/*.spec.js",
"**/*.test.jsx",
"**/*.spec.jsx",
"**/*.d.ts"
"**/*.d.ts",
"jest.config.ts"
]
}
3 changes: 2 additions & 1 deletion workspace.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
"kin-burn": "packages/kin-burn",
"kin-memo": "packages/kin-memo",
"kin-transaction": "packages/kin-transaction"
}
},
"$schema": "./node_modules/nx/schemas/workspace-schema.json"
}
Loading

0 comments on commit 9beb26c

Please sign in to comment.