-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: ESM export and export all related structures
- Loading branch information
zaid450
committed
Sep 25, 2020
1 parent
8eef561
commit 03eb456
Showing
4 changed files
with
19 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
tests/ | ||
node_modules/ | ||
dist/ | ||
esm/ | ||
*.config.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
const {QuizizzClient} = require("../dist/index.js"); | ||
const QuizizzJS = require("../dist/index.js"); | ||
|
||
export { QuizizzClient }; | ||
export const QuizizzJS; | ||
|
||
export const { | ||
QuizizzClient, | ||
Question, | ||
User, | ||
Quiz, | ||
Structure, | ||
RequestError | ||
} = QuizizzJS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
import QuizizzClient from "./QuizizzClient"; | ||
import Question from "./structures/Question"; | ||
import Quiz from "./structures/Quiz"; | ||
import RequestError from "./structures/RequestError"; | ||
import Structure from "./structures/Structure"; | ||
import User from "./structures/User"; | ||
|
||
export { QuizizzClient }; | ||
export { QuizizzClient, Question, User, Quiz, Structure, RequestError }; |