Skip to content

Commit

Permalink
feat(esm): converted the project to esm-only
Browse files Browse the repository at this point in the history
BREAKING CHANGE: the package is now esm-only

closes #726
  • Loading branch information
travi committed Aug 13, 2023
1 parent 1c4ef45 commit 39e8e83
Show file tree
Hide file tree
Showing 13 changed files with 95 additions and 2,362 deletions.
1 change: 0 additions & 1 deletion .babelrc

This file was deleted.

File renamed without changes.
6 changes: 6 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ extends:
- '@form8ion'
- '@form8ion/mocha'
- '@form8ion/cucumber'

rules:
import/extensions:
- error
- ignorePackages

overrides:
- files: example.js
rules:
Expand Down
7 changes: 2 additions & 5 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"ui": "tdd",
"require": [
"@babel/register",
"./test/mocha-setup.js"
]
}
"require": ["./test/mocha-setup.js"]
}
File renamed without changes.
5 changes: 2 additions & 3 deletions example.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
// #### Import
// remark-usage-ignore-next 2
import {resolve} from 'path';
// remark-usage-ignore-next
import stubbedFs from 'mock-fs';
import {scaffold} from './lib/index.js';

// remark-usage-ignore-next
stubbedFs({templates: stubbedFs.load(resolve(...[__dirname, 'templates']))});
stubbedFs({templates: stubbedFs.load('templates')});

(async () => {
await scaffold({projectRoot: process.cwd()});
Expand Down
Loading

0 comments on commit 39e8e83

Please sign in to comment.