Skip to content

Commit 5060278

Browse files
committed
feat(rollup-plugin): initial commit
1 parent c369afc commit 5060278

File tree

5 files changed

+25
-5
lines changed

5 files changed

+25
-5
lines changed

.commitlintrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
"always",
99
[
1010
"json-map-keys",
11-
"loader",
12-
"rollup"
1311
"jest-transformer",
12+
"webpack-loader",
13+
"rollup-plugin"
1414
]
1515
]
1616
}
File renamed without changes.

packages/json-map-keys-rollup/README.md renamed to packages/rollup-plugin/README.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,26 @@
11
# rollup-plugin-json-map-keys
22

3-
> Rollup plugin to replace json values with the key path.
3+
Rollup plugin to replace json values with the keys path.
4+
5+
Example:
6+
7+
```json
8+
{
9+
"a": {
10+
"b": "Text Note"
11+
}
12+
}
13+
```
14+
15+
Will generate
16+
17+
```json
18+
{
19+
"a": {
20+
"b": "a.b"
21+
}
22+
}
23+
```
424

525
## Install
626

File renamed without changes.

packages/json-map-keys-rollup/package.json renamed to packages/rollup-plugin/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "rollup-plugin-json-map-keys",
33
"version": "1.0.0-beta.1",
44
"description": "Rollup plugin to replace json values with the key path.",
5-
"homepage": "https://github.com/tiagoporto/json-map-keys/tree/main/packages/json-map-keys-rollup#readme",
5+
"homepage": "https://github.com/tiagoporto/json-map-keys/tree/main/packages/rollup-plugin#readme",
66
"keywords": [
77
"rollup",
88
"transformer",
@@ -14,7 +14,7 @@
1414
"repository": {
1515
"type": "git",
1616
"url": "https://github.com/tiagoporto/json-map-keys.git",
17-
"directory": "packages/json-map-keys-rollup"
17+
"directory": "packages/rollup-plugin"
1818
},
1919
"funding": "https://github.com/sponsors/tiagoporto",
2020
"type": "module",

0 commit comments

Comments
 (0)