@graphcommerce/next-config 5.1.0-canary.1 → 5.1.0-canary.3

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/dist/index.d.ts CHANGED
@@ -5,6 +5,6 @@ export * from './utils/resolveDependenciesSync';
5
5
  export * from './withGraphCommerce';
6
6
  export declare function withYarn1Workspaces(packages?: string[]): (config: NextConfig) => NextConfig;
7
7
  export declare function withYarn1Scopes(packages?: string[]): (config: NextConfig) => NextConfig;
8
- export declare type PluginProps<P extends Record<string, unknown> = Record<string, unknown>> = P & {
8
+ export type PluginProps<P extends Record<string, unknown> = Record<string, unknown>> = P & {
9
9
  Prev: React.FC<P>;
10
10
  };
@@ -1,19 +1,19 @@
1
1
  import { ResolveDependency, ResolveDependencyReturn } from '../utils/resolveDependency';
2
- export declare type PluginConfig = {
2
+ export type PluginConfig = {
3
3
  component: string;
4
4
  exported: string;
5
5
  plugin: string;
6
6
  ifEnv?: string;
7
7
  };
8
- declare type Plugin = ResolveDependencyReturn & {
8
+ type Plugin = ResolveDependencyReturn & {
9
9
  components: Record<string, PluginConfig[]>;
10
10
  target: string;
11
11
  template?: string;
12
12
  };
13
- export declare type MaterializedPlugin = Plugin & {
13
+ export type MaterializedPlugin = Plugin & {
14
14
  template: string;
15
15
  };
16
16
  export declare function generateInterceptor(plugin: Plugin): MaterializedPlugin;
17
- export declare type GenerateInterceptorsReturn = Record<string, MaterializedPlugin>;
17
+ export type GenerateInterceptorsReturn = Record<string, MaterializedPlugin>;
18
18
  export declare function generateInterceptors(plugins: PluginConfig[], resolve: ResolveDependency): GenerateInterceptorsReturn;
19
19
  export {};
@@ -2,7 +2,7 @@ export interface INodeWithChildren<KeyType, ValueType> {
2
2
  children: InternalNodesMap<KeyType, ValueType>;
3
3
  node: ValueType;
4
4
  }
5
- export declare type InternalNodesMap<KeyType, ValueType> = Map<KeyType, INodeWithChildren<KeyType, ValueType>>;
5
+ export type InternalNodesMap<KeyType, ValueType> = Map<KeyType, INodeWithChildren<KeyType, ValueType>>;
6
6
  export declare class TopologicalSort<KeyType, ValueType> {
7
7
  #private;
8
8
  constructor(nodes: Map<KeyType, ValueType>);
@@ -1,5 +1,5 @@
1
- declare type PackageNames = Map<string, string>;
2
- declare type DependencyStructure = Record<string, {
1
+ type PackageNames = Map<string, string>;
2
+ type DependencyStructure = Record<string, {
3
3
  dirName: string;
4
4
  dependencies: string[];
5
5
  }>;
@@ -1,9 +1,9 @@
1
- export declare type ResolveDependencyReturn = {
1
+ export type ResolveDependencyReturn = {
2
2
  dependency: string;
3
3
  denormalized: string;
4
4
  root: string;
5
5
  fromRoot: string;
6
6
  fromModule: string;
7
7
  };
8
- export declare type ResolveDependency = (req: string) => ResolveDependencyReturn;
8
+ export type ResolveDependency = (req: string) => ResolveDependencyReturn;
9
9
  export declare const resolveDependency: (cwd?: string) => (dependency: string) => ResolveDependencyReturn;
@@ -1,5 +1,5 @@
1
1
  import type { NextConfig } from 'next';
2
- export declare type GraphCommerceConfig = {
2
+ export type GraphCommerceConfig = {
3
3
  /** Additional packages that should be transpiled, usually this auto generated. */
4
4
  packages?: string[];
5
5
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/next-config",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "5.1.0-canary.1",
5
+ "version": "5.1.0-canary.3",
6
6
  "type": "commonjs",
7
7
  "main": "dist/index.js",
8
8
  "typings": "dist/index.d.ts",
@@ -13,19 +13,17 @@
13
13
  "prepack": "yarn build"
14
14
  },
15
15
  "dependencies": {
16
- "@lingui/loader": "^3.14.0",
17
- "@swc/core": "^1.3.10",
16
+ "@lingui/loader": "^3.15.0",
17
+ "@swc/core": "1.3.21",
18
18
  "js-yaml-loader": "^1.2.2",
19
- "next-transpile-modules": "^9.0.0",
20
- "webpack": "^5.73.0"
19
+ "next-transpile-modules": "^9.0.0"
21
20
  },
22
21
  "devDependencies": {
23
- "type-fest": "^2.12.2",
24
- "typescript": "4.7.4"
22
+ "typescript": "4.9.3"
25
23
  },
26
24
  "peerDependencies": {
27
25
  "next": "^12.1.2",
28
- "webpack": "^5.70.0"
26
+ "webpack": "^5.0.0"
29
27
  },
30
28
  "files": [
31
29
  "dist",
@@ -2,7 +2,6 @@ import fs from 'node:fs'
2
2
  import path from 'node:path'
3
3
  import type { PackageJson } from 'type-fest'
4
4
  import { PackagesSort } from './PackagesSort'
5
- import { TopologicalSort } from './TopologicalSort'
6
5
 
7
6
  type PackageNames = Map<string, string>
8
7
  type DependencyStructure = Record<string, { dirName: string; dependencies: string[] }>