forked from ds300/patch-package
- Sponsor
-
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.
Loading status checks…
chore: fork release based on PR ds300#507
Showing
6 changed files
with
1,359 additions
and
521 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |
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,16 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@changesets/config/schema.json", | ||
"changelog": [ | ||
"@changesets/changelog-github", | ||
{ | ||
"repo": "un-ts/patch-package" | ||
} | ||
], | ||
"commit": false, | ||
"fixed": [], | ||
"linked": [], | ||
"access": "public", | ||
"baseBranch": "fork-release", | ||
"updateInternalDependencies": "patch", | ||
"ignore": [] | ||
} |
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,22 +1,29 @@ | ||
on: | ||
pull_request: | ||
push: | ||
branches: [master] | ||
branches: | ||
- master | ||
name: Test | ||
jobs: | ||
test: | ||
name: ${{ matrix.os }} on node ${{ matrix.node }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
node: [14, 16, 18] | ||
os: | ||
- ubuntu-latest | ||
node: | ||
- 14 | ||
- 16 | ||
- 18 | ||
- 20 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- run: yarn install | ||
cache: yarn | ||
- run: yarn --immutable | ||
- run: git config --global user.email "[email protected]" | ||
- run: git config --global user.name "patch-package" | ||
- run: yarn run test | ||
- run: yarn test |
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,40 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- fork-release | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
with: | ||
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits | ||
fetch-depth: 0 | ||
|
||
- name: Enable Corepack | ||
run: corepack enable | ||
|
||
- name: Setup Node.js LTS | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: lts/* | ||
cache: yarn | ||
|
||
- name: Install Dependencies | ||
run: yarn --immutable | ||
|
||
- name: Create Release Pull Request or Publish to npm | ||
id: changesets | ||
uses: changesets/action@v1 | ||
with: | ||
commit: "chore: release @unts/patch-package" | ||
title: "chore: release @unts/patch-package" | ||
publish: yarn changeset publish | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
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,16 +1,21 @@ | ||
{ | ||
"name": "patch-package", | ||
"name": "@unts/patch-package", | ||
"version": "8.0.0", | ||
"description": "Fix broken node modules with no fuss", | ||
"main": "dist/index.js", | ||
"repository": "github:ds300/patch-package", | ||
"repository": "git+https://github.com/un-ts/patch-package.git", | ||
"author": "David Sheldrick", | ||
"maintainers": [ | ||
"JounQin (https://www.1stG.me) <[email protected]>" | ||
], | ||
"license": "MIT", | ||
"engines": { | ||
"node": ">=14", | ||
"npm": ">5" | ||
}, | ||
"bin": "./index.js", | ||
"bin": { | ||
"patch-package": "./index.js" | ||
}, | ||
"scripts": { | ||
"prepublishOnly": "yarn run clean && yarn run build", | ||
"build": "tsc --project tsconfig.build.json", | ||
|
@@ -48,6 +53,8 @@ | |
] | ||
}, | ||
"devDependencies": { | ||
"@changesets/changelog-github": "^0.5.0", | ||
"@changesets/cli": "^2.27.1", | ||
"@types/app-root-path": "^1.2.4", | ||
"@types/cross-spawn": "^6.0.0", | ||
"@types/fs-extra": "^9.0.0", | ||
|