-
Notifications
You must be signed in to change notification settings - Fork 2
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
Migrate to pnpm #1123
base: main
Are you sure you want to change the base?
Migrate to pnpm #1123
Conversation
…s to use workspace)
…es to build docs for
|
@@ -17,16 +17,16 @@ | |||
"main": "dist/index.js", | |||
"types": "dist/index.d.ts", | |||
"scripts": { | |||
"test": "bash -c 'yarn --silent --cwd \"../..\" test ${@:0} $($([[ ${@: -1} = -* ]] || [[ ${@: -1} = bash ]]) && echo $PWD)'" | |||
"test": "bash -c 'pnpm --silent --dir \"../..\" test ${@:0} $($([[ ${@: -1} = -* ]] || [[ ${@: -1} = bash ]]) && echo $PWD)'" |
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.
Despite some work, I cannot get this to work. It runs, but does not run any tests.
I'm inclined to remove these test
scripts from each of these packages. I don't know that anyone uses them and running tests from the root is quite easy (including the ability to filter to a single package by running pnpm test packages/wonder-stuff-ci
).
Summary:
This PR migrates this repo to pnpm. After the initial import, there were several changes I had to make to get all the
scripts
working. Many of these were the result ofyarn
resolving modules through the workspace root'snode_modules
whereaspnpm
puts anode_modules
dir in each package's dir.Changes include:
post-install
script unless it's approved) #securitycheck-type-definitions.js
so thatpnpm build:types
workspre-publish-check-ci.js
docs/
directoryeslint-plugin-khan
that used to be available implicitly by yarntypedoc.config.js
to be CJSIssue: FEI-6300
Test plan:
I ran each of the scripts in
package.json
including thepublish:ci
(which I temporarily modified to not do the last step which acctually publishes).