Skip to content
Snippets Groups Projects
Commit 2758e0bf authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Fix all packages re hoisted dependencies

parent f9bfb157
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,8 @@
"main": "index.js",
"scripts": {
"bootstrap": "lerna bootstrap --hoist --strict",
"clean": "lerna clean -y"
"clean": "lerna clean -y",
"test": "lerna run test"
},
"author": "",
"license": "ISC",
......
import path from 'path';
import glob from 'glob';
import resolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
......
import path from 'path';
import glob from 'glob';
import resolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
......@@ -7,7 +6,6 @@ import serve from 'rollup-plugin-serve';
import consts from 'rollup-plugin-consts';
import del from 'rollup-plugin-delete';
import json from '@rollup/plugin-json';
import chai from 'chai';
const pkg = require('./package.json');
const build = (typeof process.env.BUILD !== 'undefined') ? process.env.BUILD : 'local';
......@@ -36,18 +34,8 @@ export default {
consts({
environment: build,
}),
resolve({
customResolveOptions: {
// ignore node_modules from vendored packages
moduleDirectory: path.join(process.cwd(), 'node_modules')
}
}),
commonjs({
include: 'node_modules/**',
namedExports: {
'chai': Object.keys(chai),
}
}),
resolve(),
commonjs(),
json(),
copy({
targets: [
......
import glob from 'glob';
import path from 'path';
import resolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
import copy from 'rollup-plugin-copy';
......@@ -29,15 +28,8 @@ export default {
consts({
environment: build,
}),
resolve({
customResolveOptions: {
// ignore node_modules from vendored packages
moduleDirectory: path.join(process.cwd(), 'node_modules')
}
}),
commonjs({
include: 'node_modules/**'
}),
resolve(),
commonjs(),
json(),
url({
limit: 0,
......
import glob from 'glob';
import path from 'path';
import resolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import copy from 'rollup-plugin-copy';
......@@ -37,19 +36,12 @@ export default {
consts({
environment: build,
}),
resolve({
customResolveOptions: {
// ignore node_modules from vendored packages
moduleDirectory: path.join(process.cwd(), 'node_modules')
}
}),
commonjs({
include: 'node_modules/**'
}),
resolve(),
commonjs(),
url({
limit: 0,
include: [
"node_modules/select2/**/*.css",
"../../**/node_modules/select2/**/*.css",
],
emitFiles: true,
fileName: 'shared/[name].[hash][extname]'
......
......@@ -40,7 +40,7 @@ export default {
url({
limit: 0,
include: [
"node_modules/select2/**/*.css",
"../../**/node_modules/select2/**/*.css",
],
emitFiles: true,
fileName: 'shared/[name].[hash][extname]'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment