Skip to content

Commit d65baf8

Browse files
author
Brijesh Bittu
committed
Add build script
1 parent 0d01b02 commit d65baf8

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

packages/code-infra/package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,17 @@
1212
"exports": {
1313
"./package.json": "./package.json",
1414
"./prettier": {
15+
"types": "./build/src/prettier.d.mts",
1516
"default": "./src/prettier.mjs"
1617
},
1718
"./eslint": {
19+
"types": "./build/src/eslint/index.d.mts",
1820
"default": "./src/eslint/index.mjs"
1921
}
2022
},
2123
"scripts": {
22-
"build:types": "tsc -p tsconfig.json --declaration --emitDeclarationOnly",
24+
"build:types": "tsc -p tsconfig.build.json",
25+
"build": "pnpm build:types",
2326
"typescript": "tsc -p tsconfig.json",
2427
"test": "pnpm -w test --project @mui/internal-code-infra"
2528
},
@@ -66,10 +69,9 @@
6669
"typescript-eslint": "^8.35.0"
6770
},
6871
"files": [
72+
"build",
6973
"src",
70-
"package.json",
7174
"README.md",
72-
"CHANGELOG.md",
7375
"LICENSE"
7476
],
7577
"publishConfig": {

packages/code-infra/src/eslint/index.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ import airbnbTypescript from './airbnb/typescript.mjs';
1515
import { createCoreConfig } from './material-ui/config.mjs';
1616
import muiPlugin from './material-ui/index.mjs';
1717

18+
/**
19+
* @type {import('eslint').Linter.Config}
20+
*/
1821
export const baseSpecRules = {
1922
files: ['**/*.spec.*'],
2023
rules: {
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"noEmit": false,
5+
"emitDeclarationOnly": true,
6+
"declaration": true,
7+
"removeComments": true
8+
}
9+
}

0 commit comments

Comments
 (0)