Skip to content

Commit

Permalink
chore: fix dependencies and test
Browse files Browse the repository at this point in the history
  • Loading branch information
tinesoft committed Aug 16, 2023
1 parent 741a502 commit 098dcc9
Show file tree
Hide file tree
Showing 19 changed files with 22 additions and 81 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build": "nx run-many --target build --parallel 4 --exclude smoke",
"test": "nx run-many --target test --parallel 4 --exclude smoke",
"e2e": "ts-node -P ./tools/tsconfig.tools.json ./tools/scripts/run-all-e2e-tests.ts",
"lint": "nx run-many --target=lint --parallel 4 --exclude smoke",
"lint": "nx run-many --target=lint --fix --parallel 4 --exclude smoke",
"affected:build": "nx affected:build --exclude=smoke",
"affected:e2e": "nx affected:e2e --exclude=smoke",
"affected:test": "nx affected:test --exclude=smoke",
Expand All @@ -20,7 +20,7 @@
"run-migrate": "nx migrate --run-migrations'",
"graph": "nx graph",
"help": "nx help",
"release": "DEBUG=true nx run-many --target semantic-release --exclude=smoke --verbose",
"release": "DEBUG=true nx run-many --target semantic-release --exclude=smoke --verbose",
"prepare": "husky install",
"smoke": "FORCE_SMOKE_TESTS=true nx test smoke",
"smoke-keep": "KEEP_SMOKE_TESTS_DIR=true smoke"
Expand Down
4 changes: 2 additions & 2 deletions packages/common/testing/e2e/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function exists(filePath: string): boolean {
return directoryExists(filePath) || fileExists(filePath);
}

export function runNxCommand(command: string, pkgManagerExec = 'npx', opts: ExecSyncOptions = { cwd: tmpProjPath(), env: process.env, stdio: 'inherit' }) {
export function runNxCommand(command: string, pkgManagerExec = 'npx', opts: ExecSyncOptions = { cwd: tmpProjPath(), env: process.env, stdio: 'pipe' }) {
return {
stdout: execSync(`${pkgManagerExec} nx ${command}`, {
cwd: opts.cwd,
Expand All @@ -83,7 +83,7 @@ export function runNxCommand(command: string, pkgManagerExec = 'npx', opts: Exec
};
}

export async function runNxCommandAsync(command: string, pkgManagerExec = 'npx', opts: ExecSyncOptions = { cwd: tmpProjPath(), env: process.env, stdio: 'inherit' }) {
export async function runNxCommandAsync(command: string, pkgManagerExec = 'npx', opts: ExecSyncOptions = { cwd: tmpProjPath(), env: process.env, stdio: 'pipe' }) {
return runNxCommand(command, pkgManagerExec, opts);
}

Expand Down
11 changes: 1 addition & 10 deletions packages/nx-flutter/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,7 @@
"files": ["./package.json", "./generators.json", "./executors.json"],
"parser": "jsonc-eslint-parser",
"rules": {
"@nx/dependency-checks": [
"error",
{
"buildTargets": ["build"],
"checkMissingDependencies": true,
"checkObsoleteDependencies": true,
"checkVersionMismatches": true,
"ignoredDependencies": []
}
]
"@nx/dependency-checks": "error"
}
}
]
Expand Down
4 changes: 2 additions & 2 deletions packages/nx-flutter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
"dart"
],
"dependencies": {
"js-yaml": "4.1.0",
"@nxrocks/common": "*",
"enquirer": "^2.4.1",
"tslib": "^2.3.0"
"js-yaml": "^4.1.0",
"tslib": "^2.6.1"
},
"typings": "./src/index.d.ts",
"peerDependencies": {
Expand Down
11 changes: 1 addition & 10 deletions packages/nx-ktor/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,7 @@
"files": ["./package.json", "./generators.json", "./executors.json"],
"parser": "jsonc-eslint-parser",
"rules": {
"@nx/dependency-checks": [
"error",
{
"buildTargets": ["build"],
"checkMissingDependencies": true,
"checkObsoleteDependencies": true,
"checkVersionMismatches": true,
"ignoredDependencies": []
}
]
"@nx/dependency-checks": "error"
}
}
]
Expand Down
4 changes: 2 additions & 2 deletions packages/nx-ktor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
"kotlin"
],
"dependencies": {
"node-fetch": "^2.6.12",
"@nxrocks/common": "*",
"node-fetch": "^2.6.12",
"enquirer": "^2.4.1",
"tslib": "^2.3.0"
"tslib": "^2.6.1"
},
"typings": "./src/index.d.ts",
"peerDependencies": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { logger } from '@nx/devkit';
import { mocked } from 'jest-mock';

import { buildImageExecutor } from './executor';
import { BuildImageExecutorOptions } from './schema';
Expand Down
1 change: 0 additions & 1 deletion packages/nx-ktor/src/executors/build/executor.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { logger } from '@nx/devkit';
import { mocked } from 'jest-mock';

import { buildExecutor } from './executor';
import { BuildExecutorOptions } from './schema';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { logger } from '@nx/devkit';
import { mocked } from 'jest-mock';

import { publishImageLocallyExecutor } from './executor';
import { PublishImageLocallyExecutorOptions } from './schema';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { logger } from '@nx/devkit';
import { mocked } from 'jest-mock';

import { publishImageExecutor } from './executor';
import { PublishImageExecutorOptions } from './schema';
Expand Down
1 change: 0 additions & 1 deletion packages/nx-ktor/src/executors/run-docker/executor.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { logger } from '@nx/devkit';
import { mocked } from 'jest-mock';

import { runDockerExecutor } from './executor';
import { RunDockerExecutorOptions } from './schema';
Expand Down
11 changes: 1 addition & 10 deletions packages/nx-melos/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,7 @@
"files": ["./package.json", "./generators.json", "./executors.json"],
"parser": "jsonc-eslint-parser",
"rules": {
"@nx/dependency-checks": [
"error",
{
"buildTargets": ["build"],
"checkMissingDependencies": true,
"checkObsoleteDependencies": true,
"checkVersionMismatches": true,
"ignoredDependencies": []
}
]
"@nx/dependency-checks": "error"
}
}
]
Expand Down
4 changes: 2 additions & 2 deletions packages/nx-melos/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@
],
"dependencies": {
"@nxrocks/common": "*",
"nx": "16.6.0",
"tslib": "^2.3.0"
"tslib": "^2.6.1"
},
"typings": "./src/index.d.ts",
"peerDependencies": {
"nx": ">=16.0.0",
"@nx/devkit": ">=16.0.0",
"@nx/workspace": ">=16.0.0"
}
Expand Down
11 changes: 1 addition & 10 deletions packages/nx-micronaut/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,7 @@
"files": ["./package.json", "./generators.json", "./executors.json"],
"parser": "jsonc-eslint-parser",
"rules": {
"@nx/dependency-checks": [
"error",
{
"buildTargets": ["build"],
"checkMissingDependencies": true,
"checkObsoleteDependencies": true,
"checkVersionMismatches": true,
"ignoredDependencies": []
}
]
"@nx/dependency-checks": "error"
}
}
]
Expand Down
4 changes: 2 additions & 2 deletions packages/nx-micronaut/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
"native"
],
"dependencies": {
"node-fetch": "^2.6.12",
"@nxrocks/common": "*",
"node-fetch": "^2.6.12",
"enquirer": "^2.4.1",
"tslib": "^2.3.0"
"tslib": "^2.6.1"
},
"typings": "./src/index.d.ts",
"peerDependencies": {
Expand Down
11 changes: 1 addition & 10 deletions packages/nx-quarkus/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,7 @@
"files": ["./package.json", "./generators.json", "./executors.json"],
"parser": "jsonc-eslint-parser",
"rules": {
"@nx/dependency-checks": [
"error",
{
"buildTargets": ["build"],
"checkMissingDependencies": true,
"checkObsoleteDependencies": true,
"checkVersionMismatches": true,
"ignoredDependencies": []
}
]
"@nx/dependency-checks": "error"
}
}
]
Expand Down
4 changes: 2 additions & 2 deletions packages/nx-quarkus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
"native"
],
"dependencies": {
"node-fetch": "^2.6.12",
"@nxrocks/common": "*",
"node-fetch": "^2.6.12",
"enquirer": "^2.4.1",
"tslib": "^2.3.0"
"tslib": "^2.6.1"
},
"typings": "./src/index.d.ts",
"peerDependencies": {
Expand Down
11 changes: 1 addition & 10 deletions packages/nx-spring-boot/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,7 @@
"files": ["./package.json", "./generators.json", "./executors.json"],
"parser": "jsonc-eslint-parser",
"rules": {
"@nx/dependency-checks": [
"error",
{
"buildTargets": ["build"],
"checkMissingDependencies": true,
"checkObsoleteDependencies": true,
"checkVersionMismatches": true,
"ignoredDependencies": []
}
]
"@nx/dependency-checks": "error"
}
}
]
Expand Down
4 changes: 2 additions & 2 deletions packages/nx-spring-boot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
"java"
],
"dependencies": {
"node-fetch": "^2.6.12",
"@nxrocks/common": "*",
"node-fetch": "^2.6.12",
"enquirer": "^2.4.1",
"tslib": "^2.3.0"
"tslib": "^2.6.1"
},
"typings": "./src/index.d.ts",
"peerDependencies": {
Expand Down

0 comments on commit 098dcc9

Please sign in to comment.