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

Commit daa5def

Browse files
author
Jakob Rosenberg
authored
Merge pull request #310 from pycom/fix-serialport-through-plugin
fix npm couldn't install serialport at runtime
2 parents 6ce9f7d + a9412a9 commit daa5def

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## [2.3.6](https://github.com/pycom/pymakr-atom/compare/v2.3.5...v2.3.6) (2022-04-06)
2+
3+
4+
### Bug Fixes
5+
6+
* removed serialport from dependencies ([6e3d64e](https://github.com/pycom/pymakr-atom/commit/6e3d64e2da6898f563265f30abd00a25ac93afa5))
7+
18
## [2.3.5](https://github.com/pycom/pymakr-atom/compare/v2.3.4...v2.3.5) (2022-04-06)
29

310

lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default {
1414
} catch (err) {
1515
if (err.code === 'MODULE_NOT_FOUND') {
1616
console.log('serialport not installed. Installing...');
17-
require('child_process').execSync('npm install serialport');
17+
require('child_process').execSync('npm install serialport', { cwd: __dirname + '/..' });
1818
console.log('Installed serialport!');
1919
}
2020
}

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "pymakr",
33
"main": "./lib/main.js",
4-
"version": "2.3.5",
4+
"version": "2.3.6",
55
"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.",
66
"keywords": [
77
"Pycom",

0 commit comments

Comments
 (0)