Skip to content

Commit

Permalink
Merge pull request #22 from matrix-org/langleyd/fix_build_output
Browse files Browse the repository at this point in the history
Don't include tests in build output
  • Loading branch information
langleyd authored Oct 7, 2024
2 parents 1dba04d + 6c020ec commit b67a5c7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
build
.eslintignore
babel.config.js
babel.config.js
jest.config.ts
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"build"
],
"scripts": {
"build": "tsc",
"build": "tsc --project tsconfig.build.json",
"start": "ts-node ./src/build.ts",
"prepare": "yarn build && yarn start",
"lint": "eslint .",
Expand Down
4 changes: 4 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"exclude": ["./test/**/*.ts"]
}
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
"declaration": true,
"declarationMap": true,
"outDir": "build"
}
},
"include": ["./src/**/*.ts", "./test/**/*.ts"]
}

0 comments on commit b67a5c7

Please sign in to comment.