1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-17 02:49:54 +00:00

Correct package.json "engines" entry

This commit is contained in:
Jeremy Ruston 2013-01-28 19:26:26 +00:00
parent ea715bd3f2
commit 07541cbd9f
2 changed files with 2 additions and 2 deletions

View File

@ -398,7 +398,7 @@ if(!$tw.browser) {
// Read package info // Read package info
$tw.packageInfo = JSON.parse(fs.readFileSync($tw.boot.bootPath + "/../package.json")); $tw.packageInfo = JSON.parse(fs.readFileSync($tw.boot.bootPath + "/../package.json"));
// Check node version number // Check node version number
if($tw.utils.checkVersions($tw.packageInfo.engine.node.substr(2),process.version.substr(1))) { if($tw.utils.checkVersions($tw.packageInfo.engines.node.substr(2),process.version.substr(1))) {
throw "TiddlyWiki5 requires node.js version " + $tw.packageInfo.engine.node; throw "TiddlyWiki5 requires node.js version " + $tw.packageInfo.engine.node;
} }
} }

View File

@ -31,7 +31,7 @@
"bundleDependencies": [ "bundleDependencies": [
], ],
"license": "BSD", "license": "BSD",
"engine": { "engines": {
"node": ">=0.8.2" "node": ">=0.8.2"
} }
} }