Skip to content

Commit f2fa53f

Browse files
committed
Add supply chain security requirement to PostCSS plugin guide
1 parent 10edf0b commit f2fa53f

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

docs/writing-a-plugin.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -315,11 +315,11 @@ plugin.postcss = true
315315
Second argument also have `result` object to add warnings:
316316

317317
```js
318-
Declaration: {
319-
bad: (decl, { result }) => {
320-
decl.warn(result, 'Deprecated property bad')
321-
}
322-
}
318+
Declaration: {
319+
bad: (decl, { result }) => {
320+
decl.warn(result, 'Deprecated property bad')
321+
}
322+
}
323323
```
324324

325325
If your plugin depends on another file, you can attach a message to `result`
@@ -393,9 +393,7 @@ Don’t afraid to ask in [special channel](https://github.com/orgs/postcss/discu
393393

394394
## Step 6: Make it public
395395

396-
When your plugin is ready, call `npx clean-publish` in your repository.
397-
[`clean-publish`] is a tool to remove development configs from the npm package.
398-
We added this tool to our plugin boilerplate.
396+
Publish npm package with your new PostCSS plugin using [our guide](https://evilmartians.com/chronicles/the-secure-way-to-release-an-npm-package) with techniques to protect against supply chain attacks.
399397

400398
Write a tweet about your new plugin (even if it is a small one) with
401399
[`@postcss`] mention. Or tell about your plugin in [our chat].

0 commit comments

Comments
 (0)