From 9c5d503964993dac3d6e66701ea51c536aed7bbe Mon Sep 17 00:00:00 2001 From: Matteo Restelli Date: Mon, 5 Feb 2024 18:49:55 +0100 Subject: [PATCH] fix: setting private to false in projen file (#10) Fix: Setting private to false in projen config file in order to enable npm publishing --- .npmignore | 25 +++++++++++++++++++++++++ .projenrc.ts | 2 ++ package.json | 4 +++- 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 .npmignore diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..0abe237 --- /dev/null +++ b/.npmignore @@ -0,0 +1,25 @@ +# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". +/.projen/ +/test-reports/ +junit.xml +/coverage/ +permissions-backup.acl +/dist/changelog.md +/dist/version.txt +/test/ +/tsconfig.dev.json +/src/ +!/lib/ +!/lib/**/*.js +!/lib/**/*.d.ts +dist +/tsconfig.json +/.github/ +/.vscode/ +/.idea/ +/.projenrc.js +tsconfig.tsbuildinfo +/.eslintrc.json +!.jsii +/.gitattributes +/.projenrc.ts diff --git a/.projenrc.ts b/.projenrc.ts index bd38674..a36c3a4 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -12,6 +12,8 @@ const project = new CdklabsConstructLibrary({ prerelease: 'alpha', stability: 'experimental', releaseToNpm: true, + private: false, + enablePRAutoMerge: true, repositoryUrl: 'https://github.com/cdklabs/cdk-verified-permissions.git', }); project.synth(); \ No newline at end of file diff --git a/package.json b/package.json index 6c1a89b..1ac6592 100644 --- a/package.json +++ b/package.json @@ -86,6 +86,9 @@ }, "main": "lib/index.js", "license": "Apache-2.0", + "publishConfig": { + "access": "public" + }, "version": "0.0.0", "jest": { "testMatch": [ @@ -158,6 +161,5 @@ "rootDir": "src" } }, - "private": true, "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run \"npx projen\"." }