diff --git a/mise.toml b/mise.toml index 14da141..28f76cd 100644 --- a/mise.toml +++ b/mise.toml @@ -11,5 +11,7 @@ npx rollup -c """ [tasks.test] -depends = ["lint"] run = "npx jest" + +[tasks.prepublish] +depends = ["lint", "test", "build"] diff --git a/package.json b/package.json index ac5c36b..593c0be 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "types": "dist/index.d.ts", "scripts": { "build": "mise run build", + "prepublishOnly": "mise run prepublish", "test": "mise run test" }, "devDependencies": {