Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use @particle/device-os-protobuf instead of the proto submodule #99

Merged
merged 3 commits into from
Jan 30, 2024

Conversation

keeramis
Copy link
Contributor

@keeramis keeramis commented Jan 29, 2024

The Particle USB library relies on the device-os-protobuf library, which is currently installed both as a direct dependency in the node_modules folder and included as a submodule called proto. This pull request streamlines the dependency management by removing the submodule and exclusively utilizing the installed dependency within the node_modules folder.

@keeramis keeramis marked this pull request as ready for review January 29, 2024 21:24
package.json Outdated
"build:web": "webpack-cli",
"docs": "documentation build src/** -g -f md -o docs/reference.md",
"clean": "rm -rf ./dist ./lib",
"reinstall": "npm run clean && rm -rf ./node_modules && npm i"
"reinstall": "npm run clean && rm -rf ./node_modules && rm -rf proto/ && npm i"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's ask our internal users to clean up proto manually since it involves removing some entries from .git as well and it's a one-off thing.

@@ -2,7 +2,7 @@ const { Request } = require('./request');
const { fromProtobufEnum } = require('./protobuf-util');
const { convertBufferToMacAddress } = require('./address-util.js');
const { globalOptions } = require('./config');
const proto = require('./protocol');
const { definitions: proto } = require('@particle/device-os-protobuf');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer this form vs the one you have in device.js

@keeramis keeramis merged commit b1feebc into main Jan 30, 2024
4 checks passed
@keeramis keeramis deleted the feature/remove-proto-dir branch January 30, 2024 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants