Skip to content

Commit

Permalink
Convert package to ES module
Browse files Browse the repository at this point in the history
  • Loading branch information
connor-baer committed Nov 18, 2024
1 parent 072ff73 commit 1c576b1
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 3 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"./CONTRIBUTING.md"
],
"bin": "dist/cli/index.js",
"type": "module",
"exports": {
"./eslint": "./dist/eslint.js",
"./husky": "./dist/husky.js",
Expand Down
3 changes: 2 additions & 1 deletion src/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@
*/

import yargs from 'yargs';
import { hideBin } from 'yargs/helpers';

import { run, type RunParams } from './run.js';
import { init, type InitParams } from './init.js';
import { debug } from './debug.js';
import { DEFAULT_OPTIONS } from './defaults.js';

// eslint-disable-next-line no-void
void yargs
void yargs(hideBin(process.argv))
.command(
'init',
"Initialize Foundry's tools in your project",
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
"compilerOptions": {
"lib": ["ES2020"],
"target": "ES2020",
"module": "commonjs",
"module": "NodeNext",
"declaration": true,
"strict": true,
"skipLibCheck": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "node",
"moduleResolution": "nodenext",
"resolveJsonModule": true,
"isolatedModules": true,
"outDir": "./dist"
Expand Down

0 comments on commit 1c576b1

Please sign in to comment.