Skip to content

Commit e22de88

Browse files
committed
chore: migrate to ts project reference, new eslint config, and swc compiler
1 parent d337acf commit e22de88

File tree

156 files changed

+2020
-500
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

156 files changed

+2020
-500
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jobs:
2727

2828
- name: Setup Git
2929
run: |
30-
git config --global user.email semantic-release@github.com
31-
git config --global user.name "Semantic Release CI"
30+
git config user.name 'github-actions[bot]'
31+
git config user.email 'github-actions[bot]@users.noreply.github.com'
3232
3333
- name: Install node, bun, and dependencies
3434
uses: ./.github/actions/install-dependencies

.github/workflows/smoke-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
1515
npm_config_registry: http://localhost:4873
1616
YARN_REGISTRY: http://localhost:4873
17+
NODE_OPTIONS: '--max-old-space-size=32768'
1718
timeout-minutes: 60
1819
strategy:
1920
matrix:

.gitignore

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
# See http://help.github.com/ignore-files/ for more about ignoring files.
22

33
# compiled output
4-
/dist
4+
dist
55
tmp
6-
/out-tsc
7-
/bin
6+
out-tsc
87

98
# dependencies
10-
/node_modules
11-
.pnpm-store
9+
node_modules
1210

1311
# IDEs and editors
1412
/.idea

bun.lockb

2.67 KB
Binary file not shown.

e2e/nx-flutter-e2e/.spec.swcrc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"jsc": {
3+
"target": "es2017",
4+
"parser": {
5+
"syntax": "typescript",
6+
"decorators": true,
7+
"dynamicImport": true
8+
},
9+
"transform": {
10+
"decoratorMetadata": true,
11+
"legacyDecorator": true
12+
},
13+
"keepClassNames": true,
14+
"externalHelpers": true,
15+
"loose": true
16+
},
17+
"module": {
18+
"type": "es6"
19+
},
20+
"sourceMaps": true,
21+
"exclude": []
22+
}

e2e/nx-flutter-e2e/jest.config.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
11
/* eslint-disable */
2+
import { readFileSync } from 'fs';
3+
4+
// Reading the SWC compilation config for the spec files
5+
const swcJestConfig = JSON.parse(
6+
readFileSync(`${__dirname}/.spec.swcrc`, 'utf-8')
7+
);
8+
9+
// Disable .swcrc look-up by SWC core because we're passing in swcJestConfig ourselves
10+
swcJestConfig.swcrc = false;
11+
212
export default {
313
displayName: 'nx-flutter-e2e',
414
preset: '../../jest.preset.js',
515
transform: {
6-
'^.+\\.[tj]s$': ['ts-jest', { tsconfig: '<rootDir>/tsconfig.spec.json' }],
16+
'^.+\\.[tj]s$': ['@swc/jest', swcJestConfig],
717
},
818
moduleFileExtensions: ['ts', 'js', 'html'],
9-
coverageDirectory: '../../coverage/e2e/nx-flutter-e2e',
19+
coverageDirectory: 'test-output/jest/coverage',
1020
globalSetup: '../../tools/scripts/start-local-registry.ts',
1121
globalTeardown: '../../tools/scripts/stop-local-registry.ts',
1222
};

e2e/nx-flutter-e2e/tsconfig.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
"files": [],
44
"include": [],
55
"references": [
6+
{
7+
"path": "../../packages/common"
8+
},
9+
{
10+
"path": "../../packages/common-cli"
11+
},
612
{
713
"path": "./tsconfig.spec.json"
814
}

e2e/nx-flutter-e2e/tsconfig.spec.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
{
2-
"extends": "./tsconfig.json",
2+
"extends": "../../tsconfig.base.json",
33
"compilerOptions": {
4-
"outDir": "../../dist/out-tsc",
5-
"module": "commonjs",
4+
"outDir": "./out-tsc/jest",
65
"types": ["jest", "node"]
76
},
8-
"include": ["jest.config.ts", "**/*.test.ts", "**/*.spec.ts", "**/*.d.ts"]
7+
"include": [
8+
"jest.config.ts",
9+
"src/**/*.test.ts",
10+
"src/**/*.spec.ts",
11+
"src/**/*.d.ts"
12+
]
913
}

e2e/nx-ktor-e2e/.spec.swcrc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"jsc": {
3+
"target": "es2017",
4+
"parser": {
5+
"syntax": "typescript",
6+
"decorators": true,
7+
"dynamicImport": true
8+
},
9+
"transform": {
10+
"decoratorMetadata": true,
11+
"legacyDecorator": true
12+
},
13+
"keepClassNames": true,
14+
"externalHelpers": true,
15+
"loose": true
16+
},
17+
"module": {
18+
"type": "es6"
19+
},
20+
"sourceMaps": true,
21+
"exclude": []
22+
}

e2e/nx-ktor-e2e/jest.config.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
11
/* eslint-disable */
2+
import { readFileSync } from 'fs';
3+
4+
// Reading the SWC compilation config for the spec files
5+
const swcJestConfig = JSON.parse(
6+
readFileSync(`${__dirname}/.spec.swcrc`, 'utf-8')
7+
);
8+
9+
// Disable .swcrc look-up by SWC core because we're passing in swcJestConfig ourselves
10+
swcJestConfig.swcrc = false;
11+
212
export default {
313
displayName: 'nx-ktor-e2e',
414
preset: '../../jest.preset.js',
515
transform: {
6-
'^.+\\.[tj]s$': ['ts-jest', { tsconfig: '<rootDir>/tsconfig.spec.json' }],
16+
'^.+\\.[tj]s$': ['@swc/jest', swcJestConfig],
717
},
818
moduleFileExtensions: ['ts', 'js', 'html'],
9-
coverageDirectory: '../../coverage/e2e/nx-ktor-e2e',
19+
coverageDirectory: 'test-output/jest/coverage',
1020
globalSetup: '../../tools/scripts/start-local-registry.ts',
1121
globalTeardown: '../../tools/scripts/stop-local-registry.ts',
1222
};

e2e/nx-ktor-e2e/tsconfig.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
"files": [],
44
"include": [],
55
"references": [
6+
{
7+
"path": "../../packages/common-jvm"
8+
},
9+
{
10+
"path": "../../packages/common-cli"
11+
},
612
{
713
"path": "./tsconfig.spec.json"
814
}

e2e/nx-ktor-e2e/tsconfig.spec.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
2-
"extends": "./tsconfig.json",
2+
"extends": "../../tsconfig.base.json",
33
"compilerOptions": {
4-
"outDir": "../../dist/out-tsc",
5-
"module": "commonjs",
4+
"outDir": "./out-tsc/jest",
65
"types": ["jest", "node"]
76
},
87
"include": [

e2e/nx-melos-e2e/.spec.swcrc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"jsc": {
3+
"target": "es2017",
4+
"parser": {
5+
"syntax": "typescript",
6+
"decorators": true,
7+
"dynamicImport": true
8+
},
9+
"transform": {
10+
"decoratorMetadata": true,
11+
"legacyDecorator": true
12+
},
13+
"keepClassNames": true,
14+
"externalHelpers": true,
15+
"loose": true
16+
},
17+
"module": {
18+
"type": "es6"
19+
},
20+
"sourceMaps": true,
21+
"exclude": []
22+
}

e2e/nx-melos-e2e/jest.config.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
11
/* eslint-disable */
2+
import { readFileSync } from 'fs';
3+
4+
// Reading the SWC compilation config for the spec files
5+
const swcJestConfig = JSON.parse(
6+
readFileSync(`${__dirname}/.spec.swcrc`, 'utf-8')
7+
);
8+
9+
// Disable .swcrc look-up by SWC core because we're passing in swcJestConfig ourselves
10+
swcJestConfig.swcrc = false;
11+
212
export default {
313
displayName: 'nx-melos-e2e',
414
preset: '../../jest.preset.js',
515
transform: {
6-
'^.+\\.[tj]s$': ['ts-jest', { tsconfig: '<rootDir>/tsconfig.spec.json' }],
16+
'^.+\\.[tj]s$': ['@swc/jest', swcJestConfig],
717
},
818
moduleFileExtensions: ['ts', 'js', 'html'],
9-
coverageDirectory: '../../coverage/e2e/nx-melos-e2e',
19+
coverageDirectory: 'test-output/jest/coverage',
1020
globalSetup: '../../tools/scripts/start-local-registry.ts',
1121
globalTeardown: '../../tools/scripts/stop-local-registry.ts',
1222
};

e2e/nx-melos-e2e/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
"files": [],
44
"include": [],
55
"references": [
6+
{
7+
"path": "../../packages/common"
8+
},
69
{
710
"path": "./tsconfig.spec.json"
811
}

e2e/nx-melos-e2e/tsconfig.spec.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
{
2-
"extends": "./tsconfig.json",
2+
"extends": "../../tsconfig.base.json",
33
"compilerOptions": {
4-
"outDir": "../../dist/out-tsc",
5-
"module": "commonjs",
4+
"outDir": "./out-tsc/jest",
65
"types": ["jest", "node"]
76
},
8-
"include": ["jest.config.ts", "**/*.test.ts", "**/*.spec.ts", "**/*.d.ts"]
7+
"include": [
8+
"jest.config.ts",
9+
"src/**/*.test.ts",
10+
"src/**/*.spec.ts",
11+
"src/**/*.d.ts"
12+
]
913
}

e2e/nx-micronaut-e2e/.spec.swcrc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"jsc": {
3+
"target": "es2017",
4+
"parser": {
5+
"syntax": "typescript",
6+
"decorators": true,
7+
"dynamicImport": true
8+
},
9+
"transform": {
10+
"decoratorMetadata": true,
11+
"legacyDecorator": true
12+
},
13+
"keepClassNames": true,
14+
"externalHelpers": true,
15+
"loose": true
16+
},
17+
"module": {
18+
"type": "es6"
19+
},
20+
"sourceMaps": true,
21+
"exclude": []
22+
}

e2e/nx-micronaut-e2e/jest.config.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
11
/* eslint-disable */
2+
import { readFileSync } from 'fs';
3+
4+
// Reading the SWC compilation config for the spec files
5+
const swcJestConfig = JSON.parse(
6+
readFileSync(`${__dirname}/.spec.swcrc`, 'utf-8')
7+
);
8+
9+
// Disable .swcrc look-up by SWC core because we're passing in swcJestConfig ourselves
10+
swcJestConfig.swcrc = false;
11+
212
export default {
313
displayName: 'nx-micronaut-e2e',
414
preset: '../../jest.preset.js',
515
transform: {
6-
'^.+\\.[tj]s$': ['ts-jest', { tsconfig: '<rootDir>/tsconfig.spec.json' }],
16+
'^.+\\.[tj]s$': ['@swc/jest', swcJestConfig],
717
},
818
moduleFileExtensions: ['ts', 'js', 'html'],
9-
coverageDirectory: '../../coverage/e2e/nx-micronaut-e2e',
19+
coverageDirectory: 'test-output/jest/coverage',
1020
globalSetup: '../../tools/scripts/start-local-registry.ts',
1121
globalTeardown: '../../tools/scripts/stop-local-registry.ts',
1222
};

e2e/nx-micronaut-e2e/tsconfig.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
"files": [],
44
"include": [],
55
"references": [
6+
{
7+
"path": "../../packages/common-jvm"
8+
},
9+
{
10+
"path": "../../packages/common-cli"
11+
},
612
{
713
"path": "./tsconfig.spec.json"
814
}
Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
{
2-
"extends": "./tsconfig.json",
2+
"extends": "../../tsconfig.base.json",
33
"compilerOptions": {
4-
"outDir": "../../dist/out-tsc",
5-
"module": "commonjs",
4+
"outDir": "./out-tsc/jest",
65
"types": ["jest", "node"]
76
},
8-
"include": ["jest.config.ts", "**/*.test.ts", "**/*.spec.ts", "**/*.d.ts"]
7+
"include": [
8+
"jest.config.ts",
9+
"src/**/*.test.ts",
10+
"src/**/*.spec.ts",
11+
"src/**/*.d.ts"
12+
]
913
}

e2e/nx-quarkus-e2e/.spec.swcrc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"jsc": {
3+
"target": "es2017",
4+
"parser": {
5+
"syntax": "typescript",
6+
"decorators": true,
7+
"dynamicImport": true
8+
},
9+
"transform": {
10+
"decoratorMetadata": true,
11+
"legacyDecorator": true
12+
},
13+
"keepClassNames": true,
14+
"externalHelpers": true,
15+
"loose": true
16+
},
17+
"module": {
18+
"type": "es6"
19+
},
20+
"sourceMaps": true,
21+
"exclude": []
22+
}

e2e/nx-quarkus-e2e/jest.config.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
11
/* eslint-disable */
2+
import { readFileSync } from 'fs';
3+
4+
// Reading the SWC compilation config for the spec files
5+
const swcJestConfig = JSON.parse(
6+
readFileSync(`${__dirname}/.spec.swcrc`, 'utf-8')
7+
);
8+
9+
// Disable .swcrc look-up by SWC core because we're passing in swcJestConfig ourselves
10+
swcJestConfig.swcrc = false;
11+
212
export default {
313
displayName: 'nx-quarkus-e2e',
414
preset: '../../jest.preset.js',
515
transform: {
6-
'^.+\\.[tj]s$': ['ts-jest', { tsconfig: '<rootDir>/tsconfig.spec.json' }],
16+
'^.+\\.[tj]s$': ['@swc/jest', swcJestConfig],
717
},
818
moduleFileExtensions: ['ts', 'js', 'html'],
9-
coverageDirectory: '../../coverage/e2e/nx-quarkus-e2e',
19+
coverageDirectory: 'test-output/jest/coverage',
1020
globalSetup: '../../tools/scripts/start-local-registry.ts',
1121
globalTeardown: '../../tools/scripts/stop-local-registry.ts',
1222
};

0 commit comments

Comments
 (0)