Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to tsup with imported json #405

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading