🔧fix: exports in package.json

This commit is contained in:
bogeychan
2023-06-04 16:19:12 +02:00
parent 640f0be871
commit 95b3fca44b
6 changed files with 42 additions and 5 deletions
+11
View File
@@ -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!');
+6
View File
@@ -0,0 +1,6 @@
{
"type": "commonjs",
"dependencies": {
"@elysiajs/swagger": "../../.."
}
}