Skip to content

Commit 0a0de65

Browse files
committed
test(pluginutils): fix windows path failure
1 parent 973e05a commit 0a0de65

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

packages/commonjs/test/test.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ test('does not reexport named contents', async (t) => {
402402
} catch (error) {
403403
t.is(
404404
error.message,
405-
`'named' is not exported by fixtures/samples${path.sep}reexport${path.sep}reexport.js`
405+
`'named' is not exported by fixtures${path.sep}samples${path.sep}reexport${path.sep}reexport.js`
406406
);
407407
}
408408
});
@@ -741,9 +741,7 @@ test('normalizes paths used in the named export map', async (t) => {
741741
test('can spread an object into module.exports', async (t) => {
742742
const bundle = await rollup({
743743
input: 'fixtures/samples/module-exports-spread/main.js',
744-
plugins: [
745-
commonjs()
746-
]
744+
plugins: [commonjs()]
747745
});
748746
const code = await getCodeFromBundle(bundle);
749747
t.snapshot(code);

scripts/publish.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ const getCommits = async (pluginName) => {
4545
log(chalk`{blue Last Release Tag}: ${latestTag}`);
4646

4747
// i wanted to use '--grep', `"(${pluginName})"` here, but there's something up with execa
48-
// https://github.com/sindresorhus/execa/issues/406
48+
// https://github.com/sindresorhus/execa/issues/406 - FIXED
49+
// TODO: const params = ['log', '--grep', '"(pluginutils)"', 'pluginutils-v3.0.1..HEAD'];
4950
params = ['--no-pager', 'log', `${latestTag}..HEAD`, '--format=%B%n-hash-%n%H🐒💨🙊'];
5051
const rePlugin = new RegExp(`^[\\w\\!]+\\(${pluginName}\\)`, 'i');
5152
const { stdout } = await execa('git', params);

0 commit comments

Comments
 (0)