From 55319a6a15f95c32c37fed1899af48389d49c677 Mon Sep 17 00:00:00 2001 From: Moos Date: Wed, 29 May 2019 23:24:37 -0700 Subject: [PATCH] fix postinstall timing issue --- package.json | 2 +- scripts/makeJsonDict.js | 3 ++- tools/stat.js | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 98b1441..b18c781 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wordpos", - "version": "2.0.0-beta.1", + "version": "2.0.0-beta.2", "description": "wordpos is a set of part-of-speech utilities for Node.js & browser using the WordNet database.", "author": "Moos ", "keywords": [ diff --git a/scripts/makeJsonDict.js b/scripts/makeJsonDict.js index 66d840a..f80c549 100644 --- a/scripts/makeJsonDict.js +++ b/scripts/makeJsonDict.js @@ -12,7 +12,8 @@ let outPath = './dict'; // browser-use files let testPath = './test/dict'; // mocha files in CJS format let posExt = ['adj', 'adv', 'noun', 'verb']; -let dictRoot = './node_modules/wordnet-db/dict/'; // source files +let dictRoot = require('wordnet-db').path; // source files + const fileTypes = { data: true, index: true diff --git a/tools/stat.js b/tools/stat.js index e045ae7..ddd79f1 100644 --- a/tools/stat.js +++ b/tools/stat.js @@ -46,7 +46,7 @@ * Released under MIT license */ var - WNdb = require('../src/wordpos').WNdb, + WNdb = require('wordnet-db'), util = require('util'), BufferedReader = require ('./buffered-reader'), _ = require('underscore')._,