Skip to content

Commit

Permalink
chore: Adjust webpack and Typescript config
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand Thiessen <[email protected]>
  • Loading branch information
susnux committed Sep 11, 2024
1 parent fbe479b commit faa6d9b
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 13 deletions.
10 changes: 9 additions & 1 deletion cypress/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
{
"extends": "../tsconfig.json",
"include": ["./**/*.ts"],
"include": ["../*.ts", "."],
"compilerOptions": {
"rootDir": "..",
"types": [
"cypress",
"dockerode",
"node"
]
}
}
23 changes: 11 additions & 12 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
{
"extends": "@vue/tsconfig/tsconfig.json",
"include": ["./src/**/*.ts"],
"include": ["./src"],
"compilerOptions": {
"types": ["cypress", "cypress-visual-regression", "node", "dockerode", "@nextcloud/typings"],
"target": "ESNext",
"module": "esnext",
"moduleResolution": "node",
// Allow ts to import js files
"allowJs": true,
"allowSyntheticDefaultImports": true,
"declaration": false,
"lib": [
"DOM",
"ESNext"
],
"rootDir": "src",
"noImplicitAny": false,
"resolveJsonModule": true,
"strict": true,
},
"ts-node": {
// these options are overrides used only by ts-node
// same as our --compilerOptions flag and our TS_NODE_COMPILER_OPTIONS environment variable
"compilerOptions": {
"module": "commonjs",
"module": "CommonJS",
"target": "ES2015",
"verbatimModuleSyntax": false
}
},
"vueCompilerOptions": {
"target": 2.7
}
}
5 changes: 5 additions & 0 deletions webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,9 @@ webpackConfig.plugins.push(...[
// Clean dist folder
webpackConfig.output.clean = true

webpackConfig.entry = {
init: path.resolve(path.join('src', 'init.ts')),
main: path.resolve(path.join('src', 'main.js')),
}

export default webpackConfig

0 comments on commit faa6d9b

Please sign in to comment.