Skip to content

Commit 5c86348

Browse files
committed
feat(esm): convert the package to esm only
closes #916 BREAKING CHANGE: this package is now esm only
1 parent 726acb2 commit 5c86348

File tree

9 files changed

+123
-2295
lines changed

9 files changed

+123
-2295
lines changed

.babelrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

.remarkrc.js

Lines changed: 0 additions & 14 deletions
This file was deleted.

.remarkrc.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"settings": {
3+
"listItemIndent": "one",
4+
"emphasis": "_",
5+
"strong": "_",
6+
"bullet": "*",
7+
"incrementListMarker": false
8+
},
9+
"plugins": [
10+
"@form8ion/remark-lint-preset",
11+
[
12+
"remark-toc",
13+
{
14+
"tight": true
15+
}
16+
],
17+
[
18+
"remark-usage",
19+
{
20+
"heading": "example"
21+
}
22+
]
23+
]
24+
}

cucumber.js

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
1-
module.exports = {
2-
base: '--require-module @babel/register --format-options \'{"snippetInterface": "async-await"}\'',
3-
wip: '--tags "@wip"',
4-
noWip: '--tags "not @wip"',
5-
focus: '--tags @focus'
1+
const base = {
2+
formatOptions: {snippetInterface: 'async-await'},
3+
import: ['test/integration/features/**/*.js']
4+
};
5+
6+
export default base;
7+
8+
export const wip = {
9+
...base,
10+
tags: '@wip and not @skip'
11+
};
12+
13+
export const noWip = {
14+
...base,
15+
tags: 'not @skip and not @wip'
16+
};
17+
18+
export const focus = {
19+
...base,
20+
tags: '@focus'
621
};

example.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// remark-usage-ignore-next
33
import stubbedFs from 'mock-fs';
44
import {packageManagers} from '@form8ion/javascript-core';
5-
import {scaffold} from './lib/index.cjs.js';
5+
import {scaffold} from './lib/index.js';
66

77
// remark-usage-ignore-next
88
stubbedFs();

0 commit comments

Comments
 (0)