-
-
Notifications
You must be signed in to change notification settings - Fork 75
postcss-tape : convert to workspace package #881
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
postcss-tape : convert to workspace package #881
Conversation
packages/postcss-tape/README.md
Outdated
## After node 20 is released do a find/replace to migrate fully to workspaces : | ||
|
||
- `import { postcssTape } from '../../packages/postcss-tape/dist/index.mjs';` | ||
- `import { postcssTape } from '@csstools/postcss-tape';` | ||
|
||
Then add `@csstools/postcss-tape` the each `package.json` as a dev dependency. |
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.
We are now using a more recent npm
version when testing node 14
.
So we can do this migration sooner.
let packageName = packageInfo.name; | ||
if (packageName.startsWith('@')) { | ||
const parts = packageInfo.name.split('/'); | ||
packageName = parts.slice(1).join('/'); | ||
} | ||
|
||
if (!packageName.startsWith('postcss-') && !isOlderPackageName) { |
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.
This should work well for 3rd party scoped packages. @foo/postcss-bar
export type TestCaseOptions = { | ||
// Debug message | ||
/** Debug message */ |
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.
This format of comments is exported and published, the other is not.
@@ -39,7 +39,6 @@ | |||
"dist" | |||
], | |||
"peerDependencies": { | |||
"postcss": "^8.4", |
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.
Weird bug that I noticed when adding the dev dependency for @csstools/postcss-tape
.
This package doesn't use postcss
at all.
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.
LGTM! Nice we got this out too before waiting for Node 20 😂
This is a refactor we planned to do anyway and a few minor tweaks to make the package suitable for 3rd parties.
It can be released so that others can also make use of it.
apparently the labeler also has a hard limit 😂