Skip to content

Commit

Permalink
Working TS compilation step.
Browse files Browse the repository at this point in the history
  • Loading branch information
molefrog committed Mar 14, 2023
1 parent 2f47c31 commit b4344b9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"types": "esm/use-leader.d.ts",
"type": "module",
"dependencies": {
"nanoid": "^4.0.0"
"nanoevents": "^7.0.1",
"nanoid": "^4.0.1"
},
"peerDependencies": {
"react": "^18.0.0"
Expand Down
4 changes: 2 additions & 2 deletions src/use-leader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import {

import { nanoid } from "nanoid";

import Bully from "./bully.ts";
import { ID, Leader } from "./protocol.ts";
import Bully from "./bully.js";
import { ID, Leader } from "./protocol.js";

interface RefCounter {
instance: Bully;
Expand Down
4 changes: 3 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"compilerOptions": {
"target": "es2018",
"outDir": "./esm"
"outDir": "./esm",
"moduleResolution": "nodenext",
"declaration": true
},
"include": ["src/**/*"],
"exclude": ["src/**/*.test.ts"]
Expand Down

0 comments on commit b4344b9

Please sign in to comment.