-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #612 from kadena-community/chore/migrate-away-from…
…-rush Migrate to pnpm + turborepo
- Loading branch information
Showing
105 changed files
with
3,333 additions
and
5,022 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
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,19 @@ | ||
const ALLOWED_ROOT_DEPENDENCIES = ['@kadena-dev/markdown', 'only-allow', 'syncpack', 'turbo']; | ||
|
||
function readPackage(pkg, context) { | ||
if(pkg.name === '@kadena/js-monorepo') { | ||
const deps = Object.keys({...pkg.dependencies ?? {}, ...pkg.devDependencies ?? {}}); | ||
deps.forEach(pkg => { | ||
if(!ALLOWED_ROOT_DEPENDENCIES.includes(pkg)) { | ||
throw new Error(`Root dependency not allowed: ${pkg}`) | ||
} | ||
}); | ||
} | ||
return pkg; | ||
} | ||
|
||
module.exports = { | ||
hooks: { | ||
readPackage, | ||
}, | ||
}; |
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,43 @@ | ||
// @ts-check | ||
|
||
/** @type {import("syncpack").RcFile} */ | ||
const config = { | ||
versionGroups: [ | ||
{ | ||
label: 'Internal packages that have inconsistent version usage', | ||
packages: ['**'], | ||
dependencies: [ | ||
'@kadena/chainweb-node-client', | ||
'@kadena/client', | ||
'@kadena/fonts', | ||
'@kadena/pactjs-cli', | ||
'@kadena-dev/eslint-plugin', | ||
], | ||
isIgnored: true, // Toggle flag or or remove group to see inconsistencies | ||
}, | ||
{ | ||
label: 'Internal dev packages are pinned to `workspace:*`', | ||
packages: ['**'], | ||
dependencies: ['@kadena-dev/*', '@kadena/types'], | ||
dependencyTypes: ['dev'], | ||
pinVersion: 'workspace:*', | ||
}, | ||
{ | ||
label: 'Internal production packages are pinned to `workspace:*`', | ||
packages: ['**'], | ||
dependencies: ['kadena.js', '@kadena/*'], | ||
dependencyTypes: ['prod'], | ||
pinVersion: 'workspace:*', | ||
}, | ||
{ | ||
label: | ||
'Types and internal dev packages are banned from dependencies (only allowed in devDependencies)', | ||
packages: ['**'], | ||
dependencies: ['@types/*', '*/types', '@kadena-dev/*'], | ||
dependencyTypes: ['prod'], | ||
isBanned: true, | ||
}, | ||
], | ||
}; | ||
|
||
module.exports = config; |
Oops, something went wrong.
e969f3c
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.
Successfully deployed to the following URLs:
react-ui – ./packages/libs/react-ui
react-ui-delta.vercel.app
react-ui-kadena-js.vercel.app
react-ui-git-main-kadena-js.vercel.app
react-ui.kadena.io