Skip to content

Commit 20b8ee7

Browse files
committed
fix incorrect babel package name causing test failures
1 parent e5daa21 commit 20b8ee7

File tree

2 files changed

+26
-21
lines changed

2 files changed

+26
-21
lines changed

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
"jest": {
2828
"testURL": "http://localhost",
2929
"moduleNameMapper": {
30-
"^htm-babel-plugin$": "<rootDir>/packages/htm-babel-plugin/dist/htm-babel-plugin.js",
30+
"^htm-babel-plugin$": "<rootDir>/packages/babel-plugin-htm/dist/babel-plugin-htm.js",
31+
"^babel-plugin-htm$": "<rootDir>/packages/babel-plugin-htm/dist/babel-plugin-htm.js",
3132
"^htm$": "<rootDir>/dist/htm.js",
3233
"^htm/preact$": "<rootDir>/preact/index.js"
3334
}
@@ -47,10 +48,12 @@
4748
"license": "Apache-2.0",
4849
"homepage": "https://github.com/developit/htm",
4950
"devDependencies": {
51+
"@babel/core": "^7.1.2",
5052
"eslint": "^5.2.0",
5153
"eslint-config-developit": "^1.1.1",
5254
"jest": "^23.4.2",
5355
"microbundle": "^0.6.0",
5456
"preact": "^8.2.9"
55-
}
57+
},
58+
"dependencies": {}
5659
}

packages/babel-plugin-htm/package.json

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,33 +5,35 @@
55
"main": "dist/babel-plugin-htm.js",
66
"module": "dist/babel-plugin-htm.mjs",
77
"scripts": {
8-
"build": "microbundle index.mjs -f es,cjs --target node --no-compress --no-sourcemap",
9-
"prepare": "npm run build"
8+
"build": "microbundle index.mjs -f es,cjs --target node --no-compress --no-sourcemap",
9+
"prepare": "npm run build"
1010
},
1111
"files": [
12-
"dist",
13-
"index.mjs"
12+
"dist",
13+
"index.mjs"
1414
],
1515
"repository": "developit/htm",
1616
"keywords": [
17-
"Hyperscript Tagged Markup",
18-
"tagged template",
19-
"template literals",
20-
"html",
21-
"htm",
22-
"jsx",
23-
"virtual dom",
24-
"hyperscript",
25-
"babel",
26-
"babel plugin",
27-
"babel-plugin"
17+
"Hyperscript Tagged Markup",
18+
"tagged template",
19+
"template literals",
20+
"html",
21+
"htm",
22+
"jsx",
23+
"virtual dom",
24+
"hyperscript",
25+
"babel",
26+
"babel plugin",
27+
"babel-plugin"
2828
],
2929
"author": "Jason Miller <jason@developit.ca>",
3030
"license": "Apache-2.0",
3131
"homepage": "https://github.com/developit/htm/packages/babel-plugin-htm",
3232
"dependencies": {
33-
"htm": "^0.5.2",
34-
"jsdom": "^11.12.0"
33+
"htm": "^0.5.2",
34+
"jsdom": "^11.12.0"
35+
},
36+
"devDependencies": {
37+
"microbundle": "^0.6.0"
3538
}
36-
}
37-
39+
}

0 commit comments

Comments
 (0)