From 24082d375d54ffde4ab3cb2831cd12b616e15a0b Mon Sep 17 00:00:00 2001 From: Ryan Martin Date: Fri, 21 Oct 2022 13:33:29 -0400 Subject: [PATCH] Flag peer dependencies --- .projen/deps.json | 30 +++++++++++++++++++++++++----- .projen/tasks.json | 10 +++++----- .projenrc.ts | 6 +++++- package.json | 8 +++++++- 4 files changed, 42 insertions(+), 12 deletions(-) diff --git a/.projen/deps.json b/.projen/deps.json index 6ee6f28..1844c47 100644 --- a/.projen/deps.json +++ b/.projen/deps.json @@ -19,11 +19,6 @@ "version": "^5", "type": "build" }, - { - "name": "cdktf", - "version": "~0", - "type": "build" - }, { "name": "eslint-import-resolver-node", "type": "build" @@ -90,6 +85,26 @@ "version": "12.3.1", "type": "override" }, + { + "name": "@cdktf/provider-github", + "version": "~3", + "type": "peer" + }, + { + "name": "@skeptools/skep-core", + "version": "~0", + "type": "peer" + }, + { + "name": "cdktf", + "version": "~0", + "type": "peer" + }, + { + "name": "constructs", + "version": "~10", + "type": "peer" + }, { "name": "@cdktf/provider-github", "version": "~3", @@ -100,6 +115,11 @@ "version": "~0", "type": "runtime" }, + { + "name": "cdktf", + "version": "~0", + "type": "runtime" + }, { "name": "constructs", "version": "~10", diff --git a/.projen/tasks.json b/.projen/tasks.json index c4e11cf..d32403b 100644 --- a/.projen/tasks.json +++ b/.projen/tasks.json @@ -208,19 +208,19 @@ "exec": "yarn upgrade npm-check-updates" }, { - "exec": "npm-check-updates --dep dev --upgrade --target=minor --reject='cdktf,@cdktf/provider-github,@skeptools/skep-core,constructs'" + "exec": "npm-check-updates --dep dev --upgrade --target=minor --reject='@cdktf/provider-github,@skeptools/skep-core,cdktf,constructs'" }, { - "exec": "npm-check-updates --dep optional --upgrade --target=minor --reject='cdktf,@cdktf/provider-github,@skeptools/skep-core,constructs'" + "exec": "npm-check-updates --dep optional --upgrade --target=minor --reject='@cdktf/provider-github,@skeptools/skep-core,cdktf,constructs'" }, { - "exec": "npm-check-updates --dep peer --upgrade --target=minor --reject='cdktf,@cdktf/provider-github,@skeptools/skep-core,constructs'" + "exec": "npm-check-updates --dep peer --upgrade --target=minor --reject='@cdktf/provider-github,@skeptools/skep-core,cdktf,constructs'" }, { - "exec": "npm-check-updates --dep prod --upgrade --target=minor --reject='cdktf,@cdktf/provider-github,@skeptools/skep-core,constructs'" + "exec": "npm-check-updates --dep prod --upgrade --target=minor --reject='@cdktf/provider-github,@skeptools/skep-core,cdktf,constructs'" }, { - "exec": "npm-check-updates --dep bundle --upgrade --target=minor --reject='cdktf,@cdktf/provider-github,@skeptools/skep-core,constructs'" + "exec": "npm-check-updates --dep bundle --upgrade --target=minor --reject='@cdktf/provider-github,@skeptools/skep-core,cdktf,constructs'" }, { "exec": "yarn install --check-files" diff --git a/.projenrc.ts b/.projenrc.ts index 4d5706e..2a63f11 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -9,10 +9,14 @@ const project = new typescript.TypeScriptProject({ deps: [ '@cdktf/provider-github@~3', '@skeptools/skep-core@~0', + 'cdktf@~0', 'constructs@~10', ], - devDeps: [ + peerDeps: [ + '@cdktf/provider-github@~3', + '@skeptools/skep-core@~0', 'cdktf@~0', + 'constructs@~10', ], gitignore: [ '*.d.ts', diff --git a/package.json b/package.json index 181c238..2957de2 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,6 @@ "@types/node": "^14", "@typescript-eslint/eslint-plugin": "^5", "@typescript-eslint/parser": "^5", - "cdktf": "~0", "eslint": "^8", "eslint-import-resolver-node": "^0.3.6", "eslint-import-resolver-typescript": "^3.5.1", @@ -40,9 +39,16 @@ "ts-node": "^10.9.1", "typescript": "^4.8.4" }, + "peerDependencies": { + "@cdktf/provider-github": "~3", + "@skeptools/skep-core": "~0", + "cdktf": "~0", + "constructs": "~10" + }, "dependencies": { "@cdktf/provider-github": "~3", "@skeptools/skep-core": "~0", + "cdktf": "~0", "constructs": "~10" }, "main": "lib/index.js",