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";