@layerzerolabs/dependency-graph 0.2.68 → 0.2.69

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layerzerolabs/dependency-graph",
3
- "version": "0.2.68",
3
+ "version": "0.2.69",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -13,10 +13,13 @@
13
13
  "main": "./dist/index.cjs",
14
14
  "module": "./dist/index.js",
15
15
  "types": "./dist/index.d.ts",
16
+ "files": [
17
+ "dist/**/*"
18
+ ],
16
19
  "devDependencies": {
17
20
  "tsup": "^8.4.0",
18
- "@layerzerolabs/tsup-configuration": "0.2.68",
19
- "@layerzerolabs/typescript-configuration": "0.2.68"
21
+ "@layerzerolabs/tsup-configuration": "0.2.69",
22
+ "@layerzerolabs/typescript-configuration": "0.2.69"
20
23
  },
21
24
  "publishConfig": {
22
25
  "access": "public",
@@ -1,27 +0,0 @@
1
-  WARN  Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
2
-
3
- > @layerzerolabs/dependency-graph@0.0.2 build /home/runner/work/monorepo-internal/monorepo-internal/packages/framework/dependency-graph
4
- > tsup
5
-
6
- CLI Building entry: src/dependencyNode.ts, src/index.ts
7
- CLI Using tsconfig: tsconfig.json
8
- CLI tsup v8.5.1
9
- CLI Using tsup config: /home/runner/work/monorepo-internal/monorepo-internal/packages/framework/dependency-graph/tsup.config.ts
10
- CLI Target: ES2023
11
- CLI Cleaning output folder
12
- CJS Build start
13
- ESM Build start
14
- CJS dist/dependencyNode.cjs 426.00 B
15
- CJS dist/4LBVNANM.cjs 1007.00 B
16
- CJS dist/index.cjs 408.00 B
17
- CJS dist/dependencyNode.cjs.map 79.00 B
18
- CJS dist/index.cjs.map 70.00 B
19
- CJS dist/4LBVNANM.cjs.map 3.01 KB
20
- CJS ⚡️ Build success in 82ms
21
- ESM dist/index.js 133.00 B
22
- ESM dist/dependencyNode.js 151.00 B
23
- ESM dist/WWFEJOTN.js 949.00 B
24
- ESM dist/index.js.map 69.00 B
25
- ESM dist/WWFEJOTN.js.map 3.01 KB
26
- ESM dist/dependencyNode.js.map 78.00 B
27
- ESM ⚡️ Build success in 82ms
@@ -1,8 +0,0 @@
1
-
2
- > @layerzerolabs/dependency-graph@0.0.2 lint /home/runner/work/monorepo-internal/monorepo-internal/packages/framework/dependency-graph
3
- > eslint . --max-warnings 0 || (eslint . --fix --max-warnings 0 && false)
4
-
5
- (node:66125) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///home/runner/work/monorepo-internal/monorepo-internal/eslint.config.js?mtime=1775777605148 is not specified and it doesn't parse as CommonJS.
6
- Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
7
- To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
8
- (Use `node --trace-warnings ...` to show where the warning was created)
@@ -1,49 +0,0 @@
1
- /**
2
- * <!-- anchor:DependencyNode -->
3
- * Dependency nodes are abstract nodes in the dependency graph. They're used to build the graph,
4
- * but as an abstract class, lacks the required information to actually be resolved to anything.
5
- * If you want to implement a new dependency node, see ObjectDefinition or FactoryDefinition
6
- * @param name the name of this node. It should be unique across the entire graph.
7
- * @param dependencies a map of other nodes that this node depends on. These children will be resolved first.
8
- * The key of the dependencies map should be some arbitrary name within the context of *this* node. It does
9
- * not have to be unique.
10
- */
11
- export abstract class DependencyNode<
12
- Name extends string = string,
13
- _Dependencies extends Dependencies = Dependencies,
14
- > {
15
- public readonly name: Name;
16
- public readonly dependencies: _Dependencies;
17
- constructor({
18
- name,
19
- dependencies = {} as _Dependencies,
20
- }: {
21
- name: Name;
22
- dependencies?: _Dependencies;
23
- }) {
24
- this.name = name;
25
- this.dependencies = dependencies;
26
- }
27
- }
28
-
29
- export type Dependencies = { [key: string]: DependencyNode<any, any> };
30
-
31
- type IndexedDeps<Extra extends readonly DependencyNode[]> = {
32
- [K in keyof Extra as K extends `${number}` ? `__extra${K}` : never]: Extra[K];
33
- };
34
-
35
- export const withDependencies = <
36
- N extends DependencyNode,
37
- const Extra extends readonly DependencyNode[],
38
- >(
39
- node: N,
40
- extraDeps: Extra,
41
- ): N & { dependencies: N['dependencies'] & IndexedDeps<Extra> } => {
42
- const mergedDeps = {
43
- ...node.dependencies,
44
- ...Object.fromEntries(extraDeps.map((dep, i) => [`__extra${i}`, dep])),
45
- };
46
- const descriptors: PropertyDescriptorMap = Object.getOwnPropertyDescriptors(node);
47
- descriptors.dependencies = { ...descriptors.dependencies, value: mergedDeps };
48
- return Object.create(Object.getPrototypeOf(node), descriptors);
49
- };
package/src/index.ts DELETED
@@ -1 +0,0 @@
1
- export * from './dependencyNode';
package/tsconfig.json DELETED
@@ -1,20 +0,0 @@
1
- {
2
- "extends": "@layerzerolabs/typescript-configuration/tsconfig.base.json",
3
- "compilerOptions": {
4
- "rootDir": "./src",
5
- "outDir": "./dist",
6
- "strictPropertyInitialization": false,
7
- "noUnusedLocals": false,
8
- "noUnusedParameters": false,
9
- "jsx": "react-jsx"
10
- },
11
- "exclude": [
12
- "node_modules",
13
- "**/__mocks__/*",
14
- "**/__tests__/*",
15
- "**/*.spec.ts",
16
- "**/*.test.ts",
17
- "dist"
18
- ],
19
- "include": ["src/**/*"]
20
- }
package/tsup.config.ts DELETED
@@ -1,8 +0,0 @@
1
- import { defineConfig } from 'tsup';
2
-
3
- import { createPackageTsupConfig } from '@layerzerolabs/tsup-configuration';
4
-
5
- export default defineConfig(({ watch }) => ({
6
- ...createPackageTsupConfig(),
7
- clean: !watch,
8
- }));