New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Winter 2022 build update #20
Merged
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
899acda
Introduce monorepo reference tools
nyonson 4b83ab3
Update workflow
nyonson a4d94ac
Post coverage
nyonson 29bb982
move deps to packages
nyonson 77f9809
Move linting down
nyonson a98f27f
Add some jest configs
nyonson 24e9a76
Jest almost working
nyonson d2725cb
Jest testing
nyonson b3a8ca8
fix test
nyonson 93b0053
Maybe package type module
nyonson dbdecab
got jest working
nyonson 93a4409
Add some comments to jest
nyonson 6e3df89
more tweaks
nyonson 481ae83
update rest of repo
nyonson 97aed2b
more fixes
nyonson 086e147
BAIL
nyonson ab2a00f
try different action
nyonson b23f3a7
Use real version
nyonson 9a73dc9
move release check to end
nyonson 5ea1e90
spelling
nyonson 3881301
Fix shitty coverage detection
mdedys 5bcda32
Do not publish tests and simplify ignore rules
nyonson a0b9fd2
Merge branch 'chore/winter-2022-build-update' of github.com:getmash/m…
nyonson 46f3177
Changeset
nyonson bcac016
add justfile
nyonson 0f39331
add references check to test target
nyonson 947d149
Switch default export to import
mdedys 640a4b1
Revert to top-level module and types to support typescript node modul…
mdedys b775863
Prelease
mdedys d650217
Exit from changeset pre mode
mdedys cd4b139
Update yarn lock file
mdedys File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"mode": "exit", | ||
"tag": "alpha", | ||
"initialVersions": { | ||
"@getmash/client-sdk": "1.1.3", | ||
"@getmash/jsonrpc-engine": "1.0.2", | ||
"@getmash/post-message": "1.1.0" | ||
}, | ||
"changesets": [ | ||
"strong-eagles-shop" | ||
] | ||
} |
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,7 @@ | ||
--- | ||
"@getmash/client-sdk": major | ||
"@getmash/jsonrpc-engine": major | ||
"@getmash/post-message": major | ||
--- | ||
|
||
Upgrade all packages to ESM only. Dropping tech debt and simplifying our tooling. |
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 |
---|---|---|
|
@@ -24,7 +24,7 @@ coverage | |
*.tsbuildinfo | ||
|
||
# jest | ||
.cache/jest | ||
**/.cache/jest | ||
|
||
#parcel | ||
.parcel-cache |
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,39 @@ | ||
const path = require("path"); | ||
|
||
const tsconfig = path.join(__dirname, "tsconfig.test.json"); | ||
const setupPostMessage = path.join(__dirname, "setupPostMessage.js"); | ||
|
||
function generate(config) { | ||
return Object.assign( | ||
{ | ||
cache: true, | ||
cacheDirectory: ".cache/jest", | ||
/* | ||
* Automatically clear mock calls and instances before every test. | ||
* Equivalent to calling jest.clearAllMocks() before each test. | ||
* This does not remove any mock implementation that may have been provided. | ||
*/ | ||
clearMocks: true, | ||
collectCoverage: true, | ||
collectCoverageFrom: ["src/**/*.{ts,tsx}"], | ||
coverageDirectory: "coverage/", | ||
extensionsToTreatAsEsm: [".ts", ".tsx", ".mts"], | ||
moduleNameMapper: { | ||
// jest resolver needs help finding the ts files from js extensions in imports | ||
"^(\\.{1,2}/.*)\\.js$": "$1", | ||
// there is a bug in jest and it can't handle the exports in this library | ||
"^uuid$": require.resolve("uuid"), | ||
}, | ||
transform: { | ||
"^.+\\.tsx?$": [ | ||
"ts-jest", | ||
{ useESM: true, tsconfig, diagnostics: false }, | ||
], | ||
}, | ||
setupFiles: [setupPostMessage], | ||
}, | ||
config, | ||
); | ||
} | ||
|
||
module.exports = generate; |
File renamed without changes.
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
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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,8 @@ | ||
# default help menu lists tasks | ||
@help: | ||
just --list --justfile {{justfile()}} --list-heading $'mash-js\n' | ||
|
||
# test all packages | ||
@test: | ||
yarn references:check | ||
yarn workspaces foreach --topological --parallel run test |
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 was deleted.
Oops, something went wrong.
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 @@ | ||
module.exports = require('../../conf/jest/jest.base.js')({ testEnvironment: "jsdom" }); |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.