"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const utils_1 = require("./utils");
const nodeExternals = require('webpack-node-externals');
function getLibSchemaConfig(paths) {
    const { libName, rootPath, srcPath, modulesPath, styleSchemaTempPath, tempPath, } = paths;
    const creator = utils_1.getConfigCreator(paths.webpackConfigMap.libDev);
    const params = {
        libName,
        context: rootPath,
        entry: styleSchemaTempPath,
        output: {
            path: tempPath,
            filename: 'styleSchema.js',
            libraryTarget: 'commonjs2',
        },
        externals: [nodeExternals()],
        paths: {
            libSrcPath: srcPath,
            libModulesPath: modulesPath,
        },
        modules: [],
    };
    const config = creator(params);
    return Object.assign(Object.assign({}, config), { target: 'node' });
}
exports.getLibSchemaConfig = getLibSchemaConfig;
//# sourceMappingURL=lib.schema.js.map