File tree 3 files changed +7
-2
lines changed
3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 52
52
"test" : " nyc --reporter=html --reporter=text mocha \" test/*/_index.js\" " ,
53
53
"lint" : " eslint ." ,
54
54
"test-browser" : " rollup -c && node ./test/browser.js" ,
55
- "prepublishOnly" : " rollup -c"
55
+ "prepublishOnly" : " rm -rf dist && rollup -c"
56
56
},
57
57
"eslintConfig" : {
58
58
"ignorePatterns" : [
Original file line number Diff line number Diff line change @@ -13,10 +13,14 @@ export default {
13
13
} ,
14
14
plugins : [
15
15
{
16
- resolveId ( importee ) {
16
+ resolveId ( importee , importer ) {
17
17
if ( [ 'os' , 'stream' , 'string_decoder' ] . includes ( importee ) ) {
18
18
return importee ;
19
19
}
20
+ // see https://github.com/csstree/csstree/pull/152
21
+ if ( importee === 'css-tree' ) {
22
+ return this . resolve ( 'css-tree/dist/csstree.min.js' , importer ) ;
23
+ }
20
24
} ,
21
25
load ( id ) {
22
26
if ( id === 'os' ) {
Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ const runTest = async () => {
58
58
server . listen ( 5000 , async ( ) => {
59
59
try {
60
60
await runTest ( ) ;
61
+ console . info ( 'Tested successfully' ) ;
61
62
server . close ( )
62
63
} catch ( error ) {
63
64
server . close ( ) ;
You can’t perform that action at this time.
0 commit comments