generated from graasp/graasp-repo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(build): create a commonJs bundle (#427)
* fix: remove json assertions * Revert "fix: remove json assertions" This reverts commit 4b68cae. * fix: build both packages * fix: use unbuild with tsc * fix: use unbuild with tsc * fix: cleanup * fix: add unbunild to package * fix: remove unused dependencies
- Loading branch information
Showing
9 changed files
with
2,274 additions
and
87 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 |
---|---|---|
|
@@ -3,3 +3,6 @@ public | |
coverage | ||
src/serviceWorker.js | ||
cypress/integration/examples | ||
dist | ||
cjs | ||
esm |
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 |
---|---|---|
|
@@ -8,6 +8,8 @@ node_modules | |
# production | ||
/build | ||
/dist | ||
/cjs | ||
/esm | ||
|
||
# misc | ||
.DS_Store | ||
|
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
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
"outDir": "./cjs", | ||
"noEmit": false, | ||
// declarations are emitted separately | ||
"declaration": true, | ||
"target": "ES2015", | ||
"module": "CommonJS", | ||
"moduleResolution": "Node" | ||
}, | ||
"exclude": ["src/**/*.test.ts"] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
"outDir": "./esm", | ||
"noEmit": false, | ||
// declarations are emitted separately | ||
"declaration": true, | ||
"target": "ES2015", | ||
"module": "NodeNext", | ||
"moduleResolution": "NodeNext" | ||
}, | ||
"exclude": ["src/**/*.test.ts"] | ||
} |
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,14 +1,33 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "es2015", | ||
"target": "ESNext", | ||
"useDefineForClassFields": true, | ||
"lib": ["ES2020", "ES2021.String", "ESNext", "DOM", "DOM.Iterable"], | ||
"allowJs": false, | ||
"module": "NodeNext", | ||
"strict": true, | ||
"outDir": "dist", | ||
"skipLibCheck": true, | ||
"declaration": true, | ||
|
||
/* Bundler mode */ | ||
"moduleResolution": "NodeNext", | ||
"resolveJsonModule": true | ||
"resolveJsonModule": true, | ||
"esModuleInterop": true, | ||
"isolatedModules": true, | ||
"noEmit": true, | ||
"jsx": "react-jsx", | ||
|
||
/* Linting */ | ||
"strict": true, | ||
"noUnusedLocals": true, | ||
"noUnusedParameters": true, | ||
"noFallthroughCasesInSwitch": true, | ||
|
||
"paths": { | ||
"@/*": ["./src/*"] | ||
}, | ||
|
||
"noImplicitThis": true, | ||
"noImplicitAny": true, | ||
"strictNullChecks": true | ||
}, | ||
"include": ["src/**/*"], | ||
"exclude": ["test", "src/**/*.test.ts"] | ||
"include": ["src"] | ||
} |
Oops, something went wrong.