Skip to content

Commit

Permalink
chore: fix-inferred-tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanbas21 committed Jan 31, 2025
1 parent f9d154d commit ae11958
Show file tree
Hide file tree
Showing 25 changed files with 49 additions and 298 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ node_modules
pnpm-lock.yaml
packages/*/docs
packages/*/coverage
*tsconfig.tsbuildinfo*

2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- run: git branch --track main origin/main

- run: pnpm exec nx-cloud record -- nx format:check
- run: pnpm exec nx affected -t typecheck build lint test docs e2e-ci
- run: pnpm exec nx affected -t build typecheck lint test docs e2e-ci

- uses: codecov/codecov-action@v5
with:
Expand Down
5 changes: 1 addition & 4 deletions e2e/davinci-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
},
"devDependencies": {},
"scripts": {
"build": "nx exec -- vite build --watch false",
"serve": "vite dev",
"preview": "vite preview",
"lint": "nx exec -- eslint **/*.ts --fix"
"lint": "eslint **/*.ts --fix"
}
}
3 changes: 0 additions & 3 deletions e2e/davinci-app/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
"useDefineForClassFields": true,
"lib": ["ESNext", "DOM"],
"strict": true,
"resolveJsonModule": true,
"moduleDetection": "force",
"verbatimModuleSyntax": true,
"isolatedModules": true,
"esModuleInterop": true,
"noUnusedLocals": true,
Expand Down
1 change: 1 addition & 0 deletions e2e/mock-api-v2/.eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ dist
.eslintignore
coverage
html/*
*tsconfig.tsbuildinfo*
7 changes: 1 addition & 6 deletions e2e/mock-api-v2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,7 @@
"type": "commonjs",
"scripts": {
"build": "tsc --project tsconfig.app.json",
"build:watch": "tsc --project tsconfig.app.json --watch",
"serve": "node dist/e2e/mock-api-v2/src/main.js",
"serve:dev": "nodemon dist/e2e/mock-api-v2/src/main.js",
"test": "vitest",
"test:watch": "vitest watch --coverage --coverage.reportsDirectory=../../coverage/mock-api-v2",
"lint": "nx exec -- eslint --fix --ignore-path .eslintignore \"**/*.ts\""
"build:watch": "tsc --project tsconfig.app.json --watch"
},
"dependencies": {
"@effect/language-service": "^0.2.0",
Expand Down
10 changes: 2 additions & 8 deletions e2e/mock-api-v2/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,11 @@
"module": "NodeNext",
"moduleResolution": "NodeNext",
"target": "ES2020",
"types": [
"vitest/vitest",
"vitest/globals",
"vitest/importMeta",
"vite/client",
"node"
]
"types": ["vitest/globals", "vitest/importMeta", "vite/client", "node"]
},
"include": [
"src/**/*.ts",
"vite.config.ts",
"vite.config.mts",
"vitest.config.ts",
"src/**/*.test.ts",
"src/**/*.spec.ts",
Expand Down
File renamed without changes.
25 changes: 14 additions & 11 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
},
"targetDefaults": {
"typecheck": {
"dependsOn": ["build", "^build"]
"outputs": ["{projectRoot}/out-tsc"],
"dependsOn": ["^typecheck"]
},
"docs": {
"dependsOn": ["build", "^build", "^docs"],
Expand All @@ -26,7 +27,7 @@
"e2e": {
"dependsOn": ["^e2e"],
"inputs": ["noMarkdown", "^noMarkdown"],
"outputs": ["{projectRoot}/./.playwright"],
"outputs": ["{projectRoot}/.playwright"],
"cache": true
},
"lint": {
Expand All @@ -37,13 +38,13 @@
"test": {
"inputs": ["noMarkdown", "^noMarkdown"],
"dependsOn": ["^test"],
"outputs": ["{projectRoot}/./coverage"],
"outputs": ["{projectRoot}/coverage"],
"cache": true
},
"build": {
"inputs": ["noMarkdown", "^noMarkdown"],
"dependsOn": ["^build"],
"outputs": ["{projectRoot}/./dist"],
"outputs": ["{projectRoot}/dist"],
"cache": true
},
"e2e-ci--**/*": {
Expand Down Expand Up @@ -80,6 +81,9 @@
"cache": true
}
},
"sync": {
"applyChanges": true
},
"plugins": [
{
"plugin": "@nx/js/typescript",
Expand All @@ -91,21 +95,23 @@
"targetName": "build",
"configName": "tsconfig.lib.json"
}
}
},
"include": ["e2e/**/**/*", "packages/**/**/*"]
},
{
"plugin": "@nx/playwright/plugin",
"options": {
"ciTargetName": "e2e-ci",
"targetName": "e2e"
}
},
"include": ["e2e/**/**/*"]
},
{
"plugin": "@nx/eslint/plugin",
"options": {
"targetName": "lint"
},
"include": ["tools/create-package/**/*", "packages/**/**/*"]
"include": ["e2e/**/**/*", "packages/**/**/*"]
},
{
"plugin": "@nx/vite/plugin",
Expand All @@ -117,17 +123,14 @@
"serveStaticTargetName": "serve-static",
"typecheckTargetName": "typecheck"
},
"include": ["tools/create-package/**/*"]
"include": ["packages/**/**/*", "e2e/**/**/*"]
}
],
"parallel": 1,
"workspaceLayout": {
"appsDir": "",
"libsDir": ""
},
"sync": {
"applyChanges": true
},
"generators": {
"@nx/js:library": {
"publishable": true,
Expand Down
1 change: 1 addition & 0 deletions packages/davinci-client/.eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ dist
docs
coverage
vite.config.*.timestamp*
*tsconfig.tsbuildinfo*
2 changes: 1 addition & 1 deletion packages/davinci-client/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"parser": "jsonc-eslint-parser",
"rules": {
"@nx/dependency-checks": [
"error",
"warn",
{
"ignoredFiles": ["{projectRoot}/vite.config.{js,ts,mjs,mts}"]
}
Expand Down
10 changes: 3 additions & 7 deletions packages/davinci-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,13 @@
"@reduxjs/toolkit": "catalog:",
"immer": "catalog:"
},
"devDependencies": {
"vitest": "3.0.4"
},
"exports": {
".": "./dist/src/index.js",
"./types": "./dist/src/types.d.ts"
},
"scripts": {
"build": "nx exec -- tsc --project ./tsconfig.lib.json",
"test": "nx exec -- vitest --typecheck",
"test:watch": "vitest --watch",
"test:coverage": "nx exec -- vitest --coverage",
"lint": "nx exec -- eslint **/*.ts --fix"
},
"nx": {
"tags": ["scope:package"],
"targets": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const obj = {
export const obj = {
interactionId: '18fa40b7-0eb8-4a5c-803c-d3f3f807ed46',
companyId: '02fb4743-189a-4bc7-9d6c-a919edfe6447',
connectionId: '8209285e0d2f3fc76bfd23fd10d45e6f',
Expand Down
3 changes: 2 additions & 1 deletion packages/davinci-client/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true
"noFallthroughCasesInSwitch": true,
"resolveJsonModule": true
},
"references": [
{
Expand Down
1 change: 1 addition & 0 deletions packages/davinci-client/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"vite.config.ts",
"src/**/*.spec.ts",
"src/**/*.test.ts",
"src/**/*.test-d.ts",
"src/lib/mock-data/*"
]
}
9 changes: 2 additions & 7 deletions packages/davinci-client/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,9 @@
"outDir": "../../dist/out-tsc",
"composite": true,
"moduleResolution": "NodeNext",
"resolveJsonModule": true,
"target": "ESNext",
"types": [
"vitest/vitest",
"vitest/globals",
"vitest/importMeta",
"vite/client",
"node"
]
"types": ["vitest/globals", "vitest/importMeta", "vite/client", "node"]
},
"include": [
"src/**/*.ts",
Expand Down
8 changes: 0 additions & 8 deletions packages/davinci-client/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { defineConfig } from 'vite';
import dts from 'vite-plugin-dts';
import * as path from 'path';
import * as pkg from './package.json';
import { codecovVitePlugin } from '@codecov/vite-plugin';

export default defineConfig({
Expand Down Expand Up @@ -32,13 +31,6 @@ export default defineConfig({
preserveModules: true,
preserveModulesRoot: 'src',
},
external: Array.from(Object.keys(pkg.dependencies) || []).concat([
'./src/lib/mock-data/*',
'@reduxjs/toolkit/query',
'@forgerock/javascript-sdk',
'@forgerock/javascript-sdk/src/oauth2-client/state-pkce',
'javascript-sdk',
]),
},
lib: {
entry: 'src/index.ts',
Expand Down
1 change: 1 addition & 0 deletions packages/device-client/.eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ dist
docs
coverage
vite.config.*.timestamp*
*tsconfig.tsbuildinfo*
2 changes: 1 addition & 1 deletion packages/device-client/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"parser": "jsonc-eslint-parser",
"rules": {
"@nx/dependency-checks": [
"error",
"warn",
{
"ignoredFiles": [
"{projectRoot}/eslint.config.{js,cjs,mjs}",
Expand Down
10 changes: 1 addition & 9 deletions packages/device-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,11 @@
"files": ["./dist"],
"dependencies": {
"@reduxjs/toolkit": "catalog:",
"@forgerock/javascript-sdk": "4.6.0",
"immer": "catalog:"
"@forgerock/javascript-sdk": "4.6.0"
},
"devDependencies": {
"msw": "^2.5.1"
},
"scripts": {
"build": "nx exec -- tsc --project ./tsconfig.lib.json",
"test": "vitest",
"test:watch": "vitest --watch",
"test:coverage": "vitest --coverage",
"lint": "nx exec -- eslint **/*.ts --fix"
},
"nx": {
"targets": {
"build": {
Expand Down
8 changes: 1 addition & 7 deletions packages/device-client/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,7 @@
"moduleResolution": "NodeNext",
"target": "ESNext",
"outDir": "../../dist/out-tsc",
"types": [
"vitest/vitest",
"vitest/globals",
"vitest/importMeta",
"vite/client",
"node"
]
"types": ["vitest/globals", "vitest/importMeta", "vite/client", "node"]
},
"include": [
"vite.config.ts",
Expand Down
9 changes: 5 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ae11958

Please sign in to comment.