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

Refactor/esm #1331

Merged
merged 27 commits into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
dd227ca
esm
ANGkeith Sep 6, 2024
c7e24ab
ts2esm vodoo
ANGkeith Sep 6, 2024
d06df30
bump axios major version for esm support
ANGkeith Sep 6, 2024
493a938
replace ts-node with tsx
ANGkeith Sep 6, 2024
d06eda1
importing json files in esm
ANGkeith Sep 6, 2024
b26deaf
refactor: yargs esm
ANGkeith Sep 6, 2024
8d648ec
quickfix: downgrade axios to fix type problems with axios-mock-adapter
ANGkeith Sep 7, 2024
47ad0b4
fix import issues
ANGkeith Sep 7, 2024
1d622b0
jest + esm
ANGkeith Sep 7, 2024
2d3aa2d
replace global jest with import.meta.jest
ANGkeith Sep 7, 2024
fb03e3c
install esbuild
ANGkeith Sep 7, 2024
791ca75
pkg+esbuild
ANGkeith Sep 7, 2024
9b1efdb
make it possible to run jest without npm run build
ANGkeith Sep 13, 2024
122bb8b
manage to get ts-node to work
ANGkeith Sep 14, 2024
04accd7
fix npm run test-except-dind
ANGkeith Sep 14, 2024
ac63461
tweak tsconfig
ANGkeith Sep 14, 2024
d5bb5ae
attempt to run npm coverage without building
ANGkeith Sep 14, 2024
4c600b2
only way i manage to get npm run coverage to work
ANGkeith Sep 14, 2024
87408af
resolve esbuild warning with direct eval
ANGkeith Oct 2, 2024
a627b58
fix `pkg` warnings
ANGkeith Oct 2, 2024
8760e7c
docs: update docs
ANGkeith Oct 2, 2024
5934211
Use @yao-pkg/pkg. Use bin/ instead of pkg/ folder
firecow Oct 10, 2024
972045b
Upgrade axios
firecow Oct 10, 2024
8f0abf9
Reintroduce babel-jest
firecow Oct 10, 2024
de0c9ed
Rename github action job to smoke-test
firecow Oct 10, 2024
dd89727
Use node20 for pkg vm
firecow Oct 10, 2024
3cc29b4
Fix user-agent
firecow Oct 10, 2024
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
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
with:
strict: true

pkg:
smoke-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -33,9 +33,9 @@ jobs:
path: ${{ env.PKG_CACHE_PATH }}
key: pkg-cache-${{ matrix.node-version }}
- run: npm ci
- run: npm run build
- run: npm run esbuild
- run: npm run pkg-linux
- run: node src/index.js --version
- run: node bin/index.cjs --version
- run: bin/linux/gitlab-ci-local --version
- run: bin/linux/gitlab-ci-local --help

Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
cache: 'npm'
- run: npm ci
- name: Run Tests
run: FORCE_COLOR=1 npx jest --coverage --testTimeout 90000 --verbose
run: npm run coverage
- uses: sonarsource/sonarcloud-github-action@v3.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ tsconfig.tsbuildinfo
.DS_Store

.vscode
pkg

/.gitlab-ci.yml
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -368,9 +368,6 @@ You need nodejs 18+
# Install node_modules
npm install

# Compiled typescript to javascript
npm run build

# Run all tests
npm run test

Expand Down
Loading