Skip to content

Commit

Permalink
Make exported symbols on exports enumerable
Browse files Browse the repository at this point in the history
Workaround for oven-sh/bun#4432
  • Loading branch information
andsens committed Jul 4, 2024
1 parent 6ce2be7 commit e5b79d0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* @type {Object}
*/
Object.defineProperty(exports, 'cli', {
enumerable: true,
value: require('./cli')
});

Expand All @@ -20,6 +21,7 @@ Object.defineProperty(exports, 'cli', {
* @type {Object}
*/
Object.defineProperty(exports, 'npm', {
enumerable: true,
value: require('./npm')
});

Expand All @@ -28,5 +30,6 @@ Object.defineProperty(exports, 'npm', {
* @type {Object}
*/
Object.defineProperty(exports, 'syslog', {
enumerable: true,
value: require('./syslog')
});
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @type {Symbol}
*/
Object.defineProperty(exports, 'LEVEL', {
enumerable: true,
value: Symbol.for('level')
});

Expand All @@ -21,6 +22,7 @@ Object.defineProperty(exports, 'LEVEL', {
* @type {Symbol}
*/
Object.defineProperty(exports, 'MESSAGE', {
enumerable: true,
value: Symbol.for('message')
});

Expand All @@ -32,6 +34,7 @@ Object.defineProperty(exports, 'MESSAGE', {
* @type {Symbol}
*/
Object.defineProperty(exports, 'SPLAT', {
enumerable: true,
value: Symbol.for('splat')
});

Expand All @@ -42,5 +45,6 @@ Object.defineProperty(exports, 'SPLAT', {
* @type {Object}
*/
Object.defineProperty(exports, 'configs', {
enumerable: true,
value: require('./config')
});

0 comments on commit e5b79d0

Please sign in to comment.