Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Commit

Permalink
Make the CLI be ESM too
Browse files Browse the repository at this point in the history
Fixes #86
  • Loading branch information
sindresorhus committed Mar 8, 2021
1 parent 9c29f95 commit becc198
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/templates/_package.json
Expand Up @@ -33,7 +33,7 @@
"ava": "^3.15.0",<% if (codecov) { %>
"codecov": "^3.7.2",<% } %><% if (nyc) { %>
"nyc": "^15.1.0",<% } %>
"xo": "^0.37.0"
"xo": "^0.38.0"
}<% if (codecov) { %>,
"nyc": {
"reporter": [
Expand Down
5 changes: 2 additions & 3 deletions app/templates/cli.js
@@ -1,7 +1,6 @@
#!/usr/bin/env node
'use strict';
const meow = require('meow');
const <%= camelModuleName %> = require('.');
import meow from 'meow';
import <%= camelModuleName %> from './index.js';

const cli = meow(`
Usage
Expand Down

0 comments on commit becc198

Please sign in to comment.