Skip to content

Commit fca4e67

Browse files
committed
add test tsconfig
1 parent 2949aa4 commit fca4e67

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

examples/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.vercel

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
"url": "git://github.com/pboyer/nomial.git"
1414
},
1515
"scripts": {
16-
"test": "ts-node test/index.ts",
16+
"test": "ts-node --project tsconfig.test.json test/index.ts",
1717
"build": "tsc --emitDeclarationOnly && rollup -c && cp dist/nomial.js examples/nomial.js",
1818
"publish": "yarn build",
19-
"benchmark": "ts-node benchmark/index.ts"
19+
"benchmark": "ts-node --project tsconfig.test.json benchmark/index.ts"
2020
},
2121
"keywords": [
2222
"polynomial",
@@ -38,4 +38,4 @@
3838
"tslib": "^2.4.0",
3939
"typescript": "^4.7.4"
4040
}
41-
}
41+
}

tsconfig.test.json

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"compilerOptions": {
3+
"module": "CommonJS",
4+
"target": "es2015",
5+
"declaration": true,
6+
"outDir": "./dist"
7+
},
8+
"include": [
9+
"src/**/*"
10+
],
11+
"types": [
12+
"node"
13+
]
14+
}

0 commit comments

Comments
 (0)