File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 2727 ],
2828 "sideEffects" : false ,
2929 "type" : " module" ,
30- "main" : " index.js" ,
31- "types" : " index.d.ts" ,
30+ "exports" : " ./index.js" ,
3231 "files" : [
3332 " lib/" ,
3433 " index.d.ts" ,
Original file line number Diff line number Diff line change 11import assert from 'node:assert/strict'
22import test from 'node:test'
33import { retext } from 'retext'
4+ import retextKeywords from 'retext-keywords'
45import retextPos from 'retext-pos'
5- import retextKeywords from './index.js'
66
77// Fixture: First three paragraphs on Term Extraction from Wikipedia:
88// https://en.wikipedia.org/wiki/Terminology_extraction.
@@ -48,7 +48,7 @@ const fixture =
4848
4949test ( 'retext-keywords' , async function ( t ) {
5050 await t . test ( 'should expose the public api' , async function ( ) {
51- assert . deepEqual ( Object . keys ( await import ( './index.js ' ) ) . sort ( ) , [
51+ assert . deepEqual ( Object . keys ( await import ( 'retext-keywords ' ) ) . sort ( ) , [
5252 'default'
5353 ] )
5454 } )
You can’t perform that action at this time.
0 commit comments