Skip to content

Commit

Permalink
fix: attempt to stop go from double releasing
Browse files Browse the repository at this point in the history
  • Loading branch information
dkershner6 committed Dec 31, 2023
1 parent 82f41d3 commit f9590b6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .npmignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 10 additions & 1 deletion .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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("-", "_"),
Expand All @@ -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();

0 comments on commit f9590b6

Please sign in to comment.