Skip to content

Commit

Permalink
chore: update KCL node.js package.json files
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <[email protected]>
  • Loading branch information
Peefy committed Apr 22, 2024
1 parent 9f90303 commit e429a99
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 32 deletions.
36 changes: 18 additions & 18 deletions nodejs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./kcl-lib.android-arm64.node')
} else {
nativeBinding = require('kcl-lib-android-arm64')
nativeBinding = require('@kcl-lang/lib-android-arm64')
}
} catch (e) {
loadError = e
Expand All @@ -49,7 +49,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./kcl-lib.android-arm-eabi.node')
} else {
nativeBinding = require('kcl-lib-android-arm-eabi')
nativeBinding = require('@kcl-lang/lib-android-arm-eabi')
}
} catch (e) {
loadError = e
Expand All @@ -67,7 +67,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./kcl-lib.win32-x64-msvc.node')
} else {
nativeBinding = require('kcl-lib-win32-x64-msvc')
nativeBinding = require('@kcl-lang/lib-win32-x64-msvc')
}
} catch (e) {
loadError = e
Expand All @@ -79,7 +79,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./kcl-lib.win32-ia32-msvc.node')
} else {
nativeBinding = require('kcl-lib-win32-ia32-msvc')
nativeBinding = require('@kcl-lang/lib-win32-ia32-msvc')
}
} catch (e) {
loadError = e
Expand All @@ -91,7 +91,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./kcl-lib.win32-arm64-msvc.node')
} else {
nativeBinding = require('kcl-lib-win32-arm64-msvc')
nativeBinding = require('@kcl-lang/lib-win32-arm64-msvc')
}
} catch (e) {
loadError = e
Expand All @@ -107,7 +107,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./kcl-lib.darwin-universal.node')
} else {
nativeBinding = require('kcl-lib-darwin-universal')
nativeBinding = require('@kcl-lang/lib-darwin-universal')
}
break
} catch {}
Expand All @@ -118,7 +118,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./kcl-lib.darwin-x64.node')
} else {
nativeBinding = require('kcl-lib-darwin-x64')
nativeBinding = require('@kcl-lang/lib-darwin-x64')
}
} catch (e) {
loadError = e
Expand All @@ -130,7 +130,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./kcl-lib.darwin-arm64.node')
} else {
nativeBinding = require('kcl-lib-darwin-arm64')
nativeBinding = require('@kcl-lang/lib-darwin-arm64')
}
} catch (e) {
loadError = e
Expand All @@ -149,7 +149,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./kcl-lib.freebsd-x64.node')
} else {
nativeBinding = require('kcl-lib-freebsd-x64')
nativeBinding = require('@kcl-lang/lib-freebsd-x64')
}
} catch (e) {
loadError = e
Expand All @@ -164,7 +164,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./kcl-lib.linux-x64-musl.node')
} else {
nativeBinding = require('kcl-lib-linux-x64-musl')
nativeBinding = require('@kcl-lang/lib-linux-x64-musl')
}
} catch (e) {
loadError = e
Expand All @@ -175,7 +175,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./kcl-lib.linux-x64-gnu.node')
} else {
nativeBinding = require('kcl-lib-linux-x64-gnu')
nativeBinding = require('@kcl-lang/lib-linux-x64-gnu')
}
} catch (e) {
loadError = e
Expand All @@ -189,7 +189,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./kcl-lib.linux-arm64-musl.node')
} else {
nativeBinding = require('kcl-lib-linux-arm64-musl')
nativeBinding = require('@kcl-lang/lib-linux-arm64-musl')
}
} catch (e) {
loadError = e
Expand All @@ -200,7 +200,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./kcl-lib.linux-arm64-gnu.node')
} else {
nativeBinding = require('kcl-lib-linux-arm64-gnu')
nativeBinding = require('@kcl-lang/lib-linux-arm64-gnu')
}
} catch (e) {
loadError = e
Expand All @@ -214,7 +214,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./kcl-lib.linux-arm-musleabihf.node')
} else {
nativeBinding = require('kcl-lib-linux-arm-musleabihf')
nativeBinding = require('@kcl-lang/lib-linux-arm-musleabihf')
}
} catch (e) {
loadError = e
Expand All @@ -225,7 +225,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./kcl-lib.linux-arm-gnueabihf.node')
} else {
nativeBinding = require('kcl-lib-linux-arm-gnueabihf')
nativeBinding = require('@kcl-lang/lib-linux-arm-gnueabihf')
}
} catch (e) {
loadError = e
Expand All @@ -239,7 +239,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./kcl-lib.linux-riscv64-musl.node')
} else {
nativeBinding = require('kcl-lib-linux-riscv64-musl')
nativeBinding = require('@kcl-lang/lib-linux-riscv64-musl')
}
} catch (e) {
loadError = e
Expand All @@ -250,7 +250,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./kcl-lib.linux-riscv64-gnu.node')
} else {
nativeBinding = require('kcl-lib-linux-riscv64-gnu')
nativeBinding = require('@kcl-lang/lib-linux-riscv64-gnu')
}
} catch (e) {
loadError = e
Expand All @@ -263,7 +263,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./kcl-lib.linux-s390x-gnu.node')
} else {
nativeBinding = require('kcl-lib-linux-s390x-gnu')
nativeBinding = require('@kcl-lang/lib-linux-s390x-gnu')
}
} catch (e) {
loadError = e
Expand Down
5 changes: 3 additions & 2 deletions nodejs/npm/darwin-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "kcl-lib-darwin-arm64",
"version": "0.0.0",
"name": "@kcl-lang/lib-darwin-arm64",
"repository": "https://github.com/kcl-lang/kcl",
"version": "0.8.5",
"os": [
"darwin"
],
Expand Down
5 changes: 3 additions & 2 deletions nodejs/npm/darwin-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "kcl-lib-darwin-x64",
"version": "0.0.0",
"name": "@kcl-lang/lib-darwin-x64",
"repository": "https://github.com/kcl-lang/kcl",
"version": "0.8.5",
"os": [
"darwin"
],
Expand Down
5 changes: 3 additions & 2 deletions nodejs/npm/linux-arm64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "kcl-lib-linux-arm64-gnu",
"version": "0.0.0",
"name": "@kcl-lang/lib-linux-arm64-gnu",
"repository": "https://github.com/kcl-lang/kcl",
"version": "0.8.5",
"os": [
"linux"
],
Expand Down
5 changes: 3 additions & 2 deletions nodejs/npm/linux-arm64-musl/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "kcl-lib-linux-arm64-musl",
"version": "0.0.0",
"name": "@kcl-lang/lib-linux-arm64-musl",
"repository": "https://github.com/kcl-lang/kcl",
"version": "0.8.5",
"os": [
"linux"
],
Expand Down
5 changes: 3 additions & 2 deletions nodejs/npm/linux-x64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "kcl-lib-linux-x64-gnu",
"version": "0.0.0",
"name": "@kcl-lang/lib-linux-x64-gnu",
"repository": "https://github.com/kcl-lang/kcl",
"version": "0.8.5",
"os": [
"linux"
],
Expand Down
5 changes: 3 additions & 2 deletions nodejs/npm/win32-arm64-msvc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "kcl-lib-win32-arm64-msvc",
"version": "0.0.0",
"name": "@kcl-lang/lib-win32-arm64-msvc",
"repository": "https://github.com/kcl-lang/kcl",
"version": "0.8.5",
"os": [
"win32"
],
Expand Down
5 changes: 3 additions & 2 deletions nodejs/npm/win32-x64-msvc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "kcl-lib-win32-x64-msvc",
"version": "0.0.0",
"name": "@kcl-lang/lib-win32-x64-msvc",
"repository": "https://github.com/kcl-lang/kcl",
"version": "0.8.5",
"os": [
"win32"
],
Expand Down

0 comments on commit e429a99

Please sign in to comment.