Skip to content

Commit 40c7861

Browse files
committed
Update: Bump esbuild and add support for new import path format
1 parent bcc98f1 commit 40c7861

15 files changed

Lines changed: 892 additions & 612 deletions

.github/workflows/publish_dev.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ jobs:
1717
node-version: '18.x'
1818
registry-url: 'https://registry.npmjs.org'
1919
- run: |
20+
BRANCH_SLUG=$(echo "${{ github.ref_name }}" | sed 's|/|-|g')
2021
SHORT_SHA=$(echo ${{ github.sha }} | cut -c1-7)
21-
npm version 0.0.0-${{ github.ref_slug }}-$SHORT_SHA --no-git-tag-version
22+
npm version 0.0.0-${BRANCH_SLUG}-${SHORT_SHA} --no-git-tag-version
2223
npm ci
2324
npm run compile
2425
npm publish --tag beta --provenance

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
cache: 'npm'
2121
cache-dependency-path: package-lock.json
2222
- name: node_modules cache
23-
uses: actions/cache@v2
23+
uses: actions/cache@v3
2424
with:
2525
path: node_modules
2626
key: ${{ runner.OS }}-cache-${{ hashFiles('**/package-lock.json') }}
@@ -37,7 +37,7 @@ jobs:
3737
with:
3838
node-version: ${{ env.NODE_VERSION }}
3939
- name: node_modules cache
40-
uses: actions/cache@v2
40+
uses: actions/cache@v3
4141
with:
4242
path: node_modules
4343
key: ${{ runner.OS }}-cache-${{ hashFiles('**/package-lock.json') }}
@@ -54,7 +54,7 @@ jobs:
5454
with:
5555
node-version: ${{ env.NODE_VERSION }}
5656
- name: node_modules cache
57-
uses: actions/cache@v2
57+
uses: actions/cache@v3
5858
with:
5959
path: node_modules
6060
key: ${{ runner.OS }}-cache-${{ hashFiles('**/package-lock.json') }}
@@ -71,7 +71,7 @@ jobs:
7171
with:
7272
node-version: ${{ env.NODE_VERSION }}
7373
- name: node_modules cache
74-
uses: actions/cache@v2
74+
uses: actions/cache@v3
7575
with:
7676
path: node_modules
7777
key: ${{ runner.OS }}-cache-${{ hashFiles('**/package-lock.json') }}

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
registry="https://registry.npmjs.org"

examples/examples.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { readFileSync } from 'fs';
2-
import { join } from 'path';
1+
import { readFileSync } from 'node:fs';
2+
import { join } from 'node:path';
33

44
import funpack from '../src';
55

@@ -23,7 +23,7 @@ const directories = [
2323
dir: 'module-splitting',
2424
expectedOutput: [
2525
{ name: 'exampleTwo', zip: { approxSize: 432 } },
26-
{ name: 'exampleOne', zip: { approxSize: 21597 } },
26+
{ name: 'exampleOne', zip: { approxSize: 21868 } },
2727
],
2828
},
2929
{

0 commit comments

Comments
 (0)