diff --git a/package.json b/package.json index 0dbfca22..71b80680 100644 --- a/package.json +++ b/package.json @@ -39,13 +39,14 @@ "build": "tsup", "dev": "tsup --watch", "prepare": "husky", - "prerelease": "./remove-workspace", + "prerelease": "scripts/remove-workspace", "release": "release-it", - "postrelease": "./restore-workspace" + "postrelease": "scripts/restore-workspace" }, "release-it": { "git": { - "commitMessage": "chore: release v${version}" + "commitMessage": "chore: release v${version}", + "requireCleanWorkingDir": false }, "github": { "release": true diff --git a/scripts/remove-workspace b/scripts/remove-workspace old mode 100644 new mode 100755 index 11a1dd5a..f00bb469 --- a/scripts/remove-workspace +++ b/scripts/remove-workspace @@ -1,4 +1,4 @@ -#!/bin/env node +#!/usr/bin/env node const fs = require('fs'); const path = require('path'); diff --git a/scripts/restore-workspace b/scripts/restore-workspace old mode 100644 new mode 100755 index 9f540649..ab2254ae --- a/scripts/restore-workspace +++ b/scripts/restore-workspace @@ -1,4 +1,4 @@ -#!/bin/env node +#!/usr/bin/env node const fs = require('fs');