@typeberry/jam 0.1.1-4a6ffa9 → 0.1.1-b537c8b

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.
package/index.js CHANGED
@@ -1,4 +1,3 @@
1
- #!/usr/bin/env node
2
1
  import './sourcemap-register.cjs';import { createRequire as __WEBPACK_EXTERNAL_createRequire } from "module";
3
2
  import * as __WEBPACK_EXTERNAL_MODULE_lmdb__ from "lmdb";
4
3
  /******/ var __webpack_modules__ = ({
@@ -28435,34 +28434,6 @@ class WithDebug {
28435
28434
  }
28436
28435
  }
28437
28436
 
28438
- ;// CONCATENATED MODULE: ./packages/core/utils/dev.ts
28439
- const dev_env = typeof process === "undefined" ? {} : process.env;
28440
- /**
28441
- * The function will produce relative path resolver that is adjusted
28442
- * for package location within the workspace.
28443
- *
28444
- * Example:
28445
- * $ npm start -w @typeberry/jam
28446
- *
28447
- * The above command will run `./bin/jam/index.js`, however we would
28448
- * still want relative paths to be resolved according to top-level workspace
28449
- * directory.
28450
- *
28451
- * So the caller, passes the absolute workspace path as argument and get's
28452
- * a function that can properly resolve relative paths.
28453
- *
28454
- * NOTE: the translation happens only for development build! When
28455
- * we build a single library from our project, we no longer mangle the paths.
28456
- */
28457
- const workspacePathFix = dev_env.NODE_ENV === "development"
28458
- ? (workspacePath) => (p) => {
28459
- if (p.startsWith("/")) {
28460
- return p;
28461
- }
28462
- return `${workspacePath}/${p}`;
28463
- }
28464
- : () => (p) => p;
28465
-
28466
28437
  ;// CONCATENATED MODULE: ./packages/core/utils/opaque.ts
28467
28438
  /**
28468
28439
  * @fileoverview `Opaque<Type, Token>` constructs a unique type which is a subset of Type with a
@@ -28806,7 +28777,6 @@ function isResult(x) {
28806
28777
 
28807
28778
 
28808
28779
 
28809
-
28810
28780
  ;// CONCATENATED MODULE: ./packages/core/bytes/bitvec.ts
28811
28781
 
28812
28782
  /**
@@ -64405,7 +64375,6 @@ function parseFuzzVersion(v) {
64405
64375
 
64406
64376
 
64407
64377
 
64408
-
64409
64378
  const prepareConfigFile = (args) => {
64410
64379
  const nodeConfig = loadConfig(args.args.configPath);
64411
64380
  const nodeName = args.command === Command.Dev ? `${args.args.nodeName}-${args.args.index}` : args.args.nodeName;
@@ -64432,8 +64401,14 @@ const prepareConfigFile = (args) => {
64432
64401
  };
64433
64402
  if (import.meta.url === (0,external_node_url_namespaceObject.pathToFileURL)(process.argv[1]).href) {
64434
64403
  Logger.configureAll(process.env.JAM_LOG ?? "", Level.LOG);
64404
+ const relPath = `${import.meta.dirname}/../..`;
64405
+ const withRelPath = (p) => {
64406
+ if (p.startsWith("/")) {
64407
+ return p;
64408
+ }
64409
+ return `${relPath}/${p}`;
64410
+ };
64435
64411
  let args;
64436
- const withRelPath = workspacePathFix(`${import.meta.dirname}/../..`);
64437
64412
  try {
64438
64413
  const parsed = parseArgs(process.argv.slice(2), withRelPath);
64439
64414
  if (parsed === null) {