From f14e94d439461eca791250bf36b7b50416cd0d4e Mon Sep 17 00:00:00 2001 From: yosuke ota Date: Mon, 22 Aug 2022 22:29:27 +0900 Subject: [PATCH] chore: add changesets config --- .changeset/README.md | 8 ++++++++ .changeset/config.json | 16 ++++++++++++++++ package.json | 4 ++++ 3 files changed, 28 insertions(+) create mode 100644 .changeset/README.md create mode 100644 .changeset/config.json diff --git a/.changeset/README.md b/.changeset/README.md new file mode 100644 index 00000000..e5b6d8d6 --- /dev/null +++ b/.changeset/README.md @@ -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) diff --git a/.changeset/config.json b/.changeset/config.json new file mode 100644 index 00000000..bfe5c91b --- /dev/null +++ b/.changeset/config.json @@ -0,0 +1,16 @@ +{ + "$schema": "https://unpkg.com/@changesets/config/schema.json", + "changelog": [ + "@changesets/changelog-github", + { + "repo": "ota-meshi/svelte-eslint-parser" + } + ], + "commit": false, + "linked": [], + "access": "restricted", + "baseBranch": "main", + "updateInternalDependencies": "patch", + "bumpVersionsWithWorkspaceProtocolOnly": true, + "ignore": [] +} diff --git a/package.json b/package.json index 00f403ca..3e389779 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,9 @@ "lint": "eslint . --ext .js,.ts,.json,.yaml,.yml,.svelte", "mocha": "yarn ts ./node_modules/mocha/bin/mocha.js", "prebuild": "yarn clean", + "prerelease": "yarn clean && yarn build", "preversion": "yarn lint && yarn test", + "release": "changeset publish", "test": "yarn mocha \"tests/src/**/*.ts\" --reporter dot --timeout 60000", "ts": "node -r esbuild-register", "update-fixtures": "yarn ts ./tools/update-fixtures.ts" @@ -49,6 +51,8 @@ "espree": "^9.0.0" }, "devDependencies": { + "@changesets/changelog-github": "^0.4.6", + "@changesets/cli": "^2.24.2", "@ota-meshi/eslint-plugin": "^0.11.0", "@types/benchmark": "^2.1.1", "@types/chai": "^4.3.0",