@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/block-generator/index.js +0 -29
- package/block-generator/index.js.map +1 -1
- package/importer/index.js +0 -29
- package/importer/index.js.map +1 -1
- package/index.js +7 -32
- package/index.js.map +1 -1
- package/jam-network/index.js +0 -29
- package/jam-network/index.js.map +1 -1
- package/package.json +2 -4
package/importer/index.js
CHANGED
|
@@ -4436,34 +4436,6 @@ class WithDebug {
|
|
|
4436
4436
|
}
|
|
4437
4437
|
}
|
|
4438
4438
|
|
|
4439
|
-
;// CONCATENATED MODULE: ./packages/core/utils/dev.ts
|
|
4440
|
-
const dev_env = typeof process === "undefined" ? {} : process.env;
|
|
4441
|
-
/**
|
|
4442
|
-
* The function will produce relative path resolver that is adjusted
|
|
4443
|
-
* for package location within the workspace.
|
|
4444
|
-
*
|
|
4445
|
-
* Example:
|
|
4446
|
-
* $ npm start -w @typeberry/jam
|
|
4447
|
-
*
|
|
4448
|
-
* The above command will run `./bin/jam/index.js`, however we would
|
|
4449
|
-
* still want relative paths to be resolved according to top-level workspace
|
|
4450
|
-
* directory.
|
|
4451
|
-
*
|
|
4452
|
-
* So the caller, passes the absolute workspace path as argument and get's
|
|
4453
|
-
* a function that can properly resolve relative paths.
|
|
4454
|
-
*
|
|
4455
|
-
* NOTE: the translation happens only for development build! When
|
|
4456
|
-
* we build a single library from our project, we no longer mangle the paths.
|
|
4457
|
-
*/
|
|
4458
|
-
const workspacePathFix = dev_env.NODE_ENV === "development"
|
|
4459
|
-
? (workspacePath) => (p) => {
|
|
4460
|
-
if (p.startsWith("/")) {
|
|
4461
|
-
return p;
|
|
4462
|
-
}
|
|
4463
|
-
return `${workspacePath}/${p}`;
|
|
4464
|
-
}
|
|
4465
|
-
: () => (p) => p;
|
|
4466
|
-
|
|
4467
4439
|
;// CONCATENATED MODULE: ./packages/core/utils/opaque.ts
|
|
4468
4440
|
/**
|
|
4469
4441
|
* @fileoverview `Opaque<Type, Token>` constructs a unique type which is a subset of Type with a
|
|
@@ -4807,7 +4779,6 @@ function isResult(x) {
|
|
|
4807
4779
|
|
|
4808
4780
|
|
|
4809
4781
|
|
|
4810
|
-
|
|
4811
4782
|
;// CONCATENATED MODULE: ./packages/core/bytes/bitvec.ts
|
|
4812
4783
|
|
|
4813
4784
|
/**
|