Skip to content

Commit

Permalink
please let this work
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Aug 11, 2017
1 parent b9d0779 commit 2c05caa
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/cli/samples/node-config/_config.js
@@ -1,9 +1,7 @@
const glob = require('glob');
const sander = require('glob');

console.error(
`contents of ${__dirname}`,
glob.sync('**', {cwd: __dirname})
);
sander.rimrafSync(__dirname, 'node_modules');
sander.copydirSync(__dirname, 'node_modules_rename_me').to(__dirname, 'node_modules');

module.exports = {
description: 'uses config file installed from npm',
Expand Down
@@ -0,0 +1,9 @@
var replace = require( 'rollup-plugin-replace' );

module.exports = {
entry: 'main.js',
format: 'cjs',
plugins: [
replace({ 'ANSWER': 42 })
]
};
@@ -0,0 +1,3 @@
{
"main": "lib/config.js"
}

0 comments on commit 2c05caa

Please sign in to comment.