Skip to content

Commit fd8aabd

Browse files
committed
1 parent 7bad650 commit fd8aabd

File tree

4 files changed

+22
-2
lines changed

4 files changed

+22
-2
lines changed

.nvmrc

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

package-lock.json

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"author": "Christian Johansen",
77
"license": "BSD-3-Clause",
88
"main": "./lib/samsam",
9+
"types": "./dist/samsam.d.ts",
910
"repository": {
1011
"type": "git",
1112
"url": "https://github.com/sinonjs/samsam.git"
@@ -15,9 +16,10 @@
1516
},
1617
"scripts": {
1718
"benchmark": "node lib/deep-equal-benchmark.js",
18-
"build": "run-s build:dist-folder build:bundle",
19+
"build": "run-s build:dist-folder build:bundle build:type-defs",
1920
"build:bundle": "rollup -c",
2021
"build:dist-folder": "mkdirp dist",
22+
"build:type-defs": "tsc",
2123
"jsdoc": "jsdoc -c jsdoc.conf.json",
2224
"lint": "eslint .",
2325
"prepublishOnly": "npm run build && mkdocs gh-deploy -r upstream || mkdocs gh-deploy -r origin",
@@ -74,7 +76,8 @@
7476
"proxyquire-universal": "^2.1.0",
7577
"proxyquireify": "^3.2.1",
7678
"rollup": "^1.23.0",
77-
"rollup-plugin-commonjs": "^10.1.0"
79+
"rollup-plugin-commonjs": "^10.1.0",
80+
"typescript": "^4.0.5"
7881
},
7982
"nyc": {
8083
"exclude": [

tsconfig.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"include": [
3+
"dist/*.js"
4+
],
5+
"compilerOptions": {
6+
"declaration": true,
7+
"emitDeclarationOnly": true,
8+
"allowJs": true
9+
}
10+
}

0 commit comments

Comments
 (0)