diff --git a/package.json b/package.json index d74ab1a..51f5e18 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,13 @@ { "name": "regle", + "version": "0.0.2", + "private": true, "description": "Vue form validator", "scripts": { - "dev": "bun dev", - "build": "bun build.config.ts", "lint": "eslint --ext .ts --ext .vue .", "typecheck": "vue-tsc --noEmit", - "release": "bumpp && npm publish && git push --follow-tags" + "build": "pnpm run -r --parallel build", + "release": "bumpp -r && pnpm run -r --parallel release && git push --follow-tags" }, "devDependencies": { "@types/prettier": "3.0.0", diff --git a/packages/core/package.json b/packages/core/package.json index 066a6ab..e50d782 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,13 +1,12 @@ { - "name": "@regle/core", - "version": "0.0.1-alpha.0", + "name": "regle", + "version": "0.0.2", "description": "Vue form validator", "scripts": { - "dev": "bun dev", - "build": "bun build.config.ts", "lint": "eslint --ext .ts --ext .vue .", "typecheck": "tsc --noEmit", - "release": "bumpp && npm publish && git push --follow-tags" + "release": "npm publish", + "build": "tsup" }, "devDependencies": { "@types/prettier": "3.0.0", @@ -24,11 +23,18 @@ "typescript": "5.2.2", "vue": "3.3.4", "vue-eslint-parser": "9.3.1", - "vue-tsc": "1.8.15" + "vue-tsc": "1.8.15", + "tsup": "7.2.0" }, "type": "module", - "main": "./src/index.ts", - "types": "./src/index.ts", + "exports": { + ".": { + "import": "./dist/index.js", + "require": "./dist/index.cjs" + } + }, + "main": "./dist/index.cjs", + "types": "./dist/index.d.ts", "files": [ "dist" ],