From 0481d421ec67ab588a31366c38a4146009fbd149 Mon Sep 17 00:00:00 2001 From: Theo Gravity Date: Sat, 4 Apr 2020 14:28:16 -0700 Subject: [PATCH] v4 release --- .circleci/config.yml | 2 +- .version-bump.js | 2 +- README.md | 2 +- package-lock.json | 10 ++++++++++ package.json | 10 +++++----- 5 files changed, 18 insertions(+), 8 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ed5a79f..67319d0 100755 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -10,6 +10,7 @@ npm-login: &npm-login # Add the NPM_TOKEN name and the value is your npm token # Get your npm token via npm token create # https://docs.npmjs.com/cli/token + # Token represents the npm gravity.bot user run: name: Create .npmrc command: | @@ -105,4 +106,3 @@ workflows: only: master requires: - test - context: npm-build diff --git a/.version-bump.js b/.version-bump.js index 8bd8599..60ebce1 100755 --- a/.version-bump.js +++ b/.version-bump.js @@ -7,5 +7,5 @@ // since the file is imported using require() // See command line options for additional available properties module.exports = { - strategy: 'cli' + strategy: 'git-commit-subj' } diff --git a/README.md b/README.md index 4eeb005..3a9605a 100755 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ should also work. ```sh # v4 of sqlite is targted for nodejs 10 and on. -$ npm install sqlite@4.0.0-beta.7 --save +$ npm install sqlite --save # If you need a legacy version for an older version of nodejs # install v3 instead, and look at the v3 branch readme for usage details diff --git a/package-lock.json b/package-lock.json index 64a6399..ed20353 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9513,6 +9513,16 @@ "extsprintf": "^1.2.0" } }, + "version-bump-plugin-git": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/version-bump-plugin-git/-/version-bump-plugin-git-2.0.1.tgz", + "integrity": "sha512-BgVQO3egQB3Kr61qD0N806VvSuye8QOfqK+CLyU3Fjma5Hxy9lxITxMOBio5J0G7OkcuKFcd38y3hIlFO0RpBw==", + "dev": true, + "requires": { + "@theo.gravity/version-bump": "^2.0.6", + "git-last-commit": "^1.0.0" + } + }, "vfile": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/vfile/-/vfile-4.0.3.tgz", diff --git a/package.json b/package.json index a82bc61..35e3e6c 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sqlite", - "version": "4.0.0-beta.7", + "version": "4.0.0", "description": "SQLite client for Node.js applications with SQL-based migrations API written in Typescript", "main": "build/index.js", "types": "build/index.d.ts", @@ -17,9 +17,9 @@ "test:watch": "jest --watch", "test:coverage:watch": "jest --coverage --watch", "toc": "toc-md README.md README.md", - "add-readme": "git add README.md", "lint-staged": "lint-staged", "prepare-publish": "npm run changelog:prepare && version-bump && npm run changelog:release && npm run changelog:stamp", + "add-readme": "git add README.md", "version-bump": "version-bump", "changelog:help": "changelog-version", "changelog:verify": "changelog-version verify", @@ -91,7 +91,8 @@ "ts-node-dev": "1.0.0-pre.44", "typedoc": "^0.17.3", "typedoc-plugin-markdown": "^2.2.17", - "typescript": "3.8.3" + "typescript": "3.8.3", + "version-bump-plugin-git": "^2.0.1" }, "eslintConfig": { "parserOptions": { @@ -116,8 +117,7 @@ }, "lint-staged": { "src/**/*.ts": [ - "prettier-standard", - "git add" + "prettier-standard" ] }, "pre-commit": [