Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

Commit

Permalink
Merge pull request #310 from pycom/fix-serialport-through-plugin
Browse files Browse the repository at this point in the history
fix npm couldn't install serialport at runtime
  • Loading branch information
Jakob Rosenberg authored Apr 6, 2022
2 parents 6ce9f7d + a9412a9 commit daa5def
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [2.3.6](https://github.com/pycom/pymakr-atom/compare/v2.3.5...v2.3.6) (2022-04-06)


### Bug Fixes

* removed serialport from dependencies ([6e3d64e](https://github.com/pycom/pymakr-atom/commit/6e3d64e2da6898f563265f30abd00a25ac93afa5))

## [2.3.5](https://github.com/pycom/pymakr-atom/compare/v2.3.4...v2.3.5) (2022-04-06)


Expand Down
2 changes: 1 addition & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default {
} catch (err) {
if (err.code === 'MODULE_NOT_FOUND') {
console.log('serialport not installed. Installing...');
require('child_process').execSync('npm install serialport');
require('child_process').execSync('npm install serialport', { cwd: __dirname + '/..' });
console.log('Installed serialport!');
}
}
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "pymakr",
"main": "./lib/main.js",
"version": "2.3.5",
"version": "2.3.6",
"description": "Adds a REPL console to Atom that connects to your Pycom board. It can run code on the board or synchronize your project files to it.",
"keywords": [
"Pycom",
Expand Down

0 comments on commit daa5def

Please sign in to comment.