Skip to content

Commit 4a5d36f

Browse files
committed
fix: linter reference incorrect
the linter for demo-app was incorrect pointing out to packages folder indead of apps. BREAKING CHANGE: N
1 parent 5ff1dbf commit 4a5d36f

File tree

4 files changed

+12
-13
lines changed

4 files changed

+12
-13
lines changed

apps/demo-app/.eslintrc.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
],
88
"parser": "@typescript-eslint/parser",
99
"parserOptions": {
10-
"project": ["packages/demo-app/tsconfig.*?.json"],
10+
"project": ["apps/demo-app/tsconfig.*?.json"],
1111
"ecmaVersion": 2021,
1212
"sourceType": "module",
1313
"ecmaFeatures": {

apps/demo-app/project.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "demo-app",
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"projectType": "application",
5-
"sourceRoot": "packages/demo-app/src",
5+
"sourceRoot": "apps/demo-app/src",
66
"targets": {
77
"build": {
88
"executor": "qwik-nx:build",
@@ -11,7 +11,7 @@
1111
"demo-app:build.client",
1212
"demo-app:build.ssr"
1313
],
14-
"outputPath": "dist/packages/demo-app"
14+
"outputPath": "dist/apps/demo-app"
1515
},
1616
"configurations": {
1717
"preview": {}
@@ -20,15 +20,15 @@
2020
"build.client": {
2121
"executor": "@nrwl/vite:build",
2222
"options": {
23-
"outputPath": "dist/packages/demo-app",
24-
"configFile": "packages/demo-app/vite.config.ts"
23+
"outputPath": "dist/apps/demo-app",
24+
"configFile": "apps/demo-app/vite.config.ts"
2525
}
2626
},
2727
"build.ssr": {
2828
"executor": "@nrwl/vite:build",
2929
"defaultConfiguration": "preview",
3030
"options": {
31-
"outputPath": "dist/packages/demo-app"
31+
"outputPath": "dist/apps/demo-app"
3232
},
3333
"configurations": {
3434
"preview": {
@@ -45,10 +45,10 @@
4545
},
4646
"test": {
4747
"executor": "@nrwl/vite:test",
48-
"outputs": ["../../coverage/packages/demo-app"],
48+
"outputs": ["../../coverage/apps/demo-app"],
4949
"options": {
5050
"passWithNoTests": true,
51-
"reportsDirectory": "../../coverage/packages/demo-app"
51+
"reportsDirectory": "../../coverage/apps/demo-app"
5252
}
5353
},
5454
"serve": {
@@ -62,14 +62,14 @@
6262
"executor": "nx:run-commands",
6363
"options": {
6464
"command": "node --inspect-brk ../../node_modules/vite/bin/vite.js --mode ssr --force",
65-
"cwd": "packages/demo-app"
65+
"cwd": "apps/demo-app"
6666
}
6767
},
6868
"lint": {
6969
"executor": "@nrwl/linter:eslint",
7070
"outputs": ["{options.outputFile}"],
7171
"options": {
72-
"lintFilePatterns": ["packages/demo-app/**/*.{ts,tsx,js,jsx}"]
72+
"lintFilePatterns": ["apps/demo-app/**/*.{ts,tsx,js,jsx}"]
7373
}
7474
}
7575
},

apps/demo-app/vite.config.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ export default defineConfig({
1010
qwikCity(),
1111
qwikVite({
1212
client: {
13-
outDir: '../../dist/packages/demo-app/client',
13+
outDir: '../../dist/apps/demo-app/client',
1414
},
1515
ssr: {
16-
outDir: '../../dist/packages/demo-app/server',
16+
outDir: '../../dist/apps/demo-app/server',
1717
},
1818
}),
1919
tsconfigPaths({ root: '../../' }),

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"version": "0.0.1",
44
"license": "MIT",
55
"scripts": {
6-
"lint": "nx affected:lint --base=last-release",
76
"commit": "pnpx git-cz --disable-emoji",
87
"test": "nx test qwik-flow"
98
},

0 commit comments

Comments
 (0)