diff --git a/.release-plan.json b/.release-plan.json new file mode 100644 index 0000000..fa2a127 --- /dev/null +++ b/.release-plan.json @@ -0,0 +1,21 @@ +{ + "solution": { + "esyes": { + "impact": "patch", + "oldVersion": "1.0.0", + "newVersion": "1.0.1", + "constraints": [ + { + "impact": "patch", + "reason": "Appears in changelog section :bug: Bug Fix" + }, + { + "impact": "patch", + "reason": "Appears in changelog section :house: Internal" + } + ], + "pkgJSONPath": "./package.json" + } + }, + "description": "## Release (2024-01-03)\n\nesyes 1.0.1 (patch)\n\n#### :bug: Bug Fix\n* `esyes`\n * [#3](https://github.com/starbeamjs/esyes/pull/3) Add tests ([@NullVoxPopuli](https://github.com/NullVoxPopuli))\n\n#### :house: Internal\n* `esyes`\n * [#4](https://github.com/starbeamjs/esyes/pull/4) Setup release-plan ([@NullVoxPopuli](https://github.com/NullVoxPopuli))\n * [#3](https://github.com/starbeamjs/esyes/pull/3) Add tests ([@NullVoxPopuli](https://github.com/NullVoxPopuli))\n * [#2](https://github.com/starbeamjs/esyes/pull/2) Add a repo and change the license, add package linting ([@NullVoxPopuli](https://github.com/NullVoxPopuli))\n\n#### Committers: 1\n- [@NullVoxPopuli](https://github.com/NullVoxPopuli)\n" +} diff --git a/CHANGELOG.md b/CHANGELOG.md index 825c32f..ee7ba3e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1 +1,17 @@ # Changelog +## Release (2024-01-03) + +esyes 1.0.1 (patch) + +#### :bug: Bug Fix +* `esyes` + * [#3](https://github.com/starbeamjs/esyes/pull/3) Add tests ([@NullVoxPopuli](https://github.com/NullVoxPopuli)) + +#### :house: Internal +* `esyes` + * [#4](https://github.com/starbeamjs/esyes/pull/4) Setup release-plan ([@NullVoxPopuli](https://github.com/NullVoxPopuli)) + * [#3](https://github.com/starbeamjs/esyes/pull/3) Add tests ([@NullVoxPopuli](https://github.com/NullVoxPopuli)) + * [#2](https://github.com/starbeamjs/esyes/pull/2) Add a repo and change the license, add package linting ([@NullVoxPopuli](https://github.com/NullVoxPopuli)) + +#### Committers: 1 +- [@NullVoxPopuli](https://github.com/NullVoxPopuli) diff --git a/package.json b/package.json index 2323f14..55861c8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "esyes", "type": "module", - "version": "1.0.0", + "version": "1.0.1", "description": "Run your TypeScript files quickly and with more positivity.", "license": "MIT", "main": "./src/register.js", @@ -41,9 +41,14 @@ "bin": { "esyes": "src/bin.js" }, + "pnpm": { + "patchedDependencies": { + "@ef4/lerna-changelog@2.0.0": "patches/@ef4__lerna-changelog@2.0.0.patch" + } + }, "repository": "https://github.com/starbeamjs/esyes", "volta": { "node": "21.5.0", "pnpm": "8.13.1" } -} \ No newline at end of file +} diff --git a/patches/@ef4__lerna-changelog@2.0.0.patch b/patches/@ef4__lerna-changelog@2.0.0.patch new file mode 100644 index 0000000..1f89da0 --- /dev/null +++ b/patches/@ef4__lerna-changelog@2.0.0.patch @@ -0,0 +1,132 @@ +diff --git a/lib/git.js b/lib/git.js +index b712bb439bed6c4c63360af7f5f2e7c51cfa613d..ee01e78a40569424cc6e7e67d7a56747ef97ac98 100644 +--- a/lib/git.js ++++ b/lib/git.js +@@ -1,61 +1,90 @@ + "use strict"; +-var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { +- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } ++var __awaiter = ++ (this && this.__awaiter) || ++ function (thisArg, _arguments, P, generator) { ++ function adopt(value) { ++ return value instanceof P ++ ? value ++ : new P(function (resolve) { ++ resolve(value); ++ }); ++ } + return new (P || (P = Promise))(function (resolve, reject) { +- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } +- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } +- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } +- step((generator = generator.apply(thisArg, _arguments || [])).next()); ++ function fulfilled(value) { ++ try { ++ step(generator.next(value)); ++ } catch (e) { ++ reject(e); ++ } ++ } ++ function rejected(value) { ++ try { ++ step(generator["throw"](value)); ++ } catch (e) { ++ reject(e); ++ } ++ } ++ function step(result) { ++ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); ++ } ++ step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +-}; ++ }; + Object.defineProperty(exports, "__esModule", { value: true }); +-exports.listCommits = exports.parseLogMessage = exports.lastTag = exports.listTagNames = exports.changedPaths = exports.getRootPath = void 0; ++exports.listCommits = ++ exports.parseLogMessage = ++ exports.lastTag = ++ exports.listTagNames = ++ exports.changedPaths = ++ exports.getRootPath = ++ void 0; + const execa = require("execa"); + function getRootPath() { +- const cwd = process.cwd(); +- return execa.sync("git", ["rev-parse", "--show-toplevel"], { cwd }).stdout; ++ const cwd = process.cwd(); ++ return execa.sync("git", ["rev-parse", "--show-toplevel"], { cwd }).stdout; + } + exports.getRootPath = getRootPath; + function changedPaths(sha) { +- return __awaiter(this, void 0, void 0, function* () { +- const result = yield execa("git", ["show", "-m", "--name-only", "--pretty=format:", "--first-parent", sha]); +- return result.stdout.split("\n"); +- }); ++ return __awaiter(this, void 0, void 0, function* () { ++ const result = yield execa("git", ["show", "-m", "--name-only", "--pretty=format:", "--first-parent", sha]); ++ return result.stdout.split("\n"); ++ }); + } + exports.changedPaths = changedPaths; + function listTagNames() { +- return execa.sync("git", ["tag"]).stdout.split("\n").filter(Boolean); ++ return execa.sync("git", ["tag"]).stdout.split("\n").filter(Boolean); + } + exports.listTagNames = listTagNames; + function lastTag() { +- return execa.sync("git", ["describe", "--abbrev=0", "--tags"]).stdout; ++ let ref = execa.sync("git", ["rev-list", "--tags", "--max-count=1"]).stdout; ++ return execa.sync("git", ["describe", "--tags", ref]).stdout; + } + exports.lastTag = lastTag; + function parseLogMessage(commit) { +- const parts = commit.match(/hash<(.+)> ref<(.*)> message<(.*)> date<(.*)>/) || []; +- if (!parts || parts.length === 0) { +- return null; +- } +- return { +- sha: parts[1], +- refName: parts[2], +- summary: parts[3], +- date: parts[4], +- }; ++ const parts = commit.match(/hash<(.+)> ref<(.*)> message<(.*)> date<(.*)>/) || []; ++ if (!parts || parts.length === 0) { ++ return null; ++ } ++ return { ++ sha: parts[1], ++ refName: parts[2], ++ summary: parts[3], ++ date: parts[4], ++ }; + } + exports.parseLogMessage = parseLogMessage; + function listCommits(from, to = "") { +- return execa +- .sync("git", [ +- "log", +- "--oneline", +- "--pretty=hash<%h> ref<%D> message<%s> date<%cd>", +- "--date=short", +- `${from}..${to}`, ++ return execa ++ .sync("git", [ ++ "log", ++ "--oneline", ++ "--pretty=hash<%h> ref<%D> message<%s> date<%cd>", ++ "--date=short", ++ `${from}..${to}`, + ]) +- .stdout.split("\n") +- .filter(Boolean) +- .map(parseLogMessage) +- .filter(Boolean); ++ .stdout.split("\n") ++ .filter(Boolean) ++ .map(parseLogMessage) ++ .filter(Boolean); + } + exports.listCommits = listCommits; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index eea7d67..916a0e8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,6 +4,11 @@ settings: autoInstallPeers: true excludeLinksFromLockfile: false +patchedDependencies: + '@ef4/lerna-changelog@2.0.0': + hash: dwb4balcfgo6jbbmygouw5lpmq + path: patches/@ef4__lerna-changelog@2.0.0.patch + importers: .: @@ -97,7 +102,7 @@ packages: regenerator-runtime: 0.14.1 dev: true - /@ef4/lerna-changelog@2.0.0: + /@ef4/lerna-changelog@2.0.0(patch_hash=dwb4balcfgo6jbbmygouw5lpmq): resolution: {integrity: sha512-dCT3wMC501ZQqFwroxuDrktSm8tgrmMO67S7hRbJqRbbUarkYd0KVZPyW+O569lVBdEVTGTWWMNmPgGrD9IQjA==} engines: {node: 12.* || 14.* || >= 16} hasBin: true @@ -114,6 +119,7 @@ packages: - bluebird - supports-color dev: true + patched: true /@ericcornelissen/bash-parser@0.5.2: resolution: {integrity: sha512-4pIMTa1nEFfMXitv7oaNEWOdM+zpOZavesa5GaiWTgda6Zk32CFGxjUp/iIaN0PwgUW1yTq/fztSjbpE8SLGZQ==} @@ -4315,7 +4321,7 @@ packages: resolution: {integrity: sha512-5c4JdHXPtVDEbC/aNCaTAr+NrVm1NST3rCFSVkdGInXfJ8KLPFWBZ9/AtIniTRb+E6vjJwy33N9DTnuW76iRpQ==} hasBin: true dependencies: - '@ef4/lerna-changelog': 2.0.0 + '@ef4/lerna-changelog': 2.0.0(patch_hash=dwb4balcfgo6jbbmygouw5lpmq) '@npmcli/package-json': 5.0.0 '@octokit/rest': 19.0.13 '@types/fs-extra': 9.0.13