Skip to content

Commit

Permalink
build: update release script
Browse files Browse the repository at this point in the history
  • Loading branch information
liuweiGL committed Jul 2, 2021
1 parent afffd57 commit bb9eada
Show file tree
Hide file tree
Showing 7 changed files with 1,741 additions and 60 deletions.
21 changes: 16 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,24 @@
"private": true,
"license": "MIT",
"engines": {
"pnpm": ">=6"
"pnpm": ">=6",
"npm": ">=7"
},
"workspaces": [
"packages/*"
],
"scripts": {
"dev": "pnpm dev -r --filter vite-plugin-mkcert",
"build": "pnpm build -r --filter vite-plugin-mkcert",
"prepublishOnly": "pnpm changeset version",
"preinstall": "npx only-allow pnpm"
"dev": "npm run dev --workspace=vite-plugin-mkcert",
"build": "npm run build --workspace=vite-plugin-mkcert",
"preinstall": "npx only-allow pnpm",
"preversion": "npm run build",
"version": "npm version -ws --git-tag-version",
"postversion": "npm run changelog --workspace=script",
"version:alpha": "npm run version prerelease --preid alpha",
"version:patch": "npm run version patch",
"version:minor": "npm run version minor",
"version:major": "npm run version major",
"postpublish": "npm run release --workspace=script"
},
"devDependencies": {
"@types/debug": "^4.1.6",
Expand Down
12 changes: 0 additions & 12 deletions packages/plugin/CHANGELOG.md

This file was deleted.

3 changes: 1 addition & 2 deletions packages/plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
"main": "dist/src/index",
"scripts": {
"dev": "tsc -w",
"build": "rimraf dist && tsc",
"prepublishOnly": "pnpm build"
"build": "rimraf dist && tsc"
},
"dependencies": {
"@octokit/rest": "^18.6.6",
Expand Down
31 changes: 31 additions & 0 deletions packages/script/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

# Changelog

## v1.1.0(2021-06-01)


### :tada: Enhancements

1. [feat(plugin): plugin only works in serve mode](https://github.com/liuweiGL/vite-plugin-mkcert/commit/d471652) :point_right: ( [liuwei](https://github.com/liuwei) )

1. [feat: add logger prefix](https://github.com/liuweiGL/vite-plugin-mkcert/commit/bee34ee) :point_right: ( [liuwei](https://github.com/liuwei) )


### :beetle: Bug Fixes

1. [feat: add logger prefix](https://github.com/liuweiGL/vite-plugin-mkcert/commit/bee34ee) :point_right: ( [liuwei](https://github.com/liuwei) )


### :memo: Documents Changes

1. [docs: add changelog link](https://github.com/liuweiGL/vite-plugin-mkcert/commit/bbef77f) :point_right: ( [liuwei](https://github.com/liuwei) )

1. [docs: update plugin readme](https://github.com/liuweiGL/vite-plugin-mkcert/commit/71c6ca4) :point_right: ( [liuwei](https://github.com/liuwei) )


### :blush: Other Changes

1. [chore: conform with the vite plugin conventions](https://github.com/liuweiGL/vite-plugin-mkcert/commit/4097e30) :point_right: ( [liuwei](https://github.com/liuwei) )



5 changes: 3 additions & 2 deletions packages/script/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"name": "script",
"version": "1.1.0",
"version": "1.1.1",
"private": true,
"scripts": {
"release": "ts-node index.ts changelog && git add -A"
"changelog": "ts-node src/index.ts changelog && git add -A",
"release": "ts-node src/index.ts release"
},
"devDependencies": {
"execa": "^5.1.1",
Expand Down
9 changes: 9 additions & 0 deletions packages/script/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"compilerOptions": {
"esModuleInterop": true,
"moduleResolution": "node",
"module": "commonjs",
"target": "ESNext",
"baseUrl": "."
}
}
Loading

0 comments on commit bb9eada

Please sign in to comment.