Skip to content

Commit

Permalink
fix: remove extraneous items from final package
Browse files Browse the repository at this point in the history
fix: minify production package

chore: tweak tests to check for "full" parse

Signed-off-by: Gordon Smith <[email protected]>
  • Loading branch information
GordonSmith committed Jan 7, 2025
1 parent 3fed76c commit adf8b05
Show file tree
Hide file tree
Showing 7 changed files with 168 additions and 210 deletions.
4 changes: 1 addition & 3 deletions .github/.release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
{
".": "0.0.0"
}
{}
20 changes: 10 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@ jobs:
pull-requests: write

steps:
- name: Initialize Release Please
id: release
if: ${{ github.event_name == 'push' }}
uses: googleapis/release-please-action@v4
with:
target-branch: ${{ github.ref_name }}
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
config-file: .github/release-please-config.json
manifest-file: .github/.release-please-manifest.json

- name: Checkout Sources
uses: actions/checkout@v4

Expand All @@ -43,16 +53,6 @@ jobs:
run: |
npm test
- name: Initialize Release Please
id: release
if: ${{ github.event_name == 'push' }}
uses: googleapis/release-please-action@v4
with:
target-branch: ${{ github.ref_name }}
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
config-file: .github/release-please-config.json
manifest-file: .github/.release-please-manifest.json

- uses: lannonbr/[email protected]
if: ${{ steps.release.outputs.release_created }}
with:
Expand Down
14 changes: 14 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Ignore everything
*
*/**

# Whitelist required files
!dist*/**/*
!resources/**/*

!.vscodeignore
!CHANGELOG.md
!LICENSE
!package.json
!package.*.json
!README.md
2 changes: 1 addition & 1 deletion esbuild.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ async function main(tsconfigRaw, entryPoint, platform, format, plugins = []) {
outdir: outputDirectory,
bundle: true,
format,
minify: false, //production,
minify: production,
sourcemap: !production ? "linked" : false,
platform,
target: platform === "node" ? "node20" : "es2022",
Expand Down
Loading

0 comments on commit adf8b05

Please sign in to comment.