Skip to content

Commit 4fa10f0

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

14 files changed

Lines changed: 888 additions & 608 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

.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)