File tree Expand file tree Collapse file tree 4 files changed +21
-0
lines changed Expand file tree Collapse file tree 4 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 4242 - name : Run server test
4343 run : npm run test:server
4444
45+ - name : Run ES modules tests
46+ run : npm run test:module
47+
48+ - name : Run server test
49+ run : npm run test:server
50+
4551 - name : Run client test
4652 uses : GabrielBB/xvfb-action@v1
4753 with :
Original file line number Diff line number Diff line change 1+ import HTMLDOMParser from './index.js' ;
2+
3+ export default HTMLDOMParser ;
Original file line number Diff line number Diff line change 44 "description" : " HTML to DOM parser." ,
55 "author" : " Mark <mark@remarkablemark.org>" ,
66 "main" : " index.js" ,
7+ "module" : " index.mjs" ,
8+ "exports" : {
9+ "import" : " ./index.mjs" ,
10+ "require" : " ./index.js"
11+ },
712 "scripts" : {
813 "build" : " rollup --config" ,
914 "clean" : " rm -rf dist" ,
1823 "test:client" : " npm run test:client:watch -- --single-run" ,
1924 "test:client:build" : " webpack --config webpack.test.config.js" ,
2025 "test:client:watch" : " npm run test:client:build && karma start" ,
26+ "test:module" : " node --experimental-modules test/module/index.mjs" ,
2127 "test:server" : " nyc mocha test/server"
2228 },
2329 "repository" : {
7682 "files" : [
7783 " /dist" ,
7884 " /index.d.ts" ,
85+ " /index.js" ,
86+ " /index.mjs" ,
7987 " /lib"
8088 ],
8189 "browser" : {
Original file line number Diff line number Diff line change 1+ import assert from 'assert' ;
2+ import HTMLDOMParser from '../../index.mjs' ;
3+
4+ assert . strictEqual ( typeof HTMLDOMParser , 'function' ) ;
You can’t perform that action at this time.
0 commit comments