Creating libraries inside Sharepoint Framework projects - updated manifest

If you are into the SPFx world you probably know Waldek Blog here: https://blog.mastykarz.nl/, which is for me probably the best resource out there to learn SPFx for free.

One year ago he wrote about how to create dll code in SPFx, dll-code for those C# geeks out there, the blog post can be found here: https://blog.mastykarz.nl/dll-code-sharepoint-framework/

One year later I reviewed this with the latest bits of SPFx and discovered that the .json schemas for the needed files has changed, so I thought it should be documented somewhere, I couldnt find in the original documentation if this has been posted somewhere, if not, I hope it does soon.

yourlibrary.manifest.json
change: alias is now required and it wasnt before, if you dont put it, gulp bundle wont work

{
  "$schema": "../../../node_modules/@microsoft/sp-module-interfaces/lib/manifestSchemas/jsonSchemas/client-side-component-manifest.schema.json",

  "id": "69b1aacd-68f2-4147-8433-8efb08eae331",
  "componentType": "Library",
  "version": "0.0.1",
  "manifestVersion": 2,
  "alias": "spdataaccess"
}

config.json
Now there is no entries in the schema, its called bundles, and its an array of objects which contains components, which contain an entrypoint and the relative url to the manifest file

{
  "$schema": "https://dev.office.com/json-schemas/spfx-build/config.2.0.schema.json",
  "version": "2.0",
  "bundles": {
    //omited    
    "spdataaccess": {
      "components": [
        {
          "entrypoint": "./lib/libraries/spdataaccess/dataproviders/sharepointDataProvider.js",
          "manifest": "./src/libraries/spdataaccess/spdataaccess.manifest.json"
        }
      ]    
    }
  },
  "externals": {},
  //ommited
}

After this update, gulp bundle works fine and you should be set to go.