npm-link-up
Version:
Use this package to link your projects together for local development.
71 lines (70 loc) • 2.2 kB
JavaScript
"use strict";
const util = require('util');
const F = require('frankenstop').default;
const NLU = F.bestow(function (obj, isPreValidate) {
this.config = obj;
F.call(this, isPreValidate);
});
NLU.getSchema = function () {
return Object.freeze({
prevalidateAllFields: true,
allowExtraneousProperties: false,
properties: {
config: {
type: 'object',
required: true,
properties: {
"npm-link-up": {
type: 'boolean',
required: true
},
"alwaysRelink": {
type: 'boolean',
required: false
},
"alwaysReinstall": {
type: 'boolean',
required: false
},
"linkToItself": {
type: 'boolean',
required: false
},
"searchRoots": {
type: 'array',
required: false,
elements: {
type: 'string'
}
},
"ignore": {
type: 'array',
required: false,
elements: {
type: 'string'
}
},
"comments": {
type: 'array',
required: false,
elements: {
type: 'string'
}
},
"list": {
type: 'array',
required: true,
elements: {
type: 'string'
}
}
}
},
}
});
};
NLU.prototype.toJSON = function toJSON() {
return JSON.stringify(this.config);
};
F.validateFrankenstopSchema(NLU);
module.exports = NLU;