Skip to content

Commit

Permalink
docs: fix custom element manifest generation (#2939)
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinbarron authored Jan 9, 2024
1 parent 90b2dd1 commit 11459db
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
Binary file not shown.
2 changes: 1 addition & 1 deletion cem-plugins/mgt-tag-plugin.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export default function mgtTagPlugin() {
//do things...
if (context.dev) console.log(node);

var elementClass = node.arguments[1].text;
var elementTag = node.arguments[0].text;
var elementClass = node.arguments[1].text;
const definitionDoc = {
kind: 'custom-element-definition',
name: elementTag,
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"scripts": {
"init": "yarn && yarn build",
"analyze": "custom-elements-manifest analyze --globs \"./packages/*/src/**/*.ts\"",
"analyze": "custom-elements-manifest analyze --litelement --globs \"./packages/*/src/**/*.ts\"",
"build": "npm run prettier:check && npm run clean && lerna run build --scope '@microsoft/*'",
"build:dev": "npm run prettier:check && lerna run build --scope '@microsoft/*' --ignore '@microsoft/mgt' --ignore '@microsoft/mgt-spf*' --ignore '@microsoft/mgt-sharepoint-provider' --ignore '@microsoft/mgt-electron-provider' --ignore '@microsoft/mgt-teamsfx-provider' --ignore '@microsoft/mgt-proxy-provider'",
"build:compile": "npm run prettier:check && npm run clean && lerna run build:compile --scope '@microsoft/*'",
Expand Down Expand Up @@ -66,7 +66,7 @@
"@babel/preset-env": "^7.22.20",
"@babel/preset-react": "^7.12.7",
"@babel/preset-typescript": "^7.23.0",
"@custom-elements-manifest/analyzer": "^0.8.3",
"@custom-elements-manifest/analyzer": "^0.9.0",
"@esm-bundle/chai": "^4.3.4-fix.0",
"@microsoft/eslint-config-msgraph": "^2.0.0",
"@octokit/rest": "^18.5.3",
Expand Down Expand Up @@ -159,4 +159,4 @@
"responselike": "2.0.0"
},
"packageManager": "[email protected]"
}
}
4 changes: 2 additions & 2 deletions packages/mgt-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"compile:watch": "tsc -w",
"build:watch": "npm run compile:watch",
"postpack": "cpx *.tgz ../../artifacts",
"analyze": "custom-elements-manifest analyze --globs \"../*/src/**/*.ts\" --outdir temp",
"analyze": "custom-elements-manifest analyze --litelement --globs \"../*/src/**/*.ts\" --outdir temp",
"generate": "npm run analyze && node ./scripts/generate.js"
},
"sideEffects": false,
Expand All @@ -48,4 +48,4 @@
"publishConfig": {
"access": "public"
}
}
}
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2148,9 +2148,9 @@ __metadata:
languageName: node
linkType: hard

"@custom-elements-manifest/analyzer@npm:^0.8.3":
version: 0.8.4
resolution: "@custom-elements-manifest/analyzer@npm:0.8.4"
"@custom-elements-manifest/analyzer@npm:^0.9.0":
version: 0.9.0
resolution: "@custom-elements-manifest/analyzer@npm:0.9.0"
dependencies:
"@custom-elements-manifest/find-dependencies": ^0.0.5
"@github/catalyst": ^1.6.0
Expand All @@ -2165,7 +2165,7 @@ __metadata:
bin:
cem: cem.js
custom-elements-manifest: cem.js
checksum: f9b378368640c2288d175b0f8a2573d6287f7563e2265d8bbb4adcc6c733ef2da37f6ce45086f71d47e3abd6bfe6366abcec1e0c4a7b40fe56b822cb2938be3a
checksum: 37f480d827a9fd10abbc7f9df03b08bafff96cee2cdde40f9798c0cb63d01e1a304e60a9f5afc1aee33cf987e06bb8c5f185db284cf8253968a8f1fa71315a8e
languageName: node
linkType: hard

Expand Down Expand Up @@ -33638,7 +33638,7 @@ __metadata:
"@babel/preset-env": ^7.22.20
"@babel/preset-react": ^7.12.7
"@babel/preset-typescript": ^7.23.0
"@custom-elements-manifest/analyzer": ^0.8.3
"@custom-elements-manifest/analyzer": ^0.9.0
"@esm-bundle/chai": ^4.3.4-fix.0
"@microsoft/eslint-config-msgraph": ^2.0.0
"@octokit/rest": ^18.5.3
Expand Down

0 comments on commit 11459db

Please sign in to comment.