Skip to content
Snippets Groups Projects
Commit ddb35ea3 authored by Berend Sliedrecht's avatar Berend Sliedrecht
Browse files

Merge branch 'project-cleanup' into 'main'

chore: move more to root of project setup

See merge request !4
parents 3688dcb7 cb57e594
No related branches found
No related tags found
1 merge request!4chore: move more to root of project setup
{
"jsc": {
"preserveAllComments": true,
"parser": {
"syntax": "typescript",
"tsx": false,
"decorators": true
},
"transform": {
"legacyDecorator": true,
"decoratorMetadata": true
},
"target": "es2022"
},
"module": {
"type": "es6"
},
"sourceMaps": true,
"exclude": [".spec.ts", ".e2e-spec.ts"]
}
/** @type {import('jest').Config} */
import { readFileSync } from 'node:fs'; import { readFileSync } from 'node:fs';
const swcConfig = JSON.parse(readFileSync('./.swcrc', 'utf8')); const swcConfig = JSON.parse(readFileSync('../../.swcrc', 'utf8'));
/** @type {import('jest').Config} */
export default { export default {
moduleFileExtensions: ['js', 'ts'], moduleFileExtensions: ['js', 'ts'],
testEnvironment: 'node', testEnvironment: 'node',
transform: { transform: {
'^.+\\.ts$': [ '^.+\\.(js|ts)$': [
'@swc/jest', '@swc/jest',
{ {
...swcConfig, ...swcConfig,
......
{ {
"$schema": "https://json.schemastore.org/nest-cli",
"collection": "@nestjs/schematics", "collection": "@nestjs/schematics",
"sourceRoot": "src", "sourceRoot": "src",
"compilerOptions": { "compilerOptions": {
"builder": "swc", "builder": {
"typeCheck": true "type": "swc",
"options": {
"swcrcPath": "../../.swcrc"
}
}
} }
} }
{ {
"extends": "./tsconfig.json", "extends": "../../tsconfig.build.json",
"compilerOptions": { "compilerOptions": {
"removeComments": false,
"declaration": true,
"sourceMap": true,
"incremental": true,
"baseUrl": ".", "baseUrl": ".",
"outDir": "./dist", "outDir": "./dist",
"rootDir": "./src" "rootDir": "./src"
}, },
"exclude": ["node_modules", "test", "dist", "**/*spec.ts"] "exclude": ["node_modules", "**/test", "**/dist", "**/*spec.ts"]
} }
{ {
"extends": "./tsconfig.json", "extends": "../../tsconfig.production.json",
"compilerOptions": { "compilerOptions": {
"composite": false,
"removeComments": true,
"declaration": false,
"sourceMap": false,
"baseUrl": ".", "baseUrl": ".",
"outDir": "./dist", "outDir": "./dist",
"rootDir": "./src" "rootDir": "./src"
}, },
"exclude": ["node_modules", "dist", "**/*spec.ts"] "exclude": ["node_modules", "**/test", "**/dist", "**/*spec.ts"]
} }
...@@ -9,10 +9,10 @@ importers: ...@@ -9,10 +9,10 @@ importers:
.: .:
devDependencies: devDependencies:
'@commitlint/cli': '@commitlint/cli':
specifier: ^18.4.3 specifier: ^18.4.2
version: 18.4.3(typescript@5.3.2) version: 18.4.3(typescript@5.3.2)
'@commitlint/config-conventional': '@commitlint/config-conventional':
specifier: ^18.4.3 specifier: ^18.4.2
version: 18.4.3 version: 18.4.3
'@typescript-eslint/eslint-plugin': '@typescript-eslint/eslint-plugin':
specifier: ^6.12.0 specifier: ^6.12.0
......
{
"extends": "./tsconfig.json",
"compilerOptions": {
"removeComments": false,
"declaration": true,
"sourceMap": true,
"incremental": true
},
"exclude": ["node_modules", "**/test", "**/dist", "**/__tests__", "**/*.spec.ts"]
}
{
"extends": "./tsconfig.build.json",
"compilerOptions": {
"composite": false,
"removeComments": true,
"declaration": false,
"sourceMap": false
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment