aurasu 0.1.4 → 0.1.6

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.
@@ -1,10 +1,5 @@
1
1
  {
2
2
  "files": [
3
- {
4
- "path": ".logs/publish-2026-03-10T01-02-46-481Z.log",
5
- "sha256": "0929ee3ff8fe27f4c5600762d9bcbfd9edbf36440ab6b2f240b81f6e1381055f",
6
- "size": 370
7
- },
8
3
  {
9
4
  "path": "assets/approachcircle.png",
10
5
  "sha256": "2c6d82c7143992d6f5c6069faec95d1b8eb272f6c05317f993a1da65391b179c",
@@ -182,8 +177,8 @@
182
177
  },
183
178
  {
184
179
  "path": "bin/play.js",
185
- "sha256": "4823f21b895b931cd8b36cb888132d44c1d63f823556d2e4176a9e3ed53967b2",
186
- "size": 39448
180
+ "sha256": "9b444ba23f1ea908c16a2266b223f987386966a0248bad0e56f4d2d1beafee46",
181
+ "size": 40778
187
182
  },
188
183
  {
189
184
  "path": "build/mac/assets-manifest.json",
@@ -197,8 +192,8 @@
197
192
  },
198
193
  {
199
194
  "path": "build/mac/aurasu",
200
- "sha256": "3b94851f5e9789a46951b08634167593ae402f71704d4b56875e7649e51c2add",
201
- "size": 53212504
195
+ "sha256": "6c667fed6977f6833b4c695d5966da5616f1dd994201fe828d93dba1885aed8c",
196
+ "size": 66392000
202
197
  },
203
198
  {
204
199
  "path": "build/mac/aurasu.app/Contents/Info.plist",
@@ -207,8 +202,8 @@
207
202
  },
208
203
  {
209
204
  "path": "build/mac/aurasu.app/Contents/MacOS/aurasu",
210
- "sha256": "3b94851f5e9789a46951b08634167593ae402f71704d4b56875e7649e51c2add",
211
- "size": 53212504
205
+ "sha256": "6c667fed6977f6833b4c695d5966da5616f1dd994201fe828d93dba1885aed8c",
206
+ "size": 66392000
212
207
  },
213
208
  {
214
209
  "path": "build/mac/aurasu.app/Contents/Resources/AppIcon.icns",
@@ -242,7 +237,7 @@
242
237
  },
243
238
  {
244
239
  "path": "package.json",
245
- "sha256": "b1e36c273bd4cfac4f9d867407e20db0b32c5576807bdc50cfdeb40a30664780",
240
+ "sha256": "9fa90df85b3c7ec4d0930b5b45467ae94487c26c1aba29b47a7691987cf286ef",
246
241
  "size": 568
247
242
  },
248
243
  {
@@ -329,7 +324,7 @@
329
324
  "description": "A hit-circle rhythm game built with AuraJS.",
330
325
  "name": "aurasu",
331
326
  "type": "module",
332
- "version": "0.1.4"
327
+ "version": "0.1.6"
333
328
  },
334
329
  "publishedMetadata": {
335
330
  "authored": {
@@ -1 +1 @@
1
- UmuHyrBeFNKypBkMj7VlzQpDTULYyozFuUj1SmvnRo/fN6s5hEMs3jrmVyPcr5s1MLT4EzHTBk3cTBUzWsJICA==
1
+ UT6PKQtY6QwXaCBdKnd8TTK/hjLDWroFfFb6mFupkl18Y3MkOooXiBNMaQVuPO13H8CY5/5WFrnQ/erevzZ1Dg==
package/bin/play.js CHANGED
@@ -61,6 +61,14 @@ const FORK_EXCLUDED_TOP_LEVEL = new Set(['.aura', '.git', '.logs', 'build', 'dis
61
61
  function resolveLocalAuraCli(startRoot) {
62
62
  let current = resolve(startRoot);
63
63
  while (true) {
64
+ const monorepoCandidate = resolve(current, 'packages', 'aurascript', 'src', 'cli', 'src', 'cli.mjs');
65
+ if (existsSync(monorepoCandidate)) {
66
+ return monorepoCandidate;
67
+ }
68
+ const packageSourceCandidate = resolve(current, 'src', 'cli', 'src', 'cli.mjs');
69
+ if (existsSync(packageSourceCandidate)) {
70
+ return packageSourceCandidate;
71
+ }
64
72
  const candidate = resolve(current, 'node_modules', '@auraindustry', 'aurajs', 'src', 'cli.mjs');
65
73
  if (existsSync(candidate)) {
66
74
  return candidate;
@@ -495,6 +503,41 @@ function parseArgs(argv) {
495
503
  };
496
504
  }
497
505
 
506
+ function parsePublishArgs(args) {
507
+ const passthroughArgs = [];
508
+ let npmToken = null;
509
+
510
+ for (let index = 0; index < args.length; index += 1) {
511
+ const token = String(args[index] || '');
512
+ if (token === '--token') {
513
+ if ((index + 1) >= args.length) {
514
+ throw createCliError('publish requires a token value after --token.');
515
+ }
516
+ npmToken = String(args[index + 1] || '').trim();
517
+ index += 1;
518
+ continue;
519
+ }
520
+ if (token.startsWith('--token=')) {
521
+ npmToken = token.slice('--token='.length).trim();
522
+ continue;
523
+ }
524
+ passthroughArgs.push(token);
525
+ }
526
+
527
+ if (npmToken !== null && npmToken.length === 0) {
528
+ throw createCliError('publish requires a non-empty token value after --token.');
529
+ }
530
+
531
+ return {
532
+ commandArgs: passthroughArgs,
533
+ env: npmToken
534
+ ? {
535
+ NODE_AUTH_TOKEN: npmToken,
536
+ }
537
+ : null,
538
+ };
539
+ }
540
+
498
541
  function readJsonIfExists(filePath) {
499
542
  if (!existsSync(filePath)) {
500
543
  return null;
@@ -1145,8 +1188,11 @@ async function main() {
1145
1188
  printSection(toDisplayTitle(packageName), 'Publish lifecycle detected, skipping wrapper recursion.');
1146
1189
  return;
1147
1190
  }
1191
+ const publish = parsePublishArgs(commandArgs);
1148
1192
  printSection(toDisplayTitle(packageName), 'Publishing npm package (source + assets)...');
1149
- await runCommand('publish', resolveAuraCliInvocation(['publish', ...commandArgs]));
1193
+ await runCommand('publish', resolveAuraCliInvocation(['publish', ...publish.commandArgs]), {
1194
+ env: publish.env,
1195
+ });
1150
1196
  return;
1151
1197
  }
1152
1198
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aurasu",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "A hit-circle rhythm game built with AuraJS.",
5
5
  "type": "module",
6
6
  "bin": {