sliftutils 0.6.0 → 0.6.2

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.
@@ -17,7 +17,7 @@ async function main() {
17
17
  if (!outputFolder) {
18
18
  throw new Error("No output folder provided. Please use the --outputFolder option.");
19
19
  }
20
- require("../" + entryPoint);
20
+ require(entryPoint);
21
21
 
22
22
  let name = path.basename(entryPoint);
23
23
  if (name.endsWith(".ts") || name.endsWith(".tsx")) {
@@ -1,12 +1,14 @@
1
1
  import child_process from "child_process";
2
2
  import { runPromise } from "socket-function/src/runPromise";
3
- import shellQuote from "shell-quote";
3
+ import path from "path";
4
4
 
5
5
  export async function bundleEntryCaller(config: {
6
6
  entryPoint: string;
7
7
  outputFolder: string;
8
8
  }) {
9
9
  let { entryPoint, outputFolder } = config;
10
- let command = shellQuote.quote(["yarn", "typenode", "./bundler/bundleEntry.ts", "--entryPoint", entryPoint, "--outputFolder", outputFolder]);
11
- await runPromise(command);
10
+ entryPoint = path.resolve(entryPoint);
11
+ outputFolder = path.resolve(outputFolder);
12
+ let bundleEntryPath = path.resolve(__dirname, "bundleEntry.ts");
13
+ await runPromise(`yarn typenode ${JSON.stringify(bundleEntryPath)} --entryPoint ${JSON.stringify(entryPoint)} --outputFolder ${JSON.stringify(outputFolder)}`);
12
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sliftutils",
3
- "version": "0.6.0",
3
+ "version": "0.6.2",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "scripts": {
package/spec.txt CHANGED
@@ -1,4 +1,9 @@
1
1
  TODO:
2
+
3
+ Ugh... where is it getting the typescript version? Why is it picking the latest... typenode doesn't want the latest...
4
+
5
+ Why is the binary not being added?
6
+
2
7
  4) New project with:
3
8
 
4
9
  maybe... we need bins and entry points for the common types of builds