diff --git a/.gitignore b/.gitignore index f1f8cea..0170362 100644 --- a/.gitignore +++ b/.gitignore @@ -31,6 +31,7 @@ jspm_packages/ .yarn-integrity .cache .DS_Store +cdknextjsexports3dynamicrouting !/.projenrc.js /test-reports/ junit.xml diff --git a/.npmignore b/.npmignore index b0c7047..2e37f9f 100644 --- a/.npmignore +++ b/.npmignore @@ -22,3 +22,6 @@ dist tsconfig.tsbuildinfo /.eslintrc.json !.jsii +cdknextjsexports3dynamicrouting +.prettier* +.projen* diff --git a/.projenrc.ts b/.projenrc.ts index 9f20916..76cda8f 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -6,6 +6,9 @@ const GITHUB_USERNAME_OR_ORG_PASCAL_CASE = "DKershner6"; const PROJECT_NAME = "cdk-nextjs-export-s3-dynamic-routing"; const PROJECT_NAME_PASCAL_CASE = "CdkNextjsExportS3DynamicRouting"; +/** This is where GO sticks things */ +const PROJECT_NAME_NO_DASHES = PROJECT_NAME.replace(/-/g, ""); + const project = new Node20AwsCdkConstructLibrary({ majorVersion: 1, author: "Derek Kershner", @@ -30,9 +33,11 @@ const project = new Node20AwsCdkConstructLibrary({ packageName: PROJECT_NAME, bundledDeps: ["lodash.set", "uglify-js"], - gitignore: [".DS_Store"], + gitignore: [".DS_Store", PROJECT_NAME_NO_DASHES], // Publish to other languages + releaseToNpm: true, + publishToPypi: { distName: PROJECT_NAME, module: PROJECT_NAME.replace("-", "_"), @@ -58,6 +63,10 @@ const project = new Node20AwsCdkConstructLibrary({ // }, }); +project.addPackageIgnore(PROJECT_NAME_NO_DASHES); +project.addPackageIgnore(".prettier*"); +project.addPackageIgnore(".projen*"); + new Nvmrc(project); project.synth();