aboutsummaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/pogen/.gitignore1
-rwxr-xr-xpackages/pogen/bin/pogen2
-rw-r--r--packages/pogen/package.json2
-rw-r--r--packages/pogen/pogen.ts4
4 files changed, 4 insertions, 5 deletions
diff --git a/packages/pogen/.gitignore b/packages/pogen/.gitignore
index 7093a2ce3..de4d1f007 100644
--- a/packages/pogen/.gitignore
+++ b/packages/pogen/.gitignore
@@ -1,3 +1,2 @@
-bin
dist
node_modules
diff --git a/packages/pogen/bin/pogen b/packages/pogen/bin/pogen
new file mode 100755
index 000000000..a7ef879d8
--- /dev/null
+++ b/packages/pogen/bin/pogen
@@ -0,0 +1,2 @@
+#!/usr/bin/env node
+require('../lib/pogen.js').main();
diff --git a/packages/pogen/package.json b/packages/pogen/package.json
index d023632e4..3d744f736 100644
--- a/packages/pogen/package.json
+++ b/packages/pogen/package.json
@@ -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+",
diff --git a/packages/pogen/pogen.ts b/packages/pogen/pogen.ts
index 972623645..23ac389f4 100644
--- a/packages/pogen/pogen.ts
+++ b/packages/pogen/pogen.ts
@@ -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();