- Download and install Node.js (v10.15.2 LTS has been used)
-
Run
npm install
from thenodejs
folder to install the protobuf package -
Regenerate the language binding source from gtfs-realtime.proto by running the following from the
nodejs
folder:npm run buildProto
-
Add the license header back to the generated source file.
-
Test the generated code:
npm run test
-
Update the version number in
package.json
.
Log in with your account on NPM that has permissions for https://www.npmjs.com/package/gtfs-realtime-bindings:
npm login
Publish the package to NPM:
npm publish