Remove ncc in favor of plain tsc for compilation

This commit is contained in:
Jonathan Clem 2020-07-17 10:05:47 -04:00
parent 1ba1e95cf2
commit 0dfbf66a04
No known key found for this signature in database
GPG key ID: B3662C4A8F843179
5 changed files with 11 additions and 10643 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
/node_modules/
/dist/
!/.vscode/

10628
dist/index.js vendored

File diff suppressed because it is too large Load diff

12
package-lock.json generated
View file

@ -1078,12 +1078,6 @@
}
}
},
"@zeit/ncc": {
"version": "0.22.0",
"resolved": "https://registry.npmjs.org/@zeit/ncc/-/ncc-0.22.0.tgz",
"integrity": "sha512-zaS6chwztGSLSEzsTJw9sLTYxQt57bPFBtsYlVtbqGvmDUsfW7xgXPYofzFa1kB9ur2dRop6IxCwPnWLBVCrbQ==",
"dev": true
},
"abab": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/abab/-/abab-2.0.3.tgz",
@ -5820,9 +5814,9 @@
}
},
"typescript": {
"version": "3.8.3",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.8.3.tgz",
"integrity": "sha512-MYlEfn5VrLNsgudQTVJeNaQFUAI7DkhnOjdpAp4T+ku1TfQClewlbSuTVHiA+8skNBgaf02TL/kLOvig4y3G8w==",
"version": "3.9.7",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.7.tgz",
"integrity": "sha512-BLbiRkiBzAwsjut4x/dsibSTB6yWpwT5qWmC2OfuCg3GgVQCSgMs4vEctYPhsaGtd0AeuuHMkjZ2h2WG8MSzRw==",
"dev": true
},
"union-value": {

View file

@ -4,10 +4,10 @@
"version": "2.0.0",
"author": "GitHub",
"license": "MIT",
"main": "dist/index.js",
"main": "dist/main.js",
"private": true,
"scripts": {
"build": "ncc build src/main.ts",
"build": "tsc",
"format:check": "prettier --check src __test__",
"format:write": "prettier --write src __test__",
"lint": "eslint src __test__",
@ -18,7 +18,7 @@
},
"husky": {
"hooks": {
"pre-commit": "npm run pre-commit && git add dist/"
"pre-commit": "npm run pre-commit"
}
},
"jest": {
@ -46,7 +46,6 @@
"@types/jest": "^25.1.4",
"@typescript-eslint/eslint-plugin": "^2.33.0",
"@typescript-eslint/parser": "^2.33.0",
"@zeit/ncc": "^0.22.0",
"eslint": "^7.0.0",
"eslint-config-prettier": "^6.11.0",
"husky": "^4.2.5",
@ -54,6 +53,6 @@
"npm-run-all": "^4.1.5",
"prettier": "^2.0.5",
"ts-jest": "^25.2.1",
"typescript": "^3.8.3"
"typescript": "^3.9.7"
}
}

View file

@ -2,8 +2,10 @@
"compilerOptions": {
"target": "es2018",
"moduleResolution": "node",
"module": "commonjs",
"strict": true,
"forceConsistentCasingInFileNames": true
"forceConsistentCasingInFileNames": true,
"outDir": "dist"
},
"exclude": ["__test__"]
}