Skip to content
This repository was archived by the owner on Aug 3, 2024. It is now read-only.

Commit e9489fa

Browse files
committed
added: ts-node
1 parent 9e95801 commit e9489fa

File tree

3 files changed

+66
-4
lines changed

3 files changed

+66
-4
lines changed

index.js renamed to index.ts

File renamed without changes.

package-lock.json

Lines changed: 55 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,21 @@
55
"main": "index.js",
66
"private": false,
77
"nyc": {
8+
"extension": [
9+
".ts",
10+
".tsx"
11+
],
812
"exclude": [
913
"test",
1014
"coverage",
11-
".nyc_output"
15+
".nyc_output",
16+
"**/*.d.ts"
1217
],
1318
"reporter": [
1419
"text",
1520
"text-summary"
16-
]
21+
],
22+
"all": true
1723
},
1824
"homepage": "https://github.com/sudo-bot/gh-deployer",
1925
"bugs": {
@@ -33,8 +39,8 @@
3339
"changelog": "changelog-generator-twig --owner sudo --repo gh-deployer --repoDir ./ --baseCommit 5f5552755301e92a762698db33127c44e924fac6",
3440
"changelog-file": "npm run --silent changelog > CHANGELOG.md",
3541
"jshint": "jshint ./",
36-
"start": "npm run build && node index.js",
37-
"test": "npm run build && nyc --all mocha --ui tdd dist/test/index.js",
42+
"start": "ts-node index.ts",
43+
"test": "nyc mocha --require ts-node/register --require source-map-support/register --ui tdd test/index.ts",
3844
"report-coverage": "nyc report --reporter=text-lcov > coverage.lcov",
3945
"prettier": "prettier --ignore-path ./.prettierignore --write \"*/**/*.js\" \"*.js\" \"*/**/*.ts\" \"*.ts\""
4046
},
@@ -77,6 +83,7 @@
7783
"mocha": "^6.1.4",
7884
"nyc": "^14.1.1",
7985
"prettier": "^1.18.2",
86+
"ts-node": "^8.2.0",
8087
"typescript": "^3.5.1"
8188
},
8289
"prettier": {

0 commit comments

Comments
 (0)