mirror of
https://github.com/zoriya/elysia-swagger.git
synced 2026-05-31 13:03:04 +00:00
🔧fix: exports in package.json
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
if ('Bun' in globalThis) {
|
||||
throw new Error('❌ Use Node.js to run this test!');
|
||||
}
|
||||
|
||||
const { swagger } = require('@elysiajs/swagger');
|
||||
|
||||
if (typeof swagger !== 'function') {
|
||||
throw new Error('❌ CommonJS Node.js failed');
|
||||
}
|
||||
|
||||
console.log('✅ CommonJS Node.js works!');
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"type": "commonjs",
|
||||
"dependencies": {
|
||||
"@elysiajs/swagger": "../../.."
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user