diff --git a/package.json b/package.json index 972ba9a10..2c2bdfe31 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,6 @@ "vbb-translate-ids": "^3.1.0" }, "devDependencies": { - "ajv": "^6.10.0", "db-stations": "^2.3.0", "is-coordinates": "^2.0.2", "is-roughly-equal": "^0.1.0", @@ -65,7 +64,6 @@ }, "scripts": { "test": "env NODE_ENV=dev node test/index.js", - "find-unknown-fields": "node find-unknown-fields/index.js", "prepublishOnly": "npm test | tap-spec", "install": "node lib/generate-install-id.js >id.json" } diff --git a/find-unknown-fields/departures.schema.json b/tools/find-unknown-fields/departures.schema.json similarity index 100% rename from find-unknown-fields/departures.schema.json rename to tools/find-unknown-fields/departures.schema.json diff --git a/find-unknown-fields/index.js b/tools/find-unknown-fields/index.js similarity index 92% rename from find-unknown-fields/index.js rename to tools/find-unknown-fields/index.js index 4e0f78bae..678bf0715 100644 --- a/find-unknown-fields/index.js +++ b/tools/find-unknown-fields/index.js @@ -2,10 +2,10 @@ const Ajv = require('ajv') const omit = require('lodash/omit') -const createClient = require('..') -const vbbProfile = require('../p/vbb') -const bvgProfile = require('../p/bvg') -const dbProfile = require('../p/db') +const createClient = require('../..') +const vbbProfile = require('../../p/vbb') +const bvgProfile = require('../../p/bvg') +const dbProfile = require('../../p/db') const journeysSchema = require('./journeys.schema.json') const departuresSchema = require('./departures.schema.json') // todo: https://github.com/epoberezkin/ajv#formats diff --git a/find-unknown-fields/journeys.schema.json b/tools/find-unknown-fields/journeys.schema.json similarity index 100% rename from find-unknown-fields/journeys.schema.json rename to tools/find-unknown-fields/journeys.schema.json diff --git a/tools/find-unknown-fields/package.json b/tools/find-unknown-fields/package.json new file mode 100644 index 000000000..a35c773ea --- /dev/null +++ b/tools/find-unknown-fields/package.json @@ -0,0 +1,9 @@ +{ + "private": true, + "name": "find-unknown-fields", + "version": "1.0.0", + "main": "index.js", + "dependencies": { + "ajv": "^6.10.1" + } +}