eitri-cli 1.18.1 → 1.19.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -92,7 +92,7 @@ pipelines:
92
92
  name: 'Windows cross compile'
93
93
  script:
94
94
  - rustup target add x86_64-pc-windows-msvc
95
- - cargo install cargo-xwin
95
+ - cargo install --locked cargo-xwin
96
96
  - cd eitri-cli-v2
97
97
  - npm install
98
98
  - npm run build -- --target x86_64-pc-windows-msvc
@@ -13,17 +13,17 @@ export interface EitriLibsArguments {
13
13
  bifrost?: boolean
14
14
  luminus?: boolean
15
15
  }
16
- export function publish(environment: string, message: string): Promise<void>
17
- export function runTest(userJwt: string, userWorkspaceId: string, testPath: string): Promise<void>
18
- export function eitriLibs(eitriLibsArgs: EitriLibsArguments): Promise<void>
19
- export function doctor(): Promise<void>
20
- export function start(args: StartArguments): Promise<void>
21
- export namespace app {
16
+ export declare function publish(environment: string, message: string): Promise<void>
17
+ export declare function runTest(userJwt: string, userWorkspaceId: string, testPath: string): Promise<void>
18
+ export declare function eitriLibs(eitriLibsArgs: EitriLibsArguments): Promise<void>
19
+ export declare function doctor(): Promise<void>
20
+ export declare function start(args: StartArguments): Promise<void>
21
+ export declare namespace app {
22
22
  export function start(args: StartArguments): Promise<void>
23
23
  export function appLogs(): Promise<void>
24
24
  export function clean(): Promise<void>
25
25
  }
26
- export namespace workspace {
26
+ export declare namespace workspace {
27
27
  export function clean(): Promise<void>
28
28
  export function current(): Promise<void>
29
29
  }
@@ -224,17 +224,32 @@ switch (platform) {
224
224
  }
225
225
  break
226
226
  case 'arm':
227
- localFileExisted = existsSync(
228
- join(__dirname, 'eitri-cli-v2.linux-arm-gnueabihf.node')
229
- )
230
- try {
231
- if (localFileExisted) {
232
- nativeBinding = require('./eitri-cli-v2.linux-arm-gnueabihf.node')
233
- } else {
234
- nativeBinding = require('eitri-cli-v2-linux-arm-gnueabihf')
227
+ if (isMusl()) {
228
+ localFileExisted = existsSync(
229
+ join(__dirname, 'eitri-cli-v2.linux-arm-musleabihf.node')
230
+ )
231
+ try {
232
+ if (localFileExisted) {
233
+ nativeBinding = require('./eitri-cli-v2.linux-arm-musleabihf.node')
234
+ } else {
235
+ nativeBinding = require('eitri-cli-v2-linux-arm-musleabihf')
236
+ }
237
+ } catch (e) {
238
+ loadError = e
239
+ }
240
+ } else {
241
+ localFileExisted = existsSync(
242
+ join(__dirname, 'eitri-cli-v2.linux-arm-gnueabihf.node')
243
+ )
244
+ try {
245
+ if (localFileExisted) {
246
+ nativeBinding = require('./eitri-cli-v2.linux-arm-gnueabihf.node')
247
+ } else {
248
+ nativeBinding = require('eitri-cli-v2-linux-arm-gnueabihf')
249
+ }
250
+ } catch (e) {
251
+ loadError = e
235
252
  }
236
- } catch (e) {
237
- loadError = e
238
253
  }
239
254
  break
240
255
  case 'riscv64':
@@ -9,7 +9,7 @@
9
9
  "version": "0.0.0",
10
10
  "license": "MIT",
11
11
  "devDependencies": {
12
- "@napi-rs/cli": "^2.18.0",
12
+ "@napi-rs/cli": "^2.18.4",
13
13
  "ava": "^6.0.1"
14
14
  },
15
15
  "engines": {
@@ -37,9 +37,9 @@
37
37
  }
38
38
  },
39
39
  "node_modules/@napi-rs/cli": {
40
- "version": "2.18.0",
41
- "resolved": "https://registry.npmjs.org/@napi-rs/cli/-/cli-2.18.0.tgz",
42
- "integrity": "sha512-lfSRT7cs3iC4L+kv9suGYQEezn5Nii7Kpu+THsYVI0tA1Vh59LH45p4QADaD7hvIkmOz79eEGtoKQ9nAkAPkzA==",
40
+ "version": "2.18.4",
41
+ "resolved": "https://registry.npmjs.org/@napi-rs/cli/-/cli-2.18.4.tgz",
42
+ "integrity": "sha512-SgJeA4df9DE2iAEpr3M2H0OKl/yjtg1BnRI5/JyowS71tUWhrfSu2LT0V3vlHET+g1hBVlrO60PmEXwUEKp8Mg==",
43
43
  "dev": true,
44
44
  "bin": {
45
45
  "napi": "scripts/index.js"
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "license": "MIT",
16
16
  "devDependencies": {
17
- "@napi-rs/cli": "^2.18.0",
17
+ "@napi-rs/cli": "^2.18.4",
18
18
  "ava": "^6.0.1"
19
19
  },
20
20
  "ava": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eitri-cli",
3
- "version": "1.18.1",
3
+ "version": "1.19.0-beta.2",
4
4
  "description": "Command Line Interface to make \"Eitri-App\" with code and fire.",
5
5
  "main": "index.js",
6
6
  "bin": {