From 908f88e4adc7c720bcab36c9e65c8c11004964f5 Mon Sep 17 00:00:00 2001 From: Saatvik Arya Date: Sat, 21 Oct 2023 17:33:30 -0700 Subject: [PATCH] shebang --- package.json | 2 +- src/index.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index e3dae19..04e2d7e 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "scripts": { "prebuild": "rm -rf dist && mkdir dist", "build": "tsc", - "postbuild": "sed -i '' '1s/^/#!\\/usr\\/bin\\/env node\\n/' dist/index.js && chmod +x dist/index.js", + "postbuild": "chmod +x dist/index.js", "start": "ts-node src/index.ts", "prepublish": "npm run build" }, diff --git a/src/index.ts b/src/index.ts index fafcd06..9c9d08e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,4 @@ +#!/usr/bin/env node import { createClient } from "contentful-management"; import dotenv from "dotenv"; import fs from "fs";