Skip to content

Commit

Permalink
Rewrite package.json for Github publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronhunter committed Nov 20, 2023
1 parent 5d94b1b commit d2e48ee
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
"scripts": {
"build": "tsc -p tsconfig.build.json",
"test": "vitest",
"release": "pnpm run build && pnpm run publish:github && pnpm run publish:npm",
"publish:github": "npm_config_registry=https://npm.pkg.github.com/ pnpm changeset publish",
"publish:npm": "npm_config_registry=https://registry.npmjs.org/ pnpm changeset publish"
"release": "pnpm run build && pnpm run publish:npm && pnpm run publish:github",
"publish:github": "pnpm run rewrite:package_name && npm_config_registry=https://npm.pkg.github.com/ pnpm changeset publish",
"publish:npm": "npm_config_registry=https://registry.npmjs.org/ pnpm changeset publish",
"rewrite:package_name": "jq '.name |= \"@cameronhunter/\" + .' package.json > package-github.json && mv package-github.json package.json"
},
"files": [
"build"
Expand All @@ -24,5 +25,9 @@
"vitest": "^0.34.6"
},
"packageManager": "pnpm@8.10.5",
"prettier": "@cameronhunter/prettier-config"
"prettier": "@cameronhunter/prettier-config",
"repository": {
"type": "git",
"url": "git@github.com:cameronhunter/sort-order.git"
}
}

0 comments on commit d2e48ee

Please sign in to comment.