dataverse-types-gen 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -36,7 +36,7 @@ The generator authenticates with Microsoft Entra ID using the client-credentials
36
36
  | Variable | Description |
37
37
  | ------------------------ | ------------------------------------------------------------------------ |
38
38
  | `SERVER_URL` | Dataverse environment URL, e.g. `https://contoso.crm.dynamics.com` |
39
- | `AUTHORITY_URL` | OAuth authority, e.g. `https://login.microsoftonline.com/<tenant-id>` |
39
+ | `TENANT_ID` | Microsoft Entra tenant ID |
40
40
  | `DYNAMICS_CLIENT_ID` | Azure AD application (client) ID |
41
41
  | `DYNAMICS_CLIENT_SECRET` | Azure AD application client secret |
42
42
 
package/dist/cli.js CHANGED
@@ -19,7 +19,7 @@ Config JSON shape:
19
19
 
20
20
  Environment variables (loaded from .env if present):
21
21
  SERVER_URL Dataverse environment URL (e.g. https://org.crm.dynamics.com)
22
- AUTHORITY_URL OAuth authority (e.g. https://login.microsoftonline.com/<tenant-id>)
22
+ TENANT_ID Microsoft Entra tenant ID
23
23
  DYNAMICS_CLIENT_ID Azure AD app client ID
24
24
  DYNAMICS_CLIENT_SECRET Azure AD app client secret
25
25
  `);
package/dist/generator.js CHANGED
@@ -18,7 +18,7 @@ const acquireToken = async () => {
18
18
  }
19
19
  });
20
20
  const result = await cca.acquireTokenByClientCredential({
21
- authority: requireEnv("AUTHORITY_URL"),
21
+ authority: `https://login.microsoftonline.com/${requireEnv("TENANT_ID")}`,
22
22
  scopes: [`${requireEnv("SERVER_URL")}/.default`]
23
23
  });
24
24
  if (!result?.accessToken) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dataverse-types-gen",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Generate TypeScript types and optionset enums from a Microsoft Dataverse / Dynamics 365 environment's $metadata.",
5
5
  "type": "module",
6
6
  "repository": {
@@ -21,10 +21,6 @@
21
21
  "README.md",
22
22
  "LICENSE"
23
23
  ],
24
- "scripts": {
25
- "build": "tsc",
26
- "prepublishOnly": "pnpm build"
27
- },
28
24
  "keywords": [
29
25
  "dataverse",
30
26
  "dynamics",
@@ -47,5 +43,8 @@
47
43
  "devDependencies": {
48
44
  "@types/node": "^24.0.10",
49
45
  "typescript": "^5.8.3"
46
+ },
47
+ "scripts": {
48
+ "build": "tsc"
50
49
  }
51
- }
50
+ }