Skip to content

Commit 6e0d6bb

Browse files
committed
fix workspaces
1 parent d5e6851 commit 6e0d6bb

26 files changed

+4965
-8432
lines changed

.eslintrc

-17
This file was deleted.

.github/workflows/codechecks.yml

+2-5
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ jobs:
99
- uses: actions/checkout@v1
1010
- uses: actions/setup-node@v1
1111
with:
12-
node-version: 10
12+
node-version: 18
1313
- run: npm ci
14-
- run: lerna bootstrap
15-
- run: lerna run build
16-
- run: npm run lint
17-
- run: npm test
14+
- run: npx nx run-many -t test lint

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,8 @@
33
dist
44
node_modules
55
npm-debug.log
6+
tsconfig.tsbuildinfo
7+
8+
9+
.nx/cache
10+
.nx/workspace-data

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
18

eslint.config.js

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module.exports = [
2+
{
3+
ignores: ['dist/**/*'],
4+
rules: {
5+
indent: [
6+
'error',
7+
'tab'
8+
],
9+
'no-prototype-builtin': 'off'
10+
}
11+
}
12+
];

jest.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1+
// @ts-check
2+
3+
/**
4+
* @type {import('jest').Config}
5+
*/
16
module.exports = {
7+
testMatch: ['<rootDir>/tests/*.test.ts'],
28
transform: {
39
'^.+\\.ts$': 'ts-jest'
410
},

lerna.json

-6
This file was deleted.

nx.json

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"$schema": "./node_modules/nx/schemas/nx-schema.json",
3+
"targetDefaults": {
4+
"build": {
5+
"dependsOn": ["^build"]
6+
},
7+
"express-csp-header": {
8+
"dependsOn": ["csp-header:build"]
9+
},
10+
"test": {
11+
"dependsOn": ["build"]
12+
}
13+
},
14+
"defaultBase": "master"
15+
}

0 commit comments

Comments
 (0)