mirror of
https://github.com/zoriya/elysia-swagger.git
synced 2026-06-09 00:04:53 +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!');
|
||||
Reference in New Issue
Block a user