Skip to content

Commit

Permalink
fix(scully): import version number form proper location (#1171)
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderElias committed Dec 14, 2020
1 parent d4df05b commit f722916
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libs/scully/package.json
@@ -1,6 +1,6 @@
{
"name": "@scullyio/scully",
"version": "1.0.8",
"version": "1.0.9",
"description": "Scully CLI",
"repository": {
"type": "GIT",
Expand Down
2 changes: 1 addition & 1 deletion libs/scully/src/lib/renderPlugins/puppeteerRenderPlugin.ts
Expand Up @@ -20,7 +20,7 @@ const errorredPages = new Map<string, number>();

let version = '0.0.0';
try {
const pkg = join(__dirname, '../../package.json');
const pkg = join(__dirname, '../../../package.json');
// console.log(pkg)
version = jsonc.parse(readFileSync(pkg).toString()).version || '0.0.0';
} catch (e) {
Expand Down

0 comments on commit f722916

Please sign in to comment.