Aktualisiere Paketnamen und -pfade auf "dynamic-poll-web-part" in Konfigurationsdateien

This commit is contained in:
Torsten Brendgen
2026-08-24 10:36:02 +02:00
parent 9043f89457
commit fcd8e026ee
4 changed files with 10 additions and 7 deletions
+2 -3
View File
@@ -1,12 +1,11 @@
{ {
"@microsoft/generator-sharepoint": { "@microsoft/generator-sharepoint": {
"version": "1.4.1", "version": "1.4.1",
"libraryName": "dynamic-poll", "libraryName": "dynamic-poll-web-part",
"libraryId": "900239c9-b6c7-495d-a386-2d08a81a66f3", "libraryId": "900239c9-b6c7-495d-a386-2d08a81a66f3",
"environment": "onprem", "environment": "onprem",
"packageManager": "npm", "packageManager": "npm",
"solutionName": "dynamic-poll", "solutionName": "dynamic-poll-web-part",
"componentType": "webpart" "componentType": "webpart"
} }
} }
+1 -1
View File
@@ -55,7 +55,7 @@ npm install
npm run package npm run package
``` ```
Das fertige Paket liegt unter `sharepoint/solution/dynamic-poll.sppkg`. Das fertige Paket liegt unter `sharepoint/solution/dynamic-poll-web-part.sppkg`.
## Hinweise ## Hinweise
+3 -3
View File
@@ -1,12 +1,12 @@
{ {
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/package-solution.schema.json", "$schema": "https://developer.microsoft.com/json-schemas/spfx-build/package-solution.schema.json",
"solution": { "solution": {
"name": "dynamic-poll-client-side-solution", "name": "dynamic-poll-web-part",
"title": "dynamic-poll-web-part",
"id": "900239c9-b6c7-495d-a386-2d08a81a66f3", "id": "900239c9-b6c7-495d-a386-2d08a81a66f3",
"version": "1.0.0.0", "version": "1.0.0.0",
"includeClientSideAssets": true, "includeClientSideAssets": true,
"skipFeatureDeployment": true "skipFeatureDeployment": true
}, },
"paths": { "zippedPackage": "solution/dynamic-poll.sppkg" } "paths": { "zippedPackage": "solution/dynamic-poll-web-part.sppkg" }
} }
+4
View File
@@ -17,6 +17,10 @@ var styles = read('src/webparts/dynamicPoll/components/DynamicPoll.module.scss')
assert(packageJson.version === '1.0.0' && solution.version === '1.0.0.0', 'Version mismatch.'); assert(packageJson.version === '1.0.0' && solution.version === '1.0.0.0', 'Version mismatch.');
assert(solution.includeClientSideAssets === true && solution.skipFeatureDeployment === true, 'Central deployment missing.'); assert(solution.includeClientSideAssets === true && solution.skipFeatureDeployment === true, 'Central deployment missing.');
assert(packageJson.name === 'dynamic-poll-web-part' && solution.name === 'dynamic-poll-web-part' &&
solution.title === 'dynamic-poll-web-part', 'Dynamic Poll package naming is inconsistent.');
assert(json('config/package-solution.json').paths.zippedPackage === 'solution/dynamic-poll-web-part.sppkg',
'Dynamic Poll package file name is inconsistent.');
assert(manifest.componentType === 'WebPart', 'Component is not a web part.'); assert(manifest.componentType === 'WebPart', 'Component is not a web part.');
assert(webPart.indexOf("PropertyPaneDropdown('pollListId'") >= 0 && webPart.indexOf("PropertyPaneDropdown('answerListId'") >= 0, assert(webPart.indexOf("PropertyPaneDropdown('pollListId'") >= 0 && webPart.indexOf("PropertyPaneDropdown('answerListId'") >= 0,
'List selection is missing.'); 'List selection is missing.');