-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Merge pull request #703 from keindev/dev
build: release v6.0.0
- Loading branch information
Showing
18 changed files
with
7,635 additions
and
9,074 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
{ | ||
"name": "tasktree-cli", | ||
"version": "5.1.0", | ||
"version": "6.0.0", | ||
"description": "Simple terminal task tree - helps you keep track of your tasks in a tree structure.", | ||
"keywords": [ | ||
"ascii", | ||
"busy", | ||
"cli", | ||
"task", | ||
"tree", | ||
"terminal", | ||
"term", | ||
"console", | ||
"ascii", | ||
"loading", | ||
"idle", | ||
"indicator", | ||
"loading", | ||
"progress", | ||
"busy", | ||
"wait", | ||
"idle" | ||
"task", | ||
"term", | ||
"terminal", | ||
"tree", | ||
"wait" | ||
], | ||
"repo": "keindev/tasktree", | ||
"type": "utils", | ||
"links": { | ||
"homepage": "https://github.com/keindev/tasktree#readme", | ||
"git": "https://github.com/keindev/tasktree", | ||
"npm": "https://www.npmjs.com/package/tasktree-cli", | ||
"homepage": "https://github.com/keindev/tasktree#readme" | ||
"npm": "https://www.npmjs.com/package/tasktree-cli" | ||
}, | ||
"files": { | ||
"banner": "media/banner.svg", | ||
"demo": "media/demo.gif", | ||
"logo": "media/logo.svg", | ||
"social-preview": "media/social-preview.png" | ||
"logo": "media/logo.svg" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import semver from 'semver'; | ||
import { promises as fs } from 'fs'; | ||
|
||
const packageData = await fs.readFile(new URL('../../package.json', import.meta.url)); | ||
const { engines } = JSON.parse(packageData); | ||
|
||
const comparators = semver | ||
.toComparators(engines.node) | ||
.flat() | ||
.map(v => semver.coerce(v)); | ||
const minVersion = semver.minSatisfying(comparators, engines.node).version; | ||
const maxVersion = semver.maxSatisfying(comparators, engines.node).version; | ||
const mainVersion = `${semver.major(maxVersion)}.x`; | ||
|
||
console.log( | ||
JSON.stringify({ | ||
node: { | ||
matrix: { | ||
node: [minVersion, mainVersion], | ||
os: ['ubuntu-latest'], | ||
}, | ||
main: { | ||
version: mainVersion, | ||
os: 'ubuntu-latest', | ||
}, | ||
}, | ||
}) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.