fix pogen binary

This commit is contained in:
Florian Dold 2021-03-27 14:02:29 +01:00
parent c26a41ce70
commit 14d4883639
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B
4 changed files with 4 additions and 5 deletions

View File

@ -1,3 +1,2 @@
bin
dist
node_modules

2
packages/pogen/bin/pogen Executable file
View File

@ -0,0 +1,2 @@
#!/usr/bin/env node
require('../lib/pogen.js').main();

View File

@ -2,7 +2,7 @@
"name": "@gnu-taler/pogen",
"version": "0.0.5",
"bin": {
"pogen": "lib/pogen.js"
"pogen": "bin/pogen"
},
"author": "Florian Dold",
"license": "GPL-2.0+",

View File

@ -373,7 +373,7 @@ export function processFile(sourceFile: ts.SourceFile) {
}
}
function main() {
export function main() {
const configPath = ts.findConfigFile(
/*searchPath*/ "./",
ts.sys.fileExists,
@ -434,5 +434,3 @@ msgstr ""
const out = outChunks.join("");
console.log(out);
}
main();