Skip to content

Commit 3d73453

Browse files
authored
revert: restore ci and rename napi packages (#38)
* revert: restore ci and rename napi packages * fix(package): fix package json * ci(test): update app name to archons
1 parent 2357243 commit 3d73453

File tree

17 files changed

+85
-86
lines changed

17 files changed

+85
-86
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- name: Download all artifacts
3838
uses: actions/download-artifact@v4
3939
with:
40-
path: artifacts/@noctisynth
40+
path: artifacts
4141
- name: Move artifacts
4242
run: yarn artifacts
4343
- name: List packages

.github/workflows/test.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Build and Test
22
env:
33
DEBUG: napi:*
4-
APP_NAME: '@noctisynth/archons'
4+
APP_NAME: archons
55
MACOSX_DEPLOYMENT_TARGET: '10.13'
66
CARGO_INCREMENTAL: '1'
77
permissions:
@@ -209,7 +209,7 @@ jobs:
209209
uses: actions/download-artifact@v4
210210
with:
211211
name: bindings-${{ matrix.settings.target }}
212-
path: ./@noctisynth/
212+
path: .
213213
- name: List packages
214214
run: ls -R .
215215
shell: bash
@@ -239,7 +239,7 @@ jobs:
239239
uses: actions/download-artifact@v4
240240
with:
241241
name: bindings-x86_64-unknown-linux-gnu
242-
path: ./@noctisynth/
242+
path: .
243243
- name: List packages
244244
run: ls -R .
245245
shell: bash
@@ -271,7 +271,7 @@ jobs:
271271
uses: actions/download-artifact@v4
272272
with:
273273
name: bindings-x86_64-unknown-linux-musl
274-
path: ./@noctisynth/
274+
path: .
275275
- name: List packages
276276
run: ls -R .
277277
shell: bash
@@ -294,7 +294,7 @@ jobs:
294294
uses: actions/download-artifact@v4
295295
with:
296296
name: bindings-aarch64-unknown-linux-gnu
297-
path: ./@noctisynth/
297+
path: .
298298
- name: List packages
299299
run: ls -R .
300300
shell: bash
@@ -328,7 +328,7 @@ jobs:
328328
uses: actions/download-artifact@v4
329329
with:
330330
name: bindings-aarch64-unknown-linux-musl
331-
path: ./@noctisynth/
331+
path: .
332332
- name: List packages
333333
run: ls -R .
334334
shell: bash
@@ -367,7 +367,7 @@ jobs:
367367
uses: actions/download-artifact@v4
368368
with:
369369
name: bindings-armv7-unknown-linux-gnueabihf
370-
path: ./@noctisynth/
370+
path: .
371371
- name: List packages
372372
run: ls -R .
373373
shell: bash

index.js

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ switch (platform) {
3232
case 'android':
3333
switch (arch) {
3434
case 'arm64':
35-
localFileExisted = existsSync(join(__dirname, '@noctisynth/archons.android-arm64.node'))
35+
localFileExisted = existsSync(join(__dirname, 'archons.android-arm64.node'))
3636
try {
3737
if (localFileExisted) {
38-
nativeBinding = require('./@noctisynth/archons.android-arm64.node')
38+
nativeBinding = require('./archons.android-arm64.node')
3939
} else {
4040
nativeBinding = require('archons-android-arm64')
4141
}
@@ -44,10 +44,10 @@ switch (platform) {
4444
}
4545
break
4646
case 'arm':
47-
localFileExisted = existsSync(join(__dirname, '@noctisynth/archons.android-arm-eabi.node'))
47+
localFileExisted = existsSync(join(__dirname, 'archons.android-arm-eabi.node'))
4848
try {
4949
if (localFileExisted) {
50-
nativeBinding = require('./@noctisynth/archons.android-arm-eabi.node')
50+
nativeBinding = require('./archons.android-arm-eabi.node')
5151
} else {
5252
nativeBinding = require('archons-android-arm-eabi')
5353
}
@@ -63,11 +63,11 @@ switch (platform) {
6363
switch (arch) {
6464
case 'x64':
6565
localFileExisted = existsSync(
66-
join(__dirname, '@noctisynth/archons.win32-x64-msvc.node')
66+
join(__dirname, 'archons.win32-x64-msvc.node')
6767
)
6868
try {
6969
if (localFileExisted) {
70-
nativeBinding = require('./@noctisynth/archons.win32-x64-msvc.node')
70+
nativeBinding = require('./archons.win32-x64-msvc.node')
7171
} else {
7272
nativeBinding = require('archons-win32-x64-msvc')
7373
}
@@ -77,11 +77,11 @@ switch (platform) {
7777
break
7878
case 'ia32':
7979
localFileExisted = existsSync(
80-
join(__dirname, '@noctisynth/archons.win32-ia32-msvc.node')
80+
join(__dirname, 'archons.win32-ia32-msvc.node')
8181
)
8282
try {
8383
if (localFileExisted) {
84-
nativeBinding = require('./@noctisynth/archons.win32-ia32-msvc.node')
84+
nativeBinding = require('./archons.win32-ia32-msvc.node')
8585
} else {
8686
nativeBinding = require('archons-win32-ia32-msvc')
8787
}
@@ -91,11 +91,11 @@ switch (platform) {
9191
break
9292
case 'arm64':
9393
localFileExisted = existsSync(
94-
join(__dirname, '@noctisynth/archons.win32-arm64-msvc.node')
94+
join(__dirname, 'archons.win32-arm64-msvc.node')
9595
)
9696
try {
9797
if (localFileExisted) {
98-
nativeBinding = require('./@noctisynth/archons.win32-arm64-msvc.node')
98+
nativeBinding = require('./archons.win32-arm64-msvc.node')
9999
} else {
100100
nativeBinding = require('archons-win32-arm64-msvc')
101101
}
@@ -108,21 +108,21 @@ switch (platform) {
108108
}
109109
break
110110
case 'darwin':
111-
localFileExisted = existsSync(join(__dirname, '@noctisynth/archons.darwin-universal.node'))
111+
localFileExisted = existsSync(join(__dirname, 'archons.darwin-universal.node'))
112112
try {
113113
if (localFileExisted) {
114-
nativeBinding = require('./@noctisynth/archons.darwin-universal.node')
114+
nativeBinding = require('./archons.darwin-universal.node')
115115
} else {
116116
nativeBinding = require('archons-darwin-universal')
117117
}
118118
break
119119
} catch {}
120120
switch (arch) {
121121
case 'x64':
122-
localFileExisted = existsSync(join(__dirname, '@noctisynth/archons.darwin-x64.node'))
122+
localFileExisted = existsSync(join(__dirname, 'archons.darwin-x64.node'))
123123
try {
124124
if (localFileExisted) {
125-
nativeBinding = require('./@noctisynth/archons.darwin-x64.node')
125+
nativeBinding = require('./archons.darwin-x64.node')
126126
} else {
127127
nativeBinding = require('archons-darwin-x64')
128128
}
@@ -132,11 +132,11 @@ switch (platform) {
132132
break
133133
case 'arm64':
134134
localFileExisted = existsSync(
135-
join(__dirname, '@noctisynth/archons.darwin-arm64.node')
135+
join(__dirname, 'archons.darwin-arm64.node')
136136
)
137137
try {
138138
if (localFileExisted) {
139-
nativeBinding = require('./@noctisynth/archons.darwin-arm64.node')
139+
nativeBinding = require('./archons.darwin-arm64.node')
140140
} else {
141141
nativeBinding = require('archons-darwin-arm64')
142142
}
@@ -152,10 +152,10 @@ switch (platform) {
152152
if (arch !== 'x64') {
153153
throw new Error(`Unsupported architecture on FreeBSD: ${arch}`)
154154
}
155-
localFileExisted = existsSync(join(__dirname, '@noctisynth/archons.freebsd-x64.node'))
155+
localFileExisted = existsSync(join(__dirname, 'archons.freebsd-x64.node'))
156156
try {
157157
if (localFileExisted) {
158-
nativeBinding = require('./@noctisynth/archons.freebsd-x64.node')
158+
nativeBinding = require('./archons.freebsd-x64.node')
159159
} else {
160160
nativeBinding = require('archons-freebsd-x64')
161161
}
@@ -168,11 +168,11 @@ switch (platform) {
168168
case 'x64':
169169
if (isMusl()) {
170170
localFileExisted = existsSync(
171-
join(__dirname, '@noctisynth/archons.linux-x64-musl.node')
171+
join(__dirname, 'archons.linux-x64-musl.node')
172172
)
173173
try {
174174
if (localFileExisted) {
175-
nativeBinding = require('./@noctisynth/archons.linux-x64-musl.node')
175+
nativeBinding = require('./archons.linux-x64-musl.node')
176176
} else {
177177
nativeBinding = require('archons-linux-x64-musl')
178178
}
@@ -181,11 +181,11 @@ switch (platform) {
181181
}
182182
} else {
183183
localFileExisted = existsSync(
184-
join(__dirname, '@noctisynth/archons.linux-x64-gnu.node')
184+
join(__dirname, 'archons.linux-x64-gnu.node')
185185
)
186186
try {
187187
if (localFileExisted) {
188-
nativeBinding = require('./@noctisynth/archons.linux-x64-gnu.node')
188+
nativeBinding = require('./archons.linux-x64-gnu.node')
189189
} else {
190190
nativeBinding = require('archons-linux-x64-gnu')
191191
}
@@ -197,11 +197,11 @@ switch (platform) {
197197
case 'arm64':
198198
if (isMusl()) {
199199
localFileExisted = existsSync(
200-
join(__dirname, '@noctisynth/archons.linux-arm64-musl.node')
200+
join(__dirname, 'archons.linux-arm64-musl.node')
201201
)
202202
try {
203203
if (localFileExisted) {
204-
nativeBinding = require('./@noctisynth/archons.linux-arm64-musl.node')
204+
nativeBinding = require('./archons.linux-arm64-musl.node')
205205
} else {
206206
nativeBinding = require('archons-linux-arm64-musl')
207207
}
@@ -210,11 +210,11 @@ switch (platform) {
210210
}
211211
} else {
212212
localFileExisted = existsSync(
213-
join(__dirname, '@noctisynth/archons.linux-arm64-gnu.node')
213+
join(__dirname, 'archons.linux-arm64-gnu.node')
214214
)
215215
try {
216216
if (localFileExisted) {
217-
nativeBinding = require('./@noctisynth/archons.linux-arm64-gnu.node')
217+
nativeBinding = require('./archons.linux-arm64-gnu.node')
218218
} else {
219219
nativeBinding = require('archons-linux-arm64-gnu')
220220
}
@@ -226,11 +226,11 @@ switch (platform) {
226226
case 'arm':
227227
if (isMusl()) {
228228
localFileExisted = existsSync(
229-
join(__dirname, '@noctisynth/archons.linux-arm-musleabihf.node')
229+
join(__dirname, 'archons.linux-arm-musleabihf.node')
230230
)
231231
try {
232232
if (localFileExisted) {
233-
nativeBinding = require('./@noctisynth/archons.linux-arm-musleabihf.node')
233+
nativeBinding = require('./archons.linux-arm-musleabihf.node')
234234
} else {
235235
nativeBinding = require('archons-linux-arm-musleabihf')
236236
}
@@ -239,11 +239,11 @@ switch (platform) {
239239
}
240240
} else {
241241
localFileExisted = existsSync(
242-
join(__dirname, '@noctisynth/archons.linux-arm-gnueabihf.node')
242+
join(__dirname, 'archons.linux-arm-gnueabihf.node')
243243
)
244244
try {
245245
if (localFileExisted) {
246-
nativeBinding = require('./@noctisynth/archons.linux-arm-gnueabihf.node')
246+
nativeBinding = require('./archons.linux-arm-gnueabihf.node')
247247
} else {
248248
nativeBinding = require('archons-linux-arm-gnueabihf')
249249
}
@@ -255,11 +255,11 @@ switch (platform) {
255255
case 'riscv64':
256256
if (isMusl()) {
257257
localFileExisted = existsSync(
258-
join(__dirname, '@noctisynth/archons.linux-riscv64-musl.node')
258+
join(__dirname, 'archons.linux-riscv64-musl.node')
259259
)
260260
try {
261261
if (localFileExisted) {
262-
nativeBinding = require('./@noctisynth/archons.linux-riscv64-musl.node')
262+
nativeBinding = require('./archons.linux-riscv64-musl.node')
263263
} else {
264264
nativeBinding = require('archons-linux-riscv64-musl')
265265
}
@@ -268,11 +268,11 @@ switch (platform) {
268268
}
269269
} else {
270270
localFileExisted = existsSync(
271-
join(__dirname, '@noctisynth/archons.linux-riscv64-gnu.node')
271+
join(__dirname, 'archons.linux-riscv64-gnu.node')
272272
)
273273
try {
274274
if (localFileExisted) {
275-
nativeBinding = require('./@noctisynth/archons.linux-riscv64-gnu.node')
275+
nativeBinding = require('./archons.linux-riscv64-gnu.node')
276276
} else {
277277
nativeBinding = require('archons-linux-riscv64-gnu')
278278
}
@@ -283,11 +283,11 @@ switch (platform) {
283283
break
284284
case 's390x':
285285
localFileExisted = existsSync(
286-
join(__dirname, '@noctisynth/archons.linux-s390x-gnu.node')
286+
join(__dirname, 'archons.linux-s390x-gnu.node')
287287
)
288288
try {
289289
if (localFileExisted) {
290-
nativeBinding = require('./@noctisynth/archons.linux-s390x-gnu.node')
290+
nativeBinding = require('./archons.linux-s390x-gnu.node')
291291
} else {
292292
nativeBinding = require('archons-linux-s390x-gnu')
293293
}

npm/android-arm-eabi/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"name": "archons-android-arm-eabi",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"os": [
55
"android"
66
],
77
"cpu": [
88
"arm"
99
],
10-
"main": "@noctisynth/archons.android-arm-eabi.node",
10+
"main": "archons.android-arm-eabi.node",
1111
"files": [
12-
"@noctisynth/archons.android-arm-eabi.node"
12+
"archons.android-arm-eabi.node"
1313
],
1414
"description": "Fast, powerful and elegant CLI build tool based on clap-rs",
1515
"keywords": [

npm/android-arm64/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"name": "archons-android-arm64",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"os": [
55
"android"
66
],
77
"cpu": [
88
"arm64"
99
],
10-
"main": "@noctisynth/archons.android-arm64.node",
10+
"main": "archons.android-arm64.node",
1111
"files": [
12-
"@noctisynth/archons.android-arm64.node"
12+
"archons.android-arm64.node"
1313
],
1414
"description": "Fast, powerful and elegant CLI build tool based on clap-rs",
1515
"keywords": [

npm/darwin-arm64/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"name": "archons-darwin-arm64",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"os": [
55
"darwin"
66
],
77
"cpu": [
88
"arm64"
99
],
10-
"main": "@noctisynth/archons.darwin-arm64.node",
10+
"main": "archons.darwin-arm64.node",
1111
"files": [
12-
"@noctisynth/archons.darwin-arm64.node"
12+
"archons.darwin-arm64.node"
1313
],
1414
"description": "Fast, powerful and elegant CLI build tool based on clap-rs",
1515
"keywords": [

npm/darwin-x64/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"name": "archons-darwin-x64",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"os": [
55
"darwin"
66
],
77
"cpu": [
88
"x64"
99
],
10-
"main": "@noctisynth/archons.darwin-x64.node",
10+
"main": "archons.darwin-x64.node",
1111
"files": [
12-
"@noctisynth/archons.darwin-x64.node"
12+
"archons.darwin-x64.node"
1313
],
1414
"description": "Fast, powerful and elegant CLI build tool based on clap-rs",
1515
"keywords": [

0 commit comments

Comments
 (0)