diff --git a/.github/workflows/pr-validation.yml b/.github/workflows/pr-validation.yml index b42a4bf..a712a9d 100644 --- a/.github/workflows/pr-validation.yml +++ b/.github/workflows/pr-validation.yml @@ -26,5 +26,7 @@ jobs: npm run lint npm run test npm run build + node packages/oas/bin/index.js + node packages/mcp/bin/index.js env: CI: true \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 17e9fe1..94de692 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## [v0.0.3] - HOTFIX + +commit [#]() + +### HOTFIX + +- Fixed built transpiled code to use .js extension. +- Added check step in build pipeline to prevent issue again. + ## [v0.0.2] - 2026-02-19 commit [#]() diff --git a/eslint.config.mjs b/eslint.config.mjs index 87ee2b7..c5741ee 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -4,6 +4,7 @@ import spacing from '@stylistic/eslint-plugin'; /** @type {import('eslint').Linter.FlatConfig[]} */ export default [ + { ignores: ['**/bin/**'] }, spacing.configs.recommended, { files: ['**/*.{js,ts,mjs}'], diff --git a/package.json b/package.json index bab6a12..8e7c3b1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "express-tools", - "version": "0.0.2", + "version": "0.0.3", "description": "Enhances express APIs", "private": true, "workspaces": [ diff --git a/packages/mcp/package.json b/packages/mcp/package.json index df2a430..7dd8832 100644 --- a/packages/mcp/package.json +++ b/packages/mcp/package.json @@ -1,6 +1,6 @@ { "name": "@express-tools/mcp", - "version": "0.0.2", + "version": "0.0.3", "description": "MCP plugin for express", "license": "Apache-2.0", "main": "bin/index.js", @@ -31,7 +31,7 @@ }, "typings": "types.d.ts", "scripts": { - "build": "rm -rf ./bin && mkdir ./bin && tsc --project ./tsconfig.json", + "build": "rm -rf ./bin && mkdir ./bin && tsc --project ./tsconfig.json && find ./bin -name '*.js' -exec sed -i \"s/\\.ts'/\\.js'/g; s/\\.ts\\\"/\\.js\\\"/g\" {} \\;", "test:unit": "node --test src/*.test.ts", "test:integration": "node --test tests/integration/*.test.ts", "test": "npm run test:unit && npm run test:integration", diff --git a/packages/oas/package.json b/packages/oas/package.json index bde2af3..3bac419 100644 --- a/packages/oas/package.json +++ b/packages/oas/package.json @@ -1,6 +1,6 @@ { "name": "@express-tools/oas", - "version": "0.0.2", + "version": "0.0.3", "description": "OpenAPI plugin for express", "license": "Apache-2.0", "main": "bin/index.js", @@ -31,7 +31,7 @@ }, "typings": "types.d.ts", "scripts": { - "build": "rm -rf ./bin && mkdir ./bin && tsc --project ./tsconfig.json", + "build": "rm -rf ./bin && mkdir ./bin && tsc --project ./tsconfig.json && find ./bin -name '*.js' -exec sed -i \"s/\\.ts'/\\.js'/g; s/\\.ts\\\"/\\.js\\\"/g\" {} \\;", "test:unit": "node --test src/*.test.ts", "test:integration": "node --test tests/integration/*.test.ts", "test": "npm run test:unit && npm run test:integration",