From 82cdc60af6103da3adfcdc2e033ad02b2ab5ed5c Mon Sep 17 00:00:00 2001 From: Vivian Plasencia Date: Wed, 23 Oct 2024 11:50:46 +0200 Subject: [PATCH] fix: update shebang lines in the ts scripts (#881) re #880 --- scripts/clean-apps.ts | 2 +- scripts/clean-cli-templates.ts | 2 +- scripts/clean-packages.ts | 2 +- scripts/publish.ts | 2 +- scripts/remove-stable-version-field.ts | 2 +- scripts/version.ts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/clean-apps.ts b/scripts/clean-apps.ts index 30c854cde..9db842b45 100755 --- a/scripts/clean-apps.ts +++ b/scripts/clean-apps.ts @@ -1,4 +1,4 @@ -#!node_modules/.bin/ts-node +#!/usr/bin/env ts-node import { readdirSync, rmSync } from "fs" const folderName = "apps" diff --git a/scripts/clean-cli-templates.ts b/scripts/clean-cli-templates.ts index 9f472a98b..cca5e8c5a 100755 --- a/scripts/clean-cli-templates.ts +++ b/scripts/clean-cli-templates.ts @@ -1,4 +1,4 @@ -#!node_modules/.bin/ts-node +#!/usr/bin/env ts-node import { rmSync } from "fs" const folderName = "packages" diff --git a/scripts/clean-packages.ts b/scripts/clean-packages.ts index 299e95fd8..c4f48e27a 100755 --- a/scripts/clean-packages.ts +++ b/scripts/clean-packages.ts @@ -1,4 +1,4 @@ -#!node_modules/.bin/ts-node +#!/usr/bin/env ts-node import { readdirSync, rmSync } from "fs" const folderName = "packages" diff --git a/scripts/publish.ts b/scripts/publish.ts index 08f9adecf..766fc8349 100755 --- a/scripts/publish.ts +++ b/scripts/publish.ts @@ -1,4 +1,4 @@ -#!node_modules/.bin/ts-node +#!/usr/bin/env ts-node import compare from "semver/functions/compare" import { execSync } from "child_process" import contractsPkgJson from "@semaphore-protocol/contracts/package.json" diff --git a/scripts/remove-stable-version-field.ts b/scripts/remove-stable-version-field.ts index ea00e759a..a6d1e362b 100755 --- a/scripts/remove-stable-version-field.ts +++ b/scripts/remove-stable-version-field.ts @@ -1,4 +1,4 @@ -#!node_modules/.bin/ts-node +#!/usr/bin/env ts-node import { readFileSync, readdirSync, writeFileSync } from "node:fs" const folderName = "packages" diff --git a/scripts/version.ts b/scripts/version.ts index 12ee25915..3c19ae8e0 100755 --- a/scripts/version.ts +++ b/scripts/version.ts @@ -1,4 +1,4 @@ -#!node_modules/.bin/ts-node +#!/usr/bin/env ts-node import { execSync } from "child_process" async function main() {