@powerhousedao/codegen 0.0.15 → 0.2.0

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/CHANGELOG.md ADDED
@@ -0,0 +1,11 @@
1
+ ## 0.1.0 (2024-09-26)
2
+
3
+
4
+ ### 🚀 Features
5
+
6
+ - **codegen:** initial codegen package setup ([0f67da6](https://github.com/powerhouse-inc/powerhouse/commit/0f67da6))
7
+
8
+
9
+ ### ❤️ Thank You
10
+
11
+ - Guillermo Puente @gpuente
@@ -15,10 +15,10 @@ declare const _default: {
15
15
  extension: string;
16
16
  modules: {
17
17
  name: string;
18
- __typename?: "Module" | undefined;
19
- description: import("document-model/document-model").Maybe<string>;
20
- id: string;
21
- operations: import("document-model/document-model").Operation[];
18
+ __typename?: "Module";
19
+ description: import("document-model/document-model").Maybe<import("document-model/document-model").Scalars["String"]["output"]>;
20
+ id: import("document-model/document-model").Scalars["ID"]["output"];
21
+ operations: Array<import("document-model/document-model").Operation>;
22
22
  }[];
23
23
  fileExtension: string;
24
24
  hasLocalSchema: boolean;
@@ -1,14 +1,13 @@
1
1
  ---
2
- to: "<%= rootDir %>/<%= name %>/editor.tsx"
2
+ to: "<%= rootDir %>/<%= h.changeCase.param(name) %>/editor.tsx"
3
3
  unless_exists: true
4
4
  ---
5
- <% if(!documentTypes.length){ %>import { Action } from 'document-model/document';<% } %>
6
- import { EditorProps } from 'document-model-libs/utils';
5
+ <% if(!documentTypes.length){ %>import { Action, EditorProps } from 'document-model/document';<% } else { %>import { EditorProps } from 'document-model/document';<% } %>
7
6
  <% documentTypes.forEach(type => { _%>
8
- import { <%= documentTypesMap[type] %>State, <%= documentTypesMap[type] %>Action } from "../.<%= documentModelsDir %>/<%= h.changeCase.param(documentTypesMap[type]) %>";
7
+ import { <%= documentTypesMap[type] %>State, <%= documentTypesMap[type] %>Action, <%= documentTypesMap[type] %>LocalState } from "../.<%= documentModelsDir %>/<%= h.changeCase.param(documentTypesMap[type]) %>";
9
8
  %><% }); _%>
10
9
 
11
- export type IProps = <% if(!documentTypes.length){ %>EditorProps<unknown, Action><% } else { %><% documentTypes.forEach((type, index) => { _%>EditorProps<<%= documentTypesMap[type] %>State, <%= documentTypesMap[type] %>Action%>%>><% if(index < documentTypes.length - 1){ %> | <% }%><% }); _%> <% } %>;
10
+ export type IProps = <% if(!documentTypes.length){ %>EditorProps<unknown, Action><% } else { %><% documentTypes.forEach((type, index) => { _%>EditorProps<<%= documentTypesMap[type] %>State, <%= documentTypesMap[type] %>Action, <%= documentTypesMap[type] %>LocalState%>%>><% if(index < documentTypes.length - 1){ %> | <% }%><% }); _%> <% } %>;
12
11
 
13
12
  export default function Editor(props: IProps) {
14
13
  return <></>;
@@ -1,14 +1,14 @@
1
1
  ---
2
- to: "<%= rootDir %>/<%= name %>/index.ts"
2
+ to: "<%= rootDir %>/<%= h.changeCase.param(name) %>/index.ts"
3
3
  force: true
4
4
  ---
5
5
  import { type Editor as EditorModule<% if(!documentTypes.length){ %>, Action<% } %> } from 'document-model/document';
6
6
  import Editor from './editor';
7
7
  <% documentTypes.forEach(type => { _%>
8
- import { <%= documentTypesMap[type] %>State, <%= documentTypesMap[type] %>Action } from "../.<%= documentModelsDir %>/<%= h.changeCase.param(documentTypesMap[type]) %>";
8
+ import { <%= documentTypesMap[type] %>State, <%= documentTypesMap[type] %>Action, <%= documentTypesMap[type] %>LocalState } from "../.<%= documentModelsDir %>/<%= h.changeCase.param(documentTypesMap[type]) %>";
9
9
  %><% }); _%>
10
10
 
11
- export const module: <% if(!documentTypes.length){ %>EditorModule<unknown, Action><% } else { %><% documentTypes.forEach((type, index) => { _%>EditorModule<<%= documentTypesMap[type] %>State, <%= documentTypesMap[type] %>Action%>%>> <% if(index < documentTypes.length - 1){ %>| <% }%><% }); _%> <% } %>= {
11
+ export const module: <% if(!documentTypes.length){ %>EditorModule<unknown, Action><% } else { %><% documentTypes.forEach((type, index) => { _%>EditorModule<<%= documentTypesMap[type] %>State, <%= documentTypesMap[type] %>Action, <%= documentTypesMap[type] %>LocalState%>%>> <% if(index < documentTypes.length - 1){ %>| <% }%><% }); _%> <% } %>= {
12
12
  Component: Editor,
13
13
  documentTypes: [<% if(!documentTypes.length){ %>'*'<% } else { %><% documentTypes.forEach(type => { _%>"<%= type %>", %><% }); _%> <% } %>],
14
14
  };
@@ -7,7 +7,6 @@ const getDirectories = (source) => (0, fs_1.readdirSync)(source, { withFileTypes
7
7
  .filter(dirent => dirent.isDirectory())
8
8
  .map(dirent => dirent.name);
9
9
  const tsConfig = {
10
- strict: true,
11
10
  strictScalars: true,
12
11
  scalars: {
13
12
  Unknown: 'unknown',
@@ -20,8 +19,6 @@ const tsConfig = {
20
19
  avoidOptionals: {
21
20
  field: true,
22
21
  },
23
- useIndexSignature: true,
24
- noSchemaStitching: true,
25
22
  skipTypename: true,
26
23
  // maybeValue: "T | null | undefined",
27
24
  inputMaybeValue: 'T | null | undefined',
@@ -3,7 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.generateEditor = exports.generateDocumentModel = exports.generateAll = void 0;
6
+ exports.generateAll = generateAll;
7
+ exports.generateDocumentModel = generateDocumentModel;
8
+ exports.generateEditor = generateEditor;
7
9
  const fs_1 = __importDefault(require("fs"));
8
10
  const hygen_1 = require("hygen");
9
11
  const path_1 = __importDefault(require("path"));
@@ -28,12 +30,13 @@ async function run(args, { watch = false, format = false } = {}) {
28
30
  });
29
31
  if (format) {
30
32
  const execa = await import('execa');
31
- result.actions
32
- // eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access
33
+ const actions = result.actions;
34
+ actions
33
35
  .filter(action => ['added', 'inject'].includes(action.status))
34
36
  .forEach(action => {
35
- // eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access
36
- execa.$ `prettier --ignore-path --write ${action.subject.replace('.', process.cwd())}`;
37
+ execa.$ `prettier --ignore-path --write ${action.subject.replace('.', process.cwd())}`.catch((err) => {
38
+ console.log(err);
39
+ });
37
40
  });
38
41
  }
39
42
  return result;
@@ -54,7 +57,6 @@ async function generateAll(dir, { watch = false, format = false } = {}) {
54
57
  }
55
58
  }
56
59
  }
57
- exports.generateAll = generateAll;
58
60
  async function generateDocumentModel(documentModel, dir, { watch = false, format = false } = {}) {
59
61
  // Generate the singular files for the document model logic
60
62
  await run([
@@ -80,7 +82,6 @@ async function generateDocumentModel(documentModel, dir, { watch = false, format
80
82
  ], { watch, format });
81
83
  }
82
84
  }
83
- exports.generateDocumentModel = generateDocumentModel;
84
85
  async function generateEditor(name, documentTypes, documentTypesMap, dir, documentModelsDir, { format = false } = {}) {
85
86
  // Generate the singular files for the document model logic
86
87
  await run([
@@ -98,4 +99,3 @@ async function generateEditor(name, documentTypes, documentTypesMap, dir, docume
98
99
  documentModelsDir,
99
100
  ], { format });
100
101
  }
101
- exports.generateEditor = generateEditor;
@@ -4,7 +4,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  return (mod && mod.__esModule) ? mod : { "default": mod };
5
5
  };
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.generateEditor = exports.generateFromFile = exports.generate = void 0;
7
+ exports.generate = generate;
8
+ exports.generateFromFile = generateFromFile;
9
+ exports.generateEditor = generateEditor;
8
10
  const hygen_1 = require("./hygen");
9
11
  const graphql_1 = require("./graphql");
10
12
  const fs_1 = __importDefault(require("fs"));
@@ -59,7 +61,6 @@ async function generate(config) {
59
61
  await (0, graphql_1.generateSchemas)(config.documentModelsDir, { format, watch });
60
62
  await (0, hygen_1.generateAll)(config.documentModelsDir, { format, watch });
61
63
  }
62
- exports.generate = generate;
63
64
  async function generateFromFile(path, config) {
64
65
  // load document model spec from file
65
66
  const documentModel = await (0, utils_1.loadDocumentModel)(path);
@@ -75,7 +76,6 @@ async function generateFromFile(path, config) {
75
76
  await (0, graphql_1.generateSchema)(name, config.documentModelsDir, config);
76
77
  await (0, hygen_1.generateDocumentModel)(documentModel, config.documentModelsDir, config);
77
78
  }
78
- exports.generateFromFile = generateFromFile;
79
79
  async function generateEditor(name, documentTypes, config) {
80
80
  const { documentModelsDir, format } = config;
81
81
  const docummentTypesMap = getDocumentTypesMap(documentModelsDir);
@@ -85,4 +85,3 @@ async function generateEditor(name, documentTypes, config) {
85
85
  }
86
86
  return (0, hygen_1.generateEditor)(name, documentTypes, docummentTypesMap, config.editorsDir, config.documentModelsDir, { format });
87
87
  }
88
- exports.generateEditor = generateEditor;
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.loadDocumentModel = void 0;
6
+ exports.loadDocumentModel = loadDocumentModel;
7
7
  const document_model_1 = require("document-model/document-model");
8
8
  const fs_1 = __importDefault(require("fs"));
9
9
  async function loadDocumentModel(path) {
@@ -34,4 +34,3 @@ async function loadDocumentModel(path) {
34
34
  : error;
35
35
  }
36
36
  }
37
- exports.loadDocumentModel = loadDocumentModel;
@@ -0,0 +1,4 @@
1
+ declare const packageManagers: readonly ["npm", "yarn", "pnpm", "bun"];
2
+ export type PackageManager = (typeof packageManagers)[number];
3
+ export declare function getPackageManager(userAgent?: string): PackageManager;
4
+ export {};
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getPackageManager = getPackageManager;
4
+ const packageManagers = ['npm', 'yarn', 'pnpm', 'bun'];
5
+ const defaultPackageManager = 'npm';
6
+ function getPackageManager(userAgent) {
7
+ if (!userAgent) {
8
+ return defaultPackageManager;
9
+ }
10
+ const pkgSpec = userAgent.split(' ')[0];
11
+ const pkgSpecArr = pkgSpec.split('/');
12
+ const name = pkgSpecArr[0];
13
+ if (packageManagers.includes(name)) {
14
+ return name;
15
+ }
16
+ else {
17
+ return defaultPackageManager;
18
+ }
19
+ }
20
+ function pkgFromUserAgent(userAgent) {
21
+ if (!userAgent)
22
+ return undefined;
23
+ const pkgSpec = userAgent.split(' ')[0];
24
+ const pkgSpecArr = pkgSpec.split('/');
25
+ return {
26
+ name: pkgSpecArr[0],
27
+ version: pkgSpecArr[1],
28
+ };
29
+ }
@@ -8,13 +8,11 @@ const child_process_1 = require("child_process");
8
8
  const enquirer_1 = require("enquirer");
9
9
  const fs_1 = __importDefault(require("fs"));
10
10
  const path_1 = __importDefault(require("path"));
11
- const util_1 = __importDefault(require("util"));
12
- const utils_1 = require("../utils");
13
- const exec = util_1.default.promisify(child_process_1.exec);
11
+ const cli_1 = require("../utils/cli");
12
+ const command_1 = require("./command");
14
13
  const BOILERPLATE_REPO = 'https://github.com/powerhouse-inc/document-model-boilerplate.git';
15
- function isUsingYarn() {
16
- return (process.env.npm_config_user_agent || '').startsWith('yarn');
17
- }
14
+ const packageManager = (0, command_1.getPackageManager)(process.env.npm_config_user_agent);
15
+ const isNpm = packageManager === 'npm';
18
16
  function buildPackageJson(appPath, projectName) {
19
17
  const packageJson = JSON.parse(fs_1.default.readFileSync(path_1.default.join(appPath, 'package.json'), 'utf-8'));
20
18
  const newPackage = {
@@ -42,18 +40,16 @@ function buildIndex(appPath, documentModelsDir, editorsDir) {
42
40
  export const documentModels = Object.values(documentModelsExports);
43
41
  export const editors = Object.values(editorsExports);`, 'utf8');
44
42
  }
45
- async function runCmd(command) {
43
+ function runCmd(command) {
46
44
  try {
47
- const { stdout, stderr } = await exec(command);
48
- console.log(stdout);
49
- console.log(stderr);
45
+ (0, child_process_1.execSync)(command, { stdio: 'inherit' });
50
46
  }
51
47
  catch (error) {
52
48
  console.log('\x1b[31m', error, '\x1b[0m');
53
49
  }
54
50
  }
55
51
  async function init() {
56
- const args = (0, utils_1.parseArgs)(process.argv.slice(2), utils_1.configSpec);
52
+ const args = (0, cli_1.parseArgs)(process.argv.slice(2), cli_1.configSpec);
57
53
  // checks if a project name was provided
58
54
  let projectName = args._.shift();
59
55
  if (!projectName) {
@@ -72,8 +68,8 @@ async function init() {
72
68
  projectName = result.projectName;
73
69
  }
74
70
  const { documentModelsDir, editorsDir } = args['--interactive']
75
- ? await (0, utils_1.promptDirectories)()
76
- : utils_1.DEFAULT_CONFIG;
71
+ ? await (0, cli_1.promptDirectories)()
72
+ : cli_1.DEFAULT_CONFIG;
77
73
  const appPath = path_1.default.join(process.cwd(), projectName);
78
74
  try {
79
75
  fs_1.default.mkdirSync(appPath);
@@ -89,18 +85,16 @@ async function init() {
89
85
  }
90
86
  createProject(projectName, documentModelsDir, editorsDir);
91
87
  }
92
- async function createProject(projectName, documentModelsDir, editorsDir) {
88
+ function createProject(projectName, documentModelsDir, editorsDir) {
93
89
  try {
94
- const useYarn = isUsingYarn();
95
90
  console.log('\x1b[33m', 'Downloading the project structure...', '\x1b[0m');
96
- await runCmd(`git clone --depth 1 ${BOILERPLATE_REPO} ${projectName}`);
91
+ runCmd(`git clone --depth 1 ${BOILERPLATE_REPO} ${projectName}`);
97
92
  const appPath = path_1.default.join(process.cwd(), projectName);
98
93
  process.chdir(appPath);
99
94
  console.log('\x1b[34m', 'Installing dependencies...', '\x1b[0m');
100
- await runCmd(useYarn ? 'yarn install' : 'npm install');
101
- console.log();
95
+ runCmd(`${packageManager} install`);
102
96
  fs_1.default.rmSync(path_1.default.join(appPath, './.git'), { recursive: true });
103
- await runCmd('git init');
97
+ runCmd('git init');
104
98
  try {
105
99
  fs_1.default.mkdirSync(path_1.default.join(appPath, documentModelsDir));
106
100
  fs_1.default.mkdirSync(path_1.default.join(appPath, editorsDir));
@@ -117,8 +111,7 @@ async function createProject(projectName, documentModelsDir, editorsDir) {
117
111
  console.log();
118
112
  console.log('\x1b[34m', 'You can start by typing:');
119
113
  console.log(` cd ${projectName}`);
120
- console.log(useYarn ? ' yarn generate' : ' npm run generate', '\x1b[0m');
121
- console.log();
114
+ console.log(isNpm ? ' npm run generate' : ` ${packageManager} generate`, '\x1b[0m');
122
115
  }
123
116
  catch (error) {
124
117
  console.log(error);
@@ -1,4 +1,3 @@
1
- import { generateMock as zodGenerateMock } from '@anatine/zod-mock';
2
1
  import arg from 'arg';
3
2
  export type PowerhouseConfig = {
4
3
  documentModelsDir: string;
@@ -23,5 +22,3 @@ export declare function writeConfig(config: PowerhouseConfig): void;
23
22
  export declare function parseArgs<T extends arg.Spec>(argv: string[], spec: T): arg.Result<T>;
24
23
  export declare function parseConfig(argv: string[]): Partial<PowerhouseConfig>;
25
24
  export declare function promptDirectories(config?: PowerhouseConfig): Promise<Pick<PowerhouseConfig, "documentModelsDir" | "editorsDir">>;
26
- export type generateMockTypeFn = typeof zodGenerateMock;
27
- export declare const generateMock: generateMockTypeFn;
@@ -3,8 +3,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.generateMock = exports.promptDirectories = exports.parseConfig = exports.parseArgs = exports.writeConfig = exports.getConfig = exports.configSpec = exports.DEFAULT_CONFIG = void 0;
7
- const zod_mock_1 = require("@anatine/zod-mock");
6
+ exports.configSpec = exports.DEFAULT_CONFIG = void 0;
7
+ exports.getConfig = getConfig;
8
+ exports.writeConfig = writeConfig;
9
+ exports.parseArgs = parseArgs;
10
+ exports.parseConfig = parseConfig;
11
+ exports.promptDirectories = promptDirectories;
8
12
  const arg_1 = __importDefault(require("arg"));
9
13
  const enquirer_1 = require("enquirer");
10
14
  const node_fs_1 = require("node:fs");
@@ -36,11 +40,9 @@ function getConfig() {
36
40
  }
37
41
  return config;
38
42
  }
39
- exports.getConfig = getConfig;
40
43
  function writeConfig(config) {
41
44
  (0, node_fs_1.writeFileSync)('./powerhouse.config.json', JSON.stringify(config, null, 4));
42
45
  }
43
- exports.writeConfig = writeConfig;
44
46
  function parseArgs(argv, spec) {
45
47
  const args = (0, arg_1.default)(spec, {
46
48
  permissive: true,
@@ -48,7 +50,6 @@ function parseArgs(argv, spec) {
48
50
  });
49
51
  return args;
50
52
  }
51
- exports.parseArgs = parseArgs;
52
53
  function parseConfig(argv) {
53
54
  const config = {};
54
55
  const args = parseArgs(argv, exports.configSpec);
@@ -69,7 +70,6 @@ function parseConfig(argv) {
69
70
  }
70
71
  return config;
71
72
  }
72
- exports.parseConfig = parseConfig;
73
73
  async function promptDirectories(config = exports.DEFAULT_CONFIG) {
74
74
  return (0, enquirer_1.prompt)([
75
75
  {
@@ -86,8 +86,3 @@ async function promptDirectories(config = exports.DEFAULT_CONFIG) {
86
86
  },
87
87
  ]);
88
88
  }
89
- exports.promptDirectories = promptDirectories;
90
- const generateMock = (zodRef, options) => {
91
- return (0, zod_mock_1.generateMock)(zodRef, options);
92
- };
93
- exports.generateMock = generateMock;
@@ -0,0 +1,2 @@
1
+ export * from './cli';
2
+ export * from './mock';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./cli"), exports);
18
+ __exportStar(require("./mock"), exports);
@@ -0,0 +1,3 @@
1
+ import { generateMock as zodGenerateMock } from '@anatine/zod-mock';
2
+ export type generateMockTypeFn = typeof zodGenerateMock;
3
+ export declare const generateMock: generateMockTypeFn;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.generateMock = void 0;
4
+ const zod_mock_1 = require("@anatine/zod-mock");
5
+ const generateMock = (zodRef, options) => {
6
+ return (0, zod_mock_1.generateMock)(zodRef, options);
7
+ };
8
+ exports.generateMock = generateMock;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerhousedao/codegen",
3
- "version": "0.0.15",
3
+ "version": "0.2.0",
4
4
  "license": "AGPL-3.0-only",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
@@ -22,7 +22,8 @@
22
22
  "start": "ts-node src/cli.ts",
23
23
  "check-types": "tsc --noEmit",
24
24
  "lint": "eslint . && yarn check-types",
25
- "lint:fix": "eslint . --fix"
25
+ "lint:fix": "eslint . --fix",
26
+ "clean:node_modules": "rimraf node_modules"
26
27
  },
27
28
  "dependencies": {
28
29
  "@acaldas/graphql-codegen-typescript-validation-schema": "^0.12.3",
@@ -33,35 +34,21 @@
33
34
  "@types/node": "^20.11.2",
34
35
  "arg": "^5.0.2",
35
36
  "change-case": "^4.1.2",
36
- "document-model": "^1.0.29",
37
+ "document-model": "1.0.29",
37
38
  "enquirer": "^2.4.1",
38
39
  "execa": "^8.0.1",
39
40
  "hygen": "^6.2.11",
40
41
  "typescript": "^5.3.3"
41
42
  },
42
43
  "devDependencies": {
43
- "@commitlint/cli": "^18.4.4",
44
- "@commitlint/config-conventional": "^18.4.4",
45
44
  "@total-typescript/ts-reset": "^0.5.1",
46
- "@typescript-eslint/eslint-plugin": "^6.19.0",
47
- "@typescript-eslint/parser": "^6.19.0",
48
45
  "copyfiles": "^2.4.1",
49
- "eslint": "^8.56.0",
50
- "eslint-config-prettier": "^9.1.0",
51
- "eslint-plugin-prettier": "^5.1.3",
52
46
  "graphql": "^16.8.1",
53
47
  "husky": "^8.0.3",
54
- "lint-staged": "^15.2.0",
55
- "prettier": "^3.2.4",
56
- "prettier-plugin-organize-imports": "^3.2.4",
57
48
  "rimraf": "^5.0.5",
58
49
  "ts-node": "^10.9.2"
59
50
  },
60
51
  "peerDependencies": {
61
52
  "graphql": "^16.8.1"
62
- },
63
- "resolutions": {
64
- "string-width": "4.2.3",
65
- "strip-ansi": "6.0.0"
66
53
  }
67
54
  }