Skip to content
This repository was archived by the owner on Nov 24, 2022. It is now read-only.

Commit 3c5d500

Browse files
committed
fix: getPluginName missing plugin scope
1 parent beca5e3 commit 3c5d500

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ If it gets included in another pattern, the wrapper is not added.
66

77
This comes in handy if you, for example, use theming classes to visualize different backgrounds, colors etc.
88

9+
## Install
10+
11+
```
12+
npm i @hadl/patternlab-plugin-pattern-wrap -D
13+
```
14+
915
## Configuration
1016

1117
After the installation, you will see the config in your `patternlab-config.json`:
@@ -25,7 +31,7 @@ After the installation, you will see the config in your `patternlab-config.json`
2531
If you don't see this config object, add the plugin via the command:
2632

2733
```
28-
patternlab install --plugins @hadl/patternlab-plugin-pattern-wrap
34+
npx patternlab install --plugins @hadl/patternlab-plugin-pattern-wrap
2935
```
3036

3137
In the `wrapClassKey` array you can add the data keys which should be used to get the class names.

helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @return {string}
44
*/
55
function getPluginName() {
6-
return 'patternlab-plugin-pattern-wrap';
6+
return '@hadl/patternlab-plugin-pattern-wrap';
77
}
88

99
/**

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hadl/patternlab-plugin-pattern-wrap",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Pattern Wrapper Plugin for Pattern Lab Node",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)