Skip to content

Commit

Permalink
Merge pull request #17 from dkershner6/DAK/go-git-branch
Browse files Browse the repository at this point in the history
fix: Go to publish to git-branch
  • Loading branch information
dkershner6 authored Dec 31, 2023
2 parents d251b30 + e0c7f17 commit db0a6bf
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml

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

1 change: 0 additions & 1 deletion .gitignore

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

3 changes: 1 addition & 2 deletions .npmignore

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

9 changes: 3 additions & 6 deletions .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ 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 @@ -33,7 +30,7 @@ const project = new Node20AwsCdkConstructLibrary({
packageName: PROJECT_NAME,
bundledDeps: ["lodash.set", "uglify-js"],

gitignore: [".DS_Store", PROJECT_NAME_NO_DASHES],
gitignore: [".DS_Store"],

// Publish to other languages
releaseToNpm: true,
Expand All @@ -50,6 +47,7 @@ const project = new Node20AwsCdkConstructLibrary({

publishToGo: {
moduleName: `github.com/${GITHUB_USERNAME_OR_ORG}/${PROJECT_NAME}`,
gitBranch: "publish-go",
},

// publishToMaven: {
Expand All @@ -63,9 +61,8 @@ const project = new Node20AwsCdkConstructLibrary({
// },
});

project.addPackageIgnore(PROJECT_NAME_NO_DASHES);
project.addPackageIgnore(".prettier*");
project.addPackageIgnore(".projen*");
project.addPackageIgnore(".projenrc.*");

new Nvmrc(project);

Expand Down

0 comments on commit db0a6bf

Please sign in to comment.