File tree Expand file tree Collapse file tree 5 files changed +5
-6
lines changed Expand file tree Collapse file tree 5 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 25
25
],
26
26
"sideEffects" : false ,
27
27
"type" : " module" ,
28
- "main" : " index.js" ,
29
- "types" : " index.d.ts" ,
28
+ "exports" : " ./index.js" ,
30
29
"files" : [
31
30
" lib/" ,
32
31
" index.d.ts" ,
Original file line number Diff line number Diff line change 1
1
import nodeAssert from 'node:assert/strict'
2
2
import test from 'node:test'
3
- import { assert } from '../index.js '
3
+ import { assert } from 'nlcst-test '
4
4
5
5
test ( 'children' , async function ( t ) {
6
6
await t . test (
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import test from 'node:test'
3
3
4
4
test ( 'core' , async function ( t ) {
5
5
await t . test ( 'should expose the public api' , async function ( ) {
6
- nodeAssert . deepEqual ( Object . keys ( await import ( '../index.js ' ) ) . sort ( ) , [
6
+ nodeAssert . deepEqual ( Object . keys ( await import ( 'nlcst-test ' ) ) . sort ( ) , [
7
7
'_void' ,
8
8
'assert' ,
9
9
'literal' ,
Original file line number Diff line number Diff line change 1
1
import nodeAssert from 'node:assert/strict'
2
2
import test from 'node:test'
3
- import { assert } from '../index.js '
3
+ import { assert } from 'nlcst-test '
4
4
5
5
test ( 'node' , async function ( t ) {
6
6
await t . test ( 'should throw if not given a node (#1)' , async function ( ) {
Original file line number Diff line number Diff line change 1
1
import nodeAssert from 'node:assert/strict'
2
2
import test from 'node:test'
3
- import { assert } from '../index.js '
3
+ import { assert } from 'nlcst-test '
4
4
5
5
test ( 'assert(RootNode)' , async function ( t ) {
6
6
await t . test (
You can’t perform that action at this time.
0 commit comments