translated to typescript and added .ts file support
This commit is contained in:
2022-06-14 12:13:28 -05:00
commit 832cecfe76
15 changed files with 1667 additions and 0 deletions

38
package.json Normal file
View File

@@ -0,0 +1,38 @@
{
"name": "file-node",
"version": "1.1.0",
"description": "",
"module": "./lib/index.js",
"main": "./lib/index.js",
"scripts": {
"start": "node .",
"prebuild": "node -p \"'export const BIN_VERSION = ' + JSON.stringify(require('./package.json').version) + ';'\" > src/util/version.ts",
"buildts": "prettier --write . && tsc -p ./src",
"build": "npm run buildts && pkg ."
},
"pkg": {
"targets": [
"node16-linux-x64",
"node16-macos-x64",
"node16-win-x64"
],
"outputPath": "dist",
"compress": "gzip"
},
"author": "",
"license": "UNLICENSE",
"bin": {
"file-node": "./lib/index.js"
},
"dependencies": {
"command-line-args": "^5.2.1"
},
"devDependencies": {
"@types/command-line-args": "^5.2.0",
"@types/node": "^17.0.42",
"esbuild": "^0.14.43",
"pkg": "^5.7.0",
"prettier": "^2.6.2",
"typescript": "^4.7.3"
}
}