Skip to content

Commit

Permalink
build: use changesets for versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
fi3ework committed May 3, 2023
1 parent 835f829 commit f26ab6a
Show file tree
Hide file tree
Showing 7 changed files with 777 additions and 677 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.3.0/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
16 changes: 0 additions & 16 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,6 @@ pnpm build
pnpm dev
```

## Release

`cd` to `packages/vite-plugin-checker`.

Release with interactive CLI

```bash
npm run release
```

or release with an explicit version or dry run flag

```bash
npm run release -- --version=1.2.3 --dry
```

## Publish

Package is automated published in CI, see `.github/workflows/release.yml`.
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
]
},
"devDependencies": {
"@changesets/cli": "^2.26.1",
"@tsconfig/esm": "^1.0.2",
"@tsconfig/node18": "^1.0.1",
"@tsconfig/strictest": "^2.0.0",
Expand All @@ -55,7 +56,6 @@
"@typescript-eslint/eslint-plugin": "^5.59.0",
"@typescript-eslint/parser": "^5.59.0",
"chalk": "^4.1.1",
"conventional-changelog-cli": "^2.1.1",
"cross-env": "^7.0.3",
"eslint": "^8.11.0",
"eslint-config-alloy": "^4.5.1",
Expand Down Expand Up @@ -85,7 +85,6 @@
"vite": "^4.3.0",
"vite-plugin-checker": "workspace:*",
"vitest": "^0.30.1",
"ws": "^8.5.0",
"zx": "^1.14.2"
"ws": "^8.5.0"
}
}
6 changes: 2 additions & 4 deletions packages/vite-plugin-checker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@
"scripts": {
"dev": "tsup --watch",
"clean": "rimraf dist",
"build": "tsup && zx ../../scripts/patchCjs.mjs",
"build:test": "tsup --sourcemap inline",
"changelog": "conventional-changelog -p angular -i ../../CHANGELOG.md -s --commit-path ../../ --lerna-package vite-plugin-checker",
"release": "zx ../../scripts/release.mjs"
"build": "tsup && node ../../scripts/patchCjs.mjs",
"build:test": "tsup --sourcemap inline"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit f26ab6a

Please sign in to comment.