Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Go to publish to git-branch #17

Merged
merged 3 commits into from
Dec 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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