From 3e9db1b5e6e70d5a52b9cd112d8e739f4079f12e Mon Sep 17 00:00:00 2001 From: Vyacheslav Matyukhin Date: Thu, 26 Dec 2024 23:03:03 -0300 Subject: [PATCH] Fix "Failed to create bin" warnings Recipe from https://webpro.nl/scraps/compiled-bin-in-typescript-monorepo --- packages/squiggle-lang/bin/squiggle.js | 2 ++ packages/squiggle-lang/package.json | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100755 packages/squiggle-lang/bin/squiggle.js diff --git a/packages/squiggle-lang/bin/squiggle.js b/packages/squiggle-lang/bin/squiggle.js new file mode 100755 index 0000000000..3b0c77af59 --- /dev/null +++ b/packages/squiggle-lang/bin/squiggle.js @@ -0,0 +1,2 @@ +#!/usr/bin/env node +import "../dist/cli/index.js"; diff --git a/packages/squiggle-lang/package.json b/packages/squiggle-lang/package.json index 7d116c2dac..a4ad892d18 100644 --- a/packages/squiggle-lang/package.json +++ b/packages/squiggle-lang/package.json @@ -71,6 +71,7 @@ }, "files": [ "dist", + "bin", "src", "!**/tsconfig*.tsbuildinfo", "!**/__tests__" @@ -84,6 +85,6 @@ "./runners/WebWorkerRunner": "./dist/runners/WebWorkerRunner.js" }, "bin": { - "squiggle": "./dist/cli/index.js" + "squiggle": "./bin/squiggle.js" } }