tsslang 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +5 -2
  2. package/tss.js +1 -3
package/package.json CHANGED
@@ -1,10 +1,13 @@
1
1
  {
2
2
  "name": "tsslang",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "TSSLang programming language",
5
5
  "license": "MIT",
6
6
  "bin": {
7
7
  "oxm": "./tss.js"
8
8
  },
9
- "files": ["tss.js", "tss_runtime.js"]
9
+ "files": [
10
+ "tss.js",
11
+ "tss_runtime.js"
12
+ ]
10
13
  }
package/tss.js CHANGED
@@ -1,4 +1,3 @@
1
- cat > tss.js <<'EOF'
2
1
  #!/usr/bin/env node
3
2
 
4
3
  const fs = require("fs");
@@ -59,7 +58,7 @@ function compileTSS(source) {
59
58
  }
60
59
 
61
60
  emit(`"use strict";`);
62
- emit(`const __tss = require("./tss_runtime");`);
61
+ emit(`const __tss = require(path.join(__dirname, "tss_runtime.js"));`);
63
62
  emit(`(async () => {`);
64
63
  inc();
65
64
 
@@ -216,4 +215,3 @@ try {
216
215
  console.error("TSS Error:", e.message);
217
216
  process.exit(1);
218
217
  }
219
- EOF