-
Notifications
You must be signed in to change notification settings - Fork 2
feat: migrating from tsup to tsdown #134
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,4 +17,4 @@ USER node | |
| EXPOSE 3000 | ||
|
|
||
| # Start the application | ||
| CMD ["node", "dist/index.js"] | ||
| CMD ["node", "dist/index.mjs"] | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,7 +3,8 @@ | |
| "version": "1.5.0", | ||
| "description": "Mock Http - Easy way to mock http with httpbin replacement", | ||
| "type": "module", | ||
| "main": "dist/index.js", | ||
| "main": "dist/index.mjs", | ||
| "types": "dist/index.d.mts", | ||
| "directories": { | ||
| "test": "test" | ||
| }, | ||
|
|
@@ -12,7 +13,8 @@ | |
| "test": "pnpm lint && vitest run --coverage", | ||
| "test:ci": "biome check --error-on-warnings && vitest run --coverage", | ||
| "dev": "pnpm lint && tsx src/index.ts --watch", | ||
| "build": "rimraf ./dist && tsup src/index.ts --format esm --dts --clean", | ||
| "build": "tsdown src/index.ts --format esm --dts", | ||
| "clean": "rimraf ./node_modules ./dist ./coverage DOCKER.md", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The Consider renaming this to |
||
| "docker:build": "docker build -t jaredwray/mockhttp .", | ||
| "docker:run": "docker run -p 3000:3000 jaredwray/mockhttp", | ||
| "docker:push": "docker push jaredwray/mockhttp", | ||
|
|
@@ -21,7 +23,7 @@ | |
| "docker:compose:up": "docker-compose up -d", | ||
| "docker:compose:down": "docker-compose down", | ||
| "prepublishOnly": "pnpm run build", | ||
| "start": "node dist/index.js" | ||
| "start": "node dist/index.mjs" | ||
| }, | ||
| "repository": { | ||
| "type": "git", | ||
|
|
@@ -56,9 +58,9 @@ | |
| "@types/html-escaper": "^3.0.4", | ||
| "@vitest/coverage-v8": "^4.1.4", | ||
| "rimraf": "^6.1.3", | ||
| "tsup": "^8.5.1", | ||
| "tsdown": "^0.18.4", | ||
| "tsx": "^4.21.0", | ||
| "typescript": "^5.9.3", | ||
| "typescript": "6.0.2", | ||
| "vitest": "^4.1.4" | ||
| }, | ||
| "dependencies": { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
buildscript no longer cleans thedistdirectory before building. This can lead to stale build artifacts being present in the output, which might cause unexpected behavior. It's a good practice to ensure a clean build environment by removing the output directory before each build.