v1.1.0
translated to typescript and added .ts file support
This commit is contained in:
38
package.json
Normal file
38
package.json
Normal 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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user