From f80f026fc21dbcd1c4e6891ceea96f63497158ac Mon Sep 17 00:00:00 2001 From: sakari jokinen Date: Fri, 8 Nov 2024 07:57:47 +0200 Subject: [PATCH] sed that works with mac and linux --- packages/oats-runtime/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/oats-runtime/package.json b/packages/oats-runtime/package.json index 734bd43b..45735225 100644 --- a/packages/oats-runtime/package.json +++ b/packages/oats-runtime/package.json @@ -12,7 +12,8 @@ "clean:dist": "rm -rf ./dist", "prebuild": "yarn clean && yarn tsc --project tsconfig.test.json --noEmit", "build": "yarn tsc", - "postbuild": "sed -i bak 1d dist/make.d.ts && rm dist/make.d.tsbak", + "postbuild": "yarn remove-references", + "remove-references": "cat dist/make.d.ts > dist/make.d.tsbak && sed 's/\\/\\/\\/.*//g' > dist/make.d.ts < dist/make.d.tsbak && rm dist/make.d.tsbak", "lint": "eslint --max-warnings=0 --ext .ts src test", "lint:fix": "eslint --max-warnings=0 --ext .ts src test --fix" },