Commit Graph

53 Commits

Author SHA1 Message Date
Otavio Jacobi
c0e7ae9c91 Update @balena/lint to v9.1.3
Update @balena/lint from 8.0.0 to 9.1.3

Change-type: patch
2024-12-16 14:09:47 -03:00
Otavio Jacobi
4760866c77 Update all references of lib to src
Change-type: patch
2024-08-22 13:03:37 -03:00
Thodoris Greasidis
e26895085d Mark bin/dev & bin/run as executable
Change-type: patch
2024-04-09 17:16:30 +03:00
Otavio Jacobi
742c015f21 Use standard oclif run.js & dev.js
Change-type: patch
2024-03-14 09:21:11 -03:00
Otávio Jacobi
72a924f00e Bump oclif-core to v3
Change-type: patch
2023-11-16 15:06:24 -03:00
myarmolinsky
7d13946c3e Bump balena-lint to 7.2.1
Change-type: patch
2023-10-30 07:45:51 -04:00
Paulo Castro
d15b54cf40 Fix fast-boot module caching with read-only installation folders
* Add missing fast-boot `stop()` call on CLI exit to avoid 1s timeout.
* Move `.fast-boot.json` to `~/.balena/cli-module-cache.json` to
address scenarios where the CLI is installed to a read-only folder:
- pkg's internal 'snapshot' filesystem (standalone zip package)
- Root-owned folder without write permission to regular users,
  like `/usr[/local]/lib/balena-cli` (the case of caxa-based
  installers or the GUI installer for macOS).

Change-type: patch
2021-05-27 00:23:36 +00:00
Scott Lowe
5c93df921e Modify handling of SIGINT in balena-dev
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-12-18 10:19:55 +01:00
Paulo Castro
2974c203b5 Add bin/balena* scripts to linter paths
Change-type: patch
2020-10-05 22:10:54 +01:00
Scott Lowe
c85acbd90b Workaround balena-dev/oclif compatibility issues
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-10-02 16:17:16 +02:00
Pagan Gazzard
488d9b901c Use @balena/es-version to set the desired es version for modules
Change-type: minor
2020-06-29 21:25:48 +00:00
Pagan Gazzard
c054d55456 Use cacheScope for fast-boot2 to allow caching when globally installed
Change-type: patch
2020-06-24 16:43:03 +00:00
Pagan Gazzard
dd20a8b00f Disable oclif's ts-node registering when running against built code
Change-type: patch
2020-05-04 15:08:24 +01:00
Pagan Gazzard
14c5b27cdd Convert lib/app-capitano.coffee to javascript
Change-type: patch
2020-04-30 17:57:37 +01:00
Cameron Diver
5a0ef354f1 Fix ts-node invocation in balena-dev
Properly pull in the project file, as it exists in a different
directory.

Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-06-07 15:02:25 +01:00
Paulo Castro
04223dbc58 Revert bin/balena (previously renamed bin/run for oclif compatibility)
Change-type: major
Signed-off-by: Paulo Castro <paulo@balena.io>
2019-06-04 13:52:38 +01:00
Paulo Castro
dafbdd5f34 Add native installers for Windows and macOS
Change-type: minor
Signed-off-by: Paulo Castro <paulo@balena.io>
2019-06-04 13:52:33 +01:00
Paulo Castro
abf573fa47 Begin the transition to oclif with 'balena env add' (fix dropped leading
zero in device UUID).

This commit is fairly chunky because it adds the oclif dependency for
the first time, and refactors the CLI help and docs generation code to
accommodate both Capitano and oclif.

Change-type: patch
Signed-off-by: Paulo Castro <paulo@balena.io>
2019-06-04 13:51:56 +01:00
Paulo Castro
13e3e5e8ea Bump min Node.js version to 8.0, ts-node to 8.1 and typescript to 3.4.
Refactor typings folder for use with the tsconfig typeRoots option.

Change-type: major
Signed-off-by: Paulo Castro <paulo@balena.io>
2019-06-04 13:51:55 +01:00
Shaun Mulligan
2ba53649bd Improve startup time by adding fast-boot
Change-type: minor
Signed-off-by: Shaun Mulligan <shaun@balena.io>
2019-01-14 12:43:51 +00:00
Tim Perry
4907fccf48 Rename everything from 'resin' to 'balena'
Change-type: major
2018-10-29 22:29:02 +01:00
Thodoris Greasidis
24c2ffefc9 chore: Add on the fly transpiled bin
Adds an alternative bin file that does not require building the project but
loads the source files directly.

Change-type: minor
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
2018-10-24 13:05:02 +03:00
Tim Perry
295d6dee74 Fix configuration hangs with some images by expanding the threadpool
Change-type: patch
Signed-off-by: Tim Perry <tim@resin.io>
2018-08-20 17:06:26 +02:00
Juan Cruz Viotti
b879d3f9ea Remove unused resin-write bin script
This script was used along with windosu as a workaround to call `device
init` with elevated permissions.

Since Windows elevation is not used anymore for now, this script can be
removed.
2015-08-19 11:30:48 -04:00
Juan Cruz Viotti
a1e6c6cda5 Stop bundling NodeJS in the package 2015-03-04 12:16:35 -04:00
Juan Cruz Viotti
8ce27d2f6d Handle relative symlinks correctly 2015-03-03 13:52:18 -04:00
Juan Cruz Viotti
4aefb15c70 Prevent resin-write infinite loop 2015-03-03 12:39:41 -04:00
Juan Cruz Viotti
3d3e2fd23f Fix NODE_PATH issue 2015-02-27 14:20:56 -04:00
Juan Cruz Viotti
a41c54bd2b Follow symlinks in bin/resin 2015-02-27 13:30:44 -04:00
Juan Cruz Viotti
9b657397f3 Allow bin/resin to be called from anywhere 2015-02-27 12:19:55 -04:00
Juan Cruz Viotti
01d2edb819 Precompile CoffeeScript files 2015-02-26 11:47:34 -04:00
Juan Cruz Viotti
d520918071 Multi arch builds 2015-02-26 10:12:25 -04:00
Juan Cruz Viotti
7c53b35cbd Pass os/arch to install-node.js with env vars 2015-02-24 16:28:10 -04:00
Juan Cruz Viotti
6cd68dab64 Do not print $NODE_PATH 2015-02-23 10:55:32 -04:00
Juan Cruz Viotti
353908f098 Preserve extension when installing node 2015-02-13 15:43:03 -04:00
Juan Cruz Viotti
6ca7df5dbc Remove bin extension from sunos node bin path 2015-02-13 15:37:58 -04:00
Juan Cruz Viotti
188d6213e3 Only reference bundle node version in package.json 2015-02-13 15:35:28 -04:00
Juan Cruz Viotti
16544e41a9 Move install script to bin/install-node.js 2015-02-13 15:18:24 -04:00
Juan Cruz Viotti
1400ec30e0 Make use of node-binary to install node after npm install 2015-02-13 14:47:23 -04:00
Juan Cruz Viotti
e23c9f1384 Fix node Windows absolute path 2015-02-12 15:27:42 -04:00
Juan Cruz Viotti
fe9e76cdff Comment source of Windows arch snippet 2015-02-12 15:20:09 -04:00
Juan Cruz Viotti
8263c23390 Implement resin.cmd 2015-02-12 14:42:20 -04:00
Juan Cruz Viotti
c87f976f6c Fix sunos node bin extension 2015-02-12 14:09:16 -04:00
Juan Cruz Viotti
a84c3d5c9f Support calling bin/resin from within bin/ 2015-02-12 09:02:11 -04:00
Juan Cruz Viotti
29f359da68 Omit node binary version numbers for simplicity 2015-02-12 08:49:00 -04:00
Juan Cruz Viotti
bf36960618 Allow using a global node if no bundled node was detected 2015-02-11 15:38:03 -04:00
Juan Cruz Viotti
9ce8193c1f Call application with bundled nodejs binary 2015-02-11 13:13:12 -04:00
Juan Cruz Viotti
448c515f13 Use os.install in resin-write 2015-02-10 13:09:05 -04:00
Juan Cruz Viotti
2f804d5d16 Fix resin-write error reference 2015-02-10 13:07:11 -04:00
Juan Cruz Viotti
159a586e08 TODO about subprocess error handling 2015-01-29 13:17:26 -04:00