File tree Expand file tree Collapse file tree 3 files changed +14
-14
lines changed Expand file tree Collapse file tree 3 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " platformio-node-helpers" ,
3- "version" : " 12.0 .0" ,
3+ "version" : " 11.2 .0" ,
44 "description" : " Collection of Node.JS helpers for PlatformIO" ,
5- "exports " : " ./ dist/index.js" ,
5+ "main " : " dist/index.js" ,
66 "engines" : {
7- "node" : " >=18 "
7+ "node" : " >=14 "
88 },
99 "scripts" : {
1010 "build" : " webpack --env build" ,
5151 },
5252 "homepage" : " https://platformio.org" ,
5353 "dependencies" : {
54- "global-agent" : " ~ 3.0.0" ,
55- "got" : " ~ 14.4.5" ,
54+ "global-agent" : " ^ 3.0.0" ,
55+ "got" : " ^ 14.4.5" ,
5656 "jsonrpc-lite" : " ~2.1.1" ,
57- "semver" : " ~ 7.6.3" ,
57+ "semver" : " ^ 7.6.3" ,
5858 "tar" : " ~7.4.3" ,
5959 "tcp-port-used" : " ~1.0.2" ,
6060 "ws" : " ~8.18.0"
Original file line number Diff line number Diff line change 88
99import * as core from '../core' ;
1010import * as proc from '../proc' ;
11+ import * as tar from 'tar' ;
1112
1213import { callInstallerScript } from './get-platformio' ;
1314import crypto from 'crypto' ;
@@ -18,7 +19,6 @@ import path from 'path';
1819import { promisify } from 'util' ;
1920import semver from 'semver' ;
2021import stream from 'stream' ;
21- import tar from 'tar' ;
2222import zlib from 'zlib' ;
2323
2424const HTTPS_CA_CERTIFICATES = `
Original file line number Diff line number Diff line change 66 * the root directory of this source tree.
77 */
88
9- import fs from 'fs' ;
10- import path from 'path' ;
11- import webpack from 'webpack' ;
9+ const fs = require ( 'fs' ) ;
10+ const path = require ( 'path' ) ;
11+ const webpack = require ( 'webpack' ) ;
1212
13- const packageConfig = JSON . parse ( fs . readFileSync ( './ package.json') , 'utf8' ) ;
13+ const packageConfig = JSON . parse ( fs . readFileSync ( path . join ( __dirname , ' package.json') , 'utf8' ) ) ;
1414
15- export default {
15+ module . exports = {
1616 mode : 'production' ,
17- entry : '. /src/index.js',
17+ entry : __dirname + ' /src/index.js',
1818 output : {
19- path : path . resolve ( './ dist') ,
19+ path : path . join ( __dirname , ' dist') ,
2020 filename : 'index.js' ,
2121 library : 'platformio-node-helpers' ,
2222 libraryTarget : 'umd' ,
You can’t perform that action at this time.
0 commit comments