Skip to content

Commit 482a378

Browse files
committed
Use composite project for compass-components
1 parent 88c7bfe commit 482a378

File tree

6 files changed

+14
-16
lines changed

6 files changed

+14
-16
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,6 @@ config/*/.npmrc
3535
.sbom
3636
.logs
3737
.evergreen/logs
38+
39+
# Typescript incremental build info
40+
*.tsbuildinfo

packages/compass-components/.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ module.exports = {
44
extends: ['@mongodb-js/eslint-config-compass'],
55
parserOptions: {
66
tsconfigRootDir: __dirname,
7-
project: ['./tsconfig-lint.json'],
7+
project: ['./tsconfig.json'],
88
},
99
};
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
lib

packages/compass-components/package.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,20 @@
33
"version": "1.34.0",
44
"description": "React Components used in Compass",
55
"license": "SSPL",
6-
"main": "lib/index.js",
6+
"main": "dist/index.js",
77
"compass:main": "src/index.ts",
88
"compass:exports": {
99
".": "./src/index.ts"
1010
},
11-
"types": "./lib/index.d.ts",
11+
"types": "./dist/index.d.ts",
1212
"files": [
13-
"lib"
13+
"dist"
1414
],
1515
"scripts": {
1616
"bootstrap": "npm run compile",
1717
"prepublishOnly": "npm run compile && compass-scripts check-exports-exist",
18-
"clean": "node -e \"fs.rmSync('lib', { recursive: true, force: true })\" || true",
19-
"precompile": "npm run clean",
20-
"compile": "tsc -p tsconfig.json",
18+
"clean": "tsc --build --clean",
19+
"compile": "tsc --build",
2120
"eslint": "eslint",
2221
"prettier": "prettier",
2322
"lint": "npm run eslint . && npm run prettier -- --check .",

packages/compass-components/tsconfig-lint.json

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
{
22
"extends": "@mongodb-js/tsconfig-compass/tsconfig.react.json",
33
"compilerOptions": {
4-
"outDir": "lib"
4+
"composite": true,
5+
"outDir": "dist",
6+
"rootDir": "src"
57
},
6-
"include": ["src/**/*"],
7-
"exclude": ["./src/**/*.spec.*", "./src/**/*.test.*"]
8+
"include": ["src"],
9+
"exclude": ["src/**/*.spec.*", "./src/**/*.test.*"]
810
}

0 commit comments

Comments
 (0)