Skip to content

Commit

Permalink
compile with typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
tolu committed Apr 12, 2022
1 parent 375a477 commit 05af864
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
"jsnext:main": "src/index.js",
"scripts": {
"lint": "prettier --write .",
"test": "npm run lint && npm run unittests && tsc",
"test": "npm run lint && npm run unittests",
"unittests": "uvu -r ts-node/register test",
"watch": "onchange '**/*.js' -- npm run test",
"compile": "babel -d lib/ src/",
"compile": "tsc",
"prepublishOnly": "npm run compile",
"patch-release": "npm test && npm version patch && git push --follow-tags"
},
Expand Down
23 changes: 12 additions & 11 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,24 @@
"compilerOptions": {
"allowJs": true,
"module": "commonjs",
"lib": ["es6"],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": ["../"],
"types": [],
"noEmit": true,
"lib": ["esnext"],
"target": "ES5",
"strict": true,
"outDir": "lib",
"declaration": true,
"forceConsistentCasingInFileNames": true,
},
"files": ["index.d.ts", "test/type-tests.ts"],
"include": [
"src/**/*"
],
// Required for uvu tests using "-r ts-node/register"
"ts-node": {
"transpileOnly": true,
"compilerOptions": {
"module": "commonjs",
}
},
"include": [
"./**/*"
],
}
}

0 comments on commit 05af864

Please sign in to comment.