diff --git a/package.json b/package.json index b362e8f..01d15d3 100644 --- a/package.json +++ b/package.json @@ -23,8 +23,7 @@ ], "sideEffects": false, "type": "module", - "main": "index.js", - "types": "index.d.ts", + "exports": "./index.js", "files": [ "lib/", "index.d.ts", diff --git a/test/index.js b/test/index.js index 42b166a..8012bc7 100644 --- a/test/index.js +++ b/test/index.js @@ -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'