Skip to content

Commit d3d583a

Browse files
committed
Merge remote-tracking branch 'upstream/master' into node-resolve-module-paths
# Conflicts: # packages/node-resolve/src/index.js
2 parents 592cb4f + 902fb3d commit d3d583a

File tree

84 files changed

+3098
-2153
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+3098
-2153
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,16 @@ If yes, then include "BREAKING CHANGES:" in the first commit message body, follo
3939

4040
List any relevant issue numbers:
4141

42+
<!--
43+
If this PR resolves any issues, list them as
44+
45+
resolves #1234
46+
47+
where 1234 is the issue number. This will help us with house-keeping as Github will automatically add a note to those issues stating that a potential fix exists. Once the PR is merged, Github will automatically close those issues.
48+
49+
If an issue is only solved partially or is relevant in some other way, just list the number without "resolves".
50+
-->
51+
4252
### Description
4353

4454
<!--

.github/workflows/node-windows.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,31 @@ jobs:
1717

1818
strategy:
1919
matrix:
20-
node: ['18', '16', '14']
20+
node: ['20', '18']
2121

2222
name: Node v${{ matrix.node }}
2323
steps:
2424
- name: Configure git line-breaks
2525
run: git config --global core.autocrlf false
2626

2727
- name: Checkout Commit
28-
uses: actions/checkout@v1
28+
uses: actions/checkout@v4
29+
with:
30+
fetch-depth: 2
2931

30-
- name: Checkout Master
31-
run: git branch -f master origin/master
32+
- name: Update Master
33+
run: git pull --force --no-tags origin master:master
3234

3335
- name: Setup Node
34-
uses: actions/setup-node@v1
36+
uses: actions/setup-node@v3
3537
with:
3638
node-version: ${{ matrix.node }}
3739

38-
- name: install pnpm
39-
run: npm install pnpm@7 -g
40+
- name: Enable Corepack
41+
id: pnpm-setup
42+
run: |
43+
corepack enable
44+
corepack prepare pnpm@latest --activate
4045
4146
- name: pnpm install
4247
run: pnpm install --ignore-scripts

.github/workflows/pr-title.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ jobs:
1515
name: Check
1616
runs-on: ubuntu-latest
1717
steps:
18-
- name: Checkout
19-
uses: actions/checkout@v2
2018
- name: Check PR Title
2119
uses: clowdhaus/actions/pr-title@v0.1.0
2220
with:

.github/workflows/release.yml

Lines changed: 36 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,34 +18,58 @@ jobs:
1818

1919
steps:
2020
- name: Checkout Commit
21-
uses: actions/checkout@v1
21+
uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 2
24+
25+
- name: Update Master
26+
run: |
27+
git pull --force --no-tags origin master:master
28+
git checkout master
2229
2330
- name: Setup Node
24-
uses: actions/setup-node@v1
31+
uses: actions/setup-node@v3
2532
with:
26-
node-version: 18
33+
node-version: 20
2734
registry-url: https://registry.npmjs.org/
2835

29-
- name: Checkout Master
36+
- name: Enable Corepack
37+
id: pnpm-setup
3038
run: |
31-
git branch -f master origin/master
32-
git checkout master
39+
corepack enable
40+
corepack prepare pnpm@latest --activate
41+
pnpm config set script-shell "/usr/bin/bash"
42+
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
43+
44+
- name: pnpm Cache
45+
uses: actions/cache@v3
46+
with:
47+
path: ${{ steps.pnpm-setup.outputs.pnpm_cache_dir }}
48+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
49+
restore-keys: |
50+
${{ runner.os }}-pnpm-store-
51+
52+
- name: ESLint Cache
53+
uses: actions/cache@v3
54+
with:
55+
path: ./.eslintcache
56+
key: ${{ runner.os }}-eslintcache-${{ hashFiles('./eslintcache') }}
57+
restore-keys: |
58+
${{ runner.os }}-eslintcache-
3359
3460
- name: Sanity Check
3561
run: |
62+
echo git `git version`;
3663
echo branch `git branch --show-current`;
3764
echo node `node -v`;
65+
echo pnpm `pnpm -v`
66+
echo `moon --version`
3867
3968
- name: Initliaze .npmrc
4069
run: >
4170
echo -e "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}\n$(cat .npmrc)" > .npmrc
4271
&& cat -n .npmrc
4372
44-
- name: Install pnpm
45-
run: |
46-
npm install pnpm@7 -g;
47-
echo node `pnpm -v`;
48-
4973
- name: Set Git Config
5074
run: |
5175
git config pull.rebase false
@@ -54,7 +78,7 @@ jobs:
5478
git remote set-url origin https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}
5579
5680
- name: pnpm install
57-
run: pnpm install
81+
run: pnpm install --frozen-lockfile
5882

5983
- name: Build Packages
6084
run: pnpm --recursive build

.github/workflows/validate.yml

Lines changed: 35 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,33 +17,58 @@ jobs:
1717

1818
strategy:
1919
matrix:
20-
node: ['18', '16', '14']
20+
node: ['20', '18']
2121

2222
name: Node v${{ matrix.node }}
2323

2424
steps:
2525
- name: Checkout Commit
26-
uses: actions/checkout@v1
26+
uses: actions/checkout@v4
27+
with:
28+
fetch-depth: 2
29+
30+
- name: Update Master
31+
run: git pull --force --no-tags origin master:master
2732

2833
- name: Setup Node
29-
uses: actions/setup-node@v1
34+
uses: actions/setup-node@v3
3035
with:
3136
node-version: ${{ matrix.node }}
3237

33-
- name: Checkout Master
34-
run: git branch -f master origin/master
38+
- name: Enable Corepack
39+
id: pnpm-setup
40+
run: |
41+
corepack enable
42+
corepack prepare pnpm@latest --activate
43+
pnpm config set script-shell "/usr/bin/bash"
44+
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
45+
46+
- name: pnpm Cache
47+
uses: actions/cache@v3
48+
with:
49+
path: ${{ steps.pnpm-setup.outputs.pnpm_cache_dir }}
50+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
51+
restore-keys: |
52+
${{ runner.os }}-pnpm-store-
3553
36-
- name: Install pnpm
37-
run: npm install pnpm@7 -g
54+
- name: ESLint Cache
55+
uses: actions/cache@v3
56+
with:
57+
path: ./.eslintcache
58+
key: ${{ runner.os }}-eslintcache-${{ hashFiles('./eslintcache') }}
59+
restore-keys: |
60+
${{ runner.os }}-eslintcache-
3861
3962
- name: Sanity Check
4063
run: |
64+
echo git `git version`;
4165
echo branch `git branch --show-current`;
42-
echo node `node --version`;
43-
echo yarn `pnpm --version`
66+
echo node `node -v`;
67+
echo pnpm `pnpm -v`
68+
echo `moon --version`
4469
4570
- name: pnpm install
46-
run: pnpm install
71+
run: pnpm install --frozen-lockfile
4772

4873
- name: Prettier
4974
run: pnpm run prettier:check

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
14
1+
20

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"husky": "8.0.1",
3939
"lint-staged": "11.0.1",
4040
"nyc": "^15.1.0",
41-
"pnpm": "^7.12.2",
41+
"pnpm": "^8.7.5",
4242
"prettier-plugin-package": "^1.3.0",
4343
"semver": "^7.3.2",
4444
"source-map-support": "^0.5.21",

packages/babel/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}",
3131
"ci:test": "pnpm test -- --verbose",
3232
"prebuild": "del-cli dist",
33+
"prepare": "if [ ! -d 'dist' ]; then pnpm build; fi",
3334
"prerelease": "pnpm build",
3435
"pretest": "pnpm build",
3536
"release": "pnpm --workspace-root plugin:release --pkg $npm_package_name",

packages/commonjs/CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# @rollup/plugin-commonjs ChangeLog
22

3+
## v25.0.4
4+
5+
_2023-08-11_
6+
7+
### Updates
8+
9+
- docs: update docs [#1545](https://github.com/rollup/plugins/pull/1545)
10+
11+
## v25.0.3
12+
13+
_2023-07-15_
14+
15+
### Bugfixes
16+
17+
- fix: preserve `this` reference in the child class [#1537](https://github.com/rollup/plugins/pull/1537)
18+
319
## v25.0.2
420

521
_2023-06-19_

packages/commonjs/README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,18 @@ For these situations, you can change Rollup's behaviour either globally or per m
299299
import * as dep$1 from 'dep';
300300

301301
function getAugmentedNamespace(n) {
302-
var a = Object.defineProperty({}, '__esModule', { value: true });
302+
if (n.__esModule) return n;
303+
var f = n.default;
304+
if (typeof f == 'function') {
305+
var a = function a() {
306+
if (this instanceof a) {
307+
return Reflect.construct(f, arguments, this.constructor);
308+
}
309+
return f.apply(this, arguments);
310+
};
311+
a.prototype = f.prototype;
312+
} else a = {};
313+
Object.defineProperty(a, '__esModule', { value: true });
303314
Object.keys(n).forEach(function (k) {
304315
var d = Object.getOwnPropertyDescriptor(n, k);
305316
Object.defineProperty(

0 commit comments

Comments
 (0)