Skip to content

Commit

Permalink
hopefully a fix for default export issue
Browse files Browse the repository at this point in the history
  • Loading branch information
cdleveille committed Sep 27, 2023
1 parent d965b47 commit 3b4b055
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 14 deletions.
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
node_modules/
lib/
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

- run: yarn install --frozen-lockfile

- run: yarn format
- run: yarn lint

- run: yarn build

Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
node_modules
lib
node_modules/
lib/
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
node_modules/
lib/
13 changes: 5 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gamepad-helper",
"version": "1.2.1",
"version": "1.2.2",
"description": "Wrapper class for the HTML5 Gamepad API.",
"keywords": [
"javascript",
Expand All @@ -13,12 +13,8 @@
"javascript-game",
"gamepad-api"
],
"main": "lib/index.js",
"types": "lib/index.d.ts",
"engines": {
"node": "^14.15.0 || ^16.6.2",
"yarn": "^1.22.5"
},
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
"repository": "https://github.com/cdleveille/gamepad-helper.git",
"author": "Chris Leveille <[email protected]>",
"license": "MIT",
Expand All @@ -40,5 +36,6 @@
"husky": "^8.0.1",
"prettier": "^2.7.1",
"typescript": "^4.7.4"
}
},
"exports": "./lib/index.js"
}
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export interface IGamepadButtonEventDetail {
button: number;
}

export default class GamepadHelper {
export class GamepadHelper {
public static gamepads: GamepadHub = {};
public static gamepadsLastUpdate: GamepadHub;
public static logOutput = false;
Expand Down Expand Up @@ -86,3 +86,5 @@ export default class GamepadHelper {
);
}
}

export default GamepadHelper;

0 comments on commit 3b4b055

Please sign in to comment.