Skip to content

Commit a155f2f

Browse files
committed
fix(heft-stylelint-plugin): add required options schema to lib folder
1 parent b438f55 commit a155f2f

File tree

4 files changed

+24
-17
lines changed

4 files changed

+24
-17
lines changed

heft-plugins/heft-stylelint-plugin/config/heft-stylelint-plugin.schema.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

heft-plugins/heft-stylelint-plugin/config/heft.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,22 @@
77
"taskPlugin": {
88
"pluginPackage": "@rushstack/heft-typescript-plugin"
99
}
10+
},
11+
"copy-json-schema": {
12+
"taskPlugin": {
13+
"pluginPackage": "@rushstack/heft",
14+
"pluginName": "copy-files-plugin",
15+
"options": {
16+
"copyOperations": [
17+
{
18+
"sourcePath": "src/schemas",
19+
"destinationFolders": ["lib/schemas"],
20+
"fileExtensions": [".schema.json"],
21+
"hardlink": true
22+
}
23+
]
24+
}
25+
}
1026
}
1127
}
1228
},

heft-plugins/heft-stylelint-plugin/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@voitanos/heft-stylelint-plugin",
33
"description": "A Heft plugin for using Stylelint.",
4-
"version": "0.1.0-beta.3",
4+
"version": "0.1.0-beta.4",
55
"repository": {
66
"type": "git",
77
"url": "git+https://github.com/Voitanos/heft-plugins.git",
@@ -27,7 +27,8 @@
2727
},
2828
"scripts": {
2929
"build": "heft build --clean",
30-
"test": "heft test --clean"
30+
"test": "heft test --clean",
31+
"start": "heft build-watch"
3132
},
3233
"dependencies": {
3334
"stylelint": "16.25.0",
Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
{
2-
"$schema": "http://json-schema.org/draft-04/schema#",
3-
"title": "Heft Stylelint Plugin Options Configuration",
4-
"description": "This schema describes the \"options\" field that can be specified in heft.json when loading \"@voitanos/heft-stylelint-plugin\".",
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"title": "Stylelint Plugin Options",
4+
"description": "Configuration options for the Heft Stylelint plugin",
55
"type": "object",
6-
7-
"additionalProperties": false,
8-
9-
"properties": { }
6+
"properties": {},
7+
"additionalProperties": false
108
}

0 commit comments

Comments
 (0)