Skip to content

Commit

Permalink
Switch to tsup with imported json
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleyfrieze committed May 2, 2024
1 parent 54d3bb3 commit 8086326
Show file tree
Hide file tree
Showing 20 changed files with 996 additions and 1,712 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"cjs",
"esm",
"src/**/*.test.ts",
"src/**/*.test_.ts"
"src/**/*.test_.ts",
"tsup.config.ts"
]
}
16 changes: 3 additions & 13 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,8 @@ jobs:
id: version-from-tag
run: echo "version=$(echo '${{ steps.version-bump.outputs.newTag }}' | sed 's/v//')" >> "$GITHUB_OUTPUT"

- name: Generate types
run: npm run generate-types

- name: Build esm
run: |
npm run transpile-esm
npm run resources-esm
- name: Build cjs
run: |
npm run transpile-cjs
npm run resources-cjs
- name: Build esm, cjs, types
run: npm run build

- name: Build docs
run: |
Expand All @@ -88,7 +78,7 @@ jobs:
run: npm audit --omit dev --audit-level high

- name: Zip build artifacts
run: zip -r build.zip esm cjs mocks package.json package-lock.json snapshotResolve.js types docs
run: zip -r build.zip dist mocks package.json package-lock.json snapshotResolve.js types docs

- uses: actions/upload-artifact@v3
with:
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,6 @@ out
.pnp.*

test/fs_tmp/*
!test/fs_tmp/.gitkeep
!test/fs_tmp/.gitkeep

dist
3 changes: 0 additions & 3 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
.babelrc.js
.eslintrc
.github/
.prettierrc
babel.config.cjs.json
babel.config.esm.json
cjs/**/*.test.js
cjs/test/
CODE_OF_CONDUCT.md
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.14.0
18.17.0
17 changes: 0 additions & 17 deletions babel.config.cjs.json

This file was deleted.

7 changes: 0 additions & 7 deletions babel.config.esm.json

This file was deleted.

Loading

0 comments on commit 8086326

Please sign in to comment.