Commit f049a0bf authored by Naoyuki Kanezawa's avatar Naoyuki Kanezawa Committed by GitHub

fix reading incorrect package.json (#323)

parent 6ca52f3e
...@@ -2,7 +2,10 @@ import React from 'react' ...@@ -2,7 +2,10 @@ import React from 'react'
import htmlescape from 'htmlescape' import htmlescape from 'htmlescape'
import readPkgUp from 'read-pkg-up' import readPkgUp from 'read-pkg-up'
const pkg = readPkgUp.sync({normalize: false}).pkg const { pkg } = readPkgUp.sync({
cwd: __dirname,
normalize: false
})
export default ({ head, css, html, data, dev, staticMarkup, cdn }) => { export default ({ head, css, html, data, dev, staticMarkup, cdn }) => {
return <html> return <html>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment