From 068bcad08b1c1e792dd420a3173e77f230c26152 Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Mon, 14 Jul 2025 02:57:01 +0300 Subject: [PATCH] fix: use node-modules linker (#87) --- .gitignore | 5 +++++ .yarnrc.yml | 1 + README.md | 12 ++++++++++++ package.json | 2 ++ tsconfig.app.json | 3 +++ tsconfig.eslint.json | 5 ++++- tsconfig.node.json | 1 + 7 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .yarnrc.yml diff --git a/.gitignore b/.gitignore index 8ee54e8..f66bf7f 100644 --- a/.gitignore +++ b/.gitignore @@ -28,3 +28,8 @@ coverage *.sw? *.tsbuildinfo + +# Yarn +.yarn/ +yarn.lock +.pnp.* diff --git a/.yarnrc.yml b/.yarnrc.yml new file mode 100644 index 0000000..3186f3f --- /dev/null +++ b/.yarnrc.yml @@ -0,0 +1 @@ +nodeLinker: node-modules diff --git a/README.md b/README.md index 937d2a2..391fe26 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,18 @@ This Vue 3 app generates templates for sysvinit services. 7. ??? 8. Profit! +## Development + +Install dependencies and run the dev server with Yarn: + +```bash +yarn install +yarn dev + +# build the app +yarn build +``` + ## License This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. diff --git a/package.json b/package.json index 7091f90..6c71589 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "@vue/eslint-config-prettier": "^10", "@vue/eslint-config-typescript": "^14", "@vue/tsconfig": "^0.7.0", + "@vue/typescript-plugin": "^3.0.1", "eslint": "^9", "eslint-plugin-vue": "^10", "npm-run-all2": "^8.0.0", @@ -35,6 +36,7 @@ "typescript": "~5.8.0", "vite": "^6", "vite-plugin-vue-devtools": "^7.0.18", + "vue-eslint-parser": "^10.2.0", "vue-tsc": "^3.0.0" } } diff --git a/tsconfig.app.json b/tsconfig.app.json index 370e6d9..aa075dd 100644 --- a/tsconfig.app.json +++ b/tsconfig.app.json @@ -18,5 +18,8 @@ "./src/*" ] } + }, + "vueCompilerOptions": { + "plugins": ["@vue/typescript-plugin"] } } diff --git a/tsconfig.eslint.json b/tsconfig.eslint.json index 9fc1f66..bc7901d 100644 --- a/tsconfig.eslint.json +++ b/tsconfig.eslint.json @@ -10,5 +10,8 @@ ], "exclude": [ "node_modules" - ] + ], + "compilerOptions": { + "lib": ["es2023"] + } } diff --git a/tsconfig.node.json b/tsconfig.node.json index c19b51e..9d0a04e 100644 --- a/tsconfig.node.json +++ b/tsconfig.node.json @@ -11,6 +11,7 @@ "composite": true, "noEmit": true, "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo", + "lib": ["es2023"], "module": "ESNext", "moduleResolution": "Bundler", "types": [