From 6d7d1956eae7e38e6387425651a7781db7b2f92e Mon Sep 17 00:00:00 2001 From: Pagan Gazzard Date: Thu, 30 Apr 2020 17:01:07 +0100 Subject: [PATCH] Convert lib/actions/index.coffee to typescript Change-type: patch --- lib/actions/index.coffee | 34 -------------------------- lib/actions/index.ts | 53 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+), 34 deletions(-) delete mode 100644 lib/actions/index.coffee create mode 100644 lib/actions/index.ts diff --git a/lib/actions/index.coffee b/lib/actions/index.coffee deleted file mode 100644 index 1dcd3e6c..00000000 --- a/lib/actions/index.coffee +++ /dev/null @@ -1,34 +0,0 @@ -### -Copyright 2016-2017 Balena - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -### - -module.exports = - apiKey: require('./api-key') - app: require('./app') - auth: require('./auth') - device: require('./device') - tags: require('./tags') - logs: require('./logs') - local: require('./local') - help: require('./help') - os: require('./os') - config: require('./config') - ssh: require('./ssh') - build: require('./build').build - deploy: require('./deploy').deploy - util: require('./util') - preload: require('./preload').preload - push: require('./push') - tunnel: require('./tunnel') diff --git a/lib/actions/index.ts b/lib/actions/index.ts new file mode 100644 index 00000000..9c6347da --- /dev/null +++ b/lib/actions/index.ts @@ -0,0 +1,53 @@ +/* +Copyright 2016-2020 Balena + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +import * as apiKey from './api-key'; +import * as app from './app'; +import * as auth from './auth'; +import * as config from './config'; +import * as device from './device'; +import * as help from './help'; +import * as local from './local'; +import * as logs from './logs'; +import * as os from './os'; +import * as push from './push'; +import * as ssh from './ssh'; +import * as tags from './tags'; +import * as tunnel from './tunnel'; +import * as util from './util'; + +export { + apiKey, + app, + auth, + device, + tags, + logs, + local, + help, + os, + config, + ssh, + util, + push, + tunnel, +}; + +export { build } from './build'; + +export { deploy } from './deploy'; + +export { preload } from './preload';