Skip to content
Merged
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
12 changes: 6 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@ jobs:
- name: Install dependencies
run: bun install --frozen-lockfile

- name: Run tests
run: bun test

- name: Run tests with coverage
run: bun run test:coverage

- name: Run type check
run: bun run typecheck

Expand All @@ -41,6 +35,12 @@ jobs:
- name: Build package
run: bun run build

- name: Run tests
run: bun test

- name: Run tests with coverage
run: bun run test:coverage

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
Expand Down
20 changes: 15 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,32 @@
{
"name": "scheduling-sdk",
"version": "0.4.4",
"version": "0.5.0",
"description": "Brought to you by Recal - A TypeScript SDK for scheduling functionality",
"author": "Recal",
"license": "MIT",
"contributors": ["tkoehlerlg"],
"type": "module",
"main": "./dist/index.js",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
}
},
"files": ["dist"],
"scripts": {
"build": "tsc --declaration --emitDeclarationOnly --outDir dist && NODE_ENV=production bun build src/index.ts --outdir dist --target node",
"build": "bun run build:types && bun run build:esm && bun run build:cjs",
"build:types": "tsc --declaration --emitDeclarationOnly --outDir dist && cp dist/index.d.ts dist/index.d.cts",
"build:esm": "NODE_ENV=production bun build src/index.ts --outdir dist --target node --format esm",
"build:cjs": "NODE_ENV=production bun build src/index.ts --outfile dist/index.cjs --target node --format cjs",
"dev": "bun --watch src/index.ts",
"test": "bun test",
"test:coverage": "bun test --coverage --coverage-reporter=lcov --coverage-reporter=text",
Expand Down
Loading
Loading