Skip to content

Commit

Permalink
chore: update lint
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jun 15, 2022
1 parent 57205f5 commit 07ca34d
Show file tree
Hide file tree
Showing 56 changed files with 3,178 additions and 2,146 deletions.
8 changes: 8 additions & 0 deletions .eslintrc
@@ -0,0 +1,8 @@
{
"extends": "@antfu",
"rules": {
"no-console": "off",
"no-undef": "off",
"promise/param-names": "off"
}
}
12 changes: 0 additions & 12 deletions .eslintrc.yml

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/CI-CD.yaml
Expand Up @@ -8,12 +8,12 @@ name: CI-CD
on:
push:
branches:
- "*"
- '*'
tags-ignore:
- "*"
- '*'

schedule:
- cron: "0 0 1 * *"
- cron: '0 0 1 * *'

jobs:
test:
Expand Down
1 change: 1 addition & 0 deletions .npmrc
@@ -0,0 +1 @@
shamefully-hoist=true
7 changes: 3 additions & 4 deletions .vscode/launch.json
Expand Up @@ -19,7 +19,7 @@
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
"args": [
"--timeout=60000",
"--retries=0",
"--retries=0"
],
"console": "integratedTerminal",
"outFiles": [
Expand All @@ -28,10 +28,9 @@
"smartStep": true,
"skipFiles": [
"<node_internals>/**/*.js"
],
]
},


{
"type": "node",
"request": "launch",
Expand All @@ -52,7 +51,7 @@
"smartStep": true,
"skipFiles": [
"<node_internals>/**/*.js"
],
]
}
]
}
4 changes: 2 additions & 2 deletions .vscode/tasks.json
Expand Up @@ -28,7 +28,7 @@
"group": {
"kind": "test",
"isDefault": true
},
},
}
}
]
}
8 changes: 5 additions & 3 deletions README.md
Expand Up @@ -6,9 +6,11 @@ Forked from [`version-bump-prompt`](https://github.com/JS-DevTools/version-bump-

###### Changes in this fork

- Renamed to `bumpp` - so you can use `npx bumpp` directly
- Ships ESM and CJS bundles
- Add a new argument `--execute` to execute the command before committing
- Renamed to `bumpp` - so you can use `npx bumpp` directly.
- Ships ESM and CJS bundles.
- Add a new argument `--execute` to execute the command before committing.
- Use current version's `preid` when avaliable.
- Enable `--commit` `--tag` `--push` by default. (opt-out by `--no-push`, etc.)

<details>
<summary>Original README</summary>
Expand Down
6 changes: 3 additions & 3 deletions bin/bumpp.js
@@ -1,4 +1,4 @@
#!/usr/bin/env node
"use strict";
const { main } = require("../dist/cli");
main(process.argv.slice(2));
'use strict'
const { main } = require('../dist/cli')
main(process.argv.slice(2))
48 changes: 24 additions & 24 deletions package.json
Expand Up @@ -3,6 +3,16 @@
"version": "7.2.0",
"packageManager": "pnpm@7.2.1",
"description": "Automatically (or with prompts) bump your version number, commit changes, tag, and push to Git",
"author": {
"name": "James Messinger",
"url": "https://jamesmessinger.com"
},
"license": "MIT",
"homepage": "https://jstools.dev/version-bump-prompt",
"repository": {
"type": "git",
"url": "https://github.com/antfu/bumpp.git"
},
"keywords": [
"version",
"bump",
Expand All @@ -15,16 +25,6 @@
"push",
"prompt"
],
"author": {
"name": "James Messinger",
"url": "https://jamesmessinger.com"
},
"license": "MIT",
"homepage": "https://jstools.dev/version-bump-prompt",
"repository": {
"type": "git",
"url": "https://github.com/antfu/bumpp.git"
},
"main": "dist/index.js",
"types": "dist/index.d.ts",
"bin": {
Expand All @@ -34,9 +34,12 @@
"bin",
"dist"
],
"engines": {
"node": ">=10"
},
"scripts": {
"clean": "rimraf .nyc_output coverage dist",
"lint": "eslint src test",
"lint": "eslint .",
"build": "tsup src/index.ts src/cli/index.ts --format esm,cjs --dts --clean",
"watch": "npm run build -- --watch src",
"start": "esno src/cli/run.ts",
Expand All @@ -47,9 +50,17 @@
"prepublishOnly": "npm run clean && npm run build",
"release": "npm run bumpp && npm publish"
},
"dependencies": {
"@jsdevtools/ez-spawn": "^3.0.4",
"cac": "^6.7.12",
"chalk": "^4.1.2",
"globby": "^11.0.4",
"prompts": "^2.4.1",
"semver": "^7.3.5"
},
"devDependencies": {
"@antfu/eslint-config": "^0.25.1",
"@jsdevtools/chai-exec": "^2.1.1",
"@jsdevtools/eslint-config": "^1.1.4",
"@types/chai": "^4.2.21",
"@types/inquirer": "^7.3.3",
"@types/mocha": "^8.2.3",
Expand All @@ -59,7 +70,7 @@
"chai": "^4.3.4",
"detect-indent": "^7.0.0",
"detect-newline": "^3.1.0",
"eslint": "^7.32.0",
"eslint": "^8.8.0",
"esno": "^0.9.1",
"log-symbols": "^4.1.0",
"mocha": "^8.4.0",
Expand All @@ -70,16 +81,5 @@
"tsup": "^5.11.9",
"typescript": "^4.4.2"
},
"dependencies": {
"@jsdevtools/ez-spawn": "^3.0.4",
"cac": "^6.7.12",
"chalk": "^4.1.2",
"globby": "^11.0.4",
"prompts": "^2.4.1",
"semver": "^7.3.5"
},
"engines": {
"node": ">=10"
},
"engineStrict": true
}

0 comments on commit 07ca34d

Please sign in to comment.