microsoft / azure-devops-extension-sdk

Client SDK for developing Azure DevOps extensions
MIT License
122 stars 38 forks source link

Fix package tar #92

Closed lohitakshgupta closed 8 months ago

lohitakshgupta commented 8 months ago

Everything gets generated correctly inside the bin folder (content used for testing) but during the npm pack, expected Tarball contents are missing. After the fix:

npm notice === Tarball Contents ===
npm notice 1.2kB  LICENSE
npm notice 2.5kB  README.md
npm notice 7.8kB  SDK.d.ts
npm notice 11.3kB SDK.js
npm notice 21.9kB SDK.js.map
npm notice 11.1kB SDK.min.js
npm notice 2.8kB  SECURITY.md
npm notice 7.5kB  XDM.d.ts
npm notice 22.8kB XDM.js
npm notice 40.7kB XDM.js.map
npm notice 7.5kB  XDM.min.js
npm notice 7.8kB  esm/SDK.d.ts
npm notice 8.9kB  esm/SDK.js
npm notice 21.7kB esm/SDK.js.map
npm notice 8.5kB  esm/SDK.min.js
npm notice 7.5kB  esm/XDM.d.ts
npm notice 18.8kB esm/XDM.js
npm notice 39.3kB esm/XDM.js.map
npm notice 5.4kB  esm/XDM.min.js
npm notice 1.1kB  package.json

Also, modified the package.json to specify a set of subpaths for different module types:

Also, the main property and the exports property are not mutually exclusive and can be used together. The main property specifies the main entry point for the module, while the exports property specifies additional subpaths that can be imported by other modules.