Skip to content

Commit

Permalink
Change to use exports
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Nov 1, 2023
1 parent 940b143 commit f675f03
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
],
"sideEffects": false,
"type": "module",
"main": "index.js",
"types": "index.d.ts",
"exports": "./index.js",
"files": [
"lib/",
"index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import fs from 'node:fs/promises'
import process from 'node:process'
import test from 'node:test'
import {Chalk} from 'chalk'
import {all, common, createEmphasize} from '../index.js'
import {all, common, createEmphasize} from 'emphasize'

const chalk = new Chalk({level: 2})

test('emphasize', async function (t) {
await t.test('should expose the public api', async function () {
assert.deepEqual(Object.keys(await import('../index.js')).sort(), [
assert.deepEqual(Object.keys(await import('emphasize')).sort(), [
'all',
'common',
'createEmphasize'
Expand Down

0 comments on commit f675f03

Please sign in to comment.