chore!: configure projen for correct artifact generation directory

This commit is contained in:
Tom Keller
2022-10-15 18:37:21 -07:00
parent 746c17326f
commit 15adc6ff52
5 changed files with 12 additions and 11 deletions
Generated
+1 -2
View File
@@ -31,7 +31,6 @@ jspm_packages/
*.tgz
.yarn-integrity
.cache
build
!/.projenrc.js
/test-reports/
junit.xml
@@ -45,7 +44,7 @@ junit.xml
!/tsconfig.json
!/tsconfig.dev.json
!/src/
/lib
/build
!/.eslintrc.yml
!/dist/
!/action.yml
Generated
+3 -3
View File
@@ -10,9 +10,9 @@ permissions-backup.acl
/test/
/tsconfig.dev.json
/src/
!/lib/
!/lib/**/*.js
!/lib/**/*.d.ts
!/build/
!/build/**/*.js
!/build/**/*.d.ts
dist
/tsconfig.json
/.github/
+6 -3
View File
@@ -1,5 +1,5 @@
const { GitHubActionTypeScriptProject, RunsUsing } = require('projen-github-action-typescript');
const { NodePackageManager } = require('projen/lib/javascript');
const { NodePackageManager, NpmAccess } = require('projen/lib/javascript');
const project = new GitHubActionTypeScriptProject({
defaultReleaseBranch: 'main',
@@ -17,7 +17,6 @@ const project = new GitHubActionTypeScriptProject({
filename: '.projenrc.cjs',
},
sampleCode: false,
gitignore: ['build'],
actionMetadata: {
name: '"Configure AWS Credentials" Action for GitHub Actions',
description: 'Configures AWS credentials for use in subsequent steps in a GitHub Action workflow',
@@ -111,9 +110,11 @@ const project = new GitHubActionTypeScriptProject({
yaml: true,
prettier: true,
},
releaseFailureIssue: true,
releaseTagPrefix: 'v',
codeCov: false,
libdir: 'build',
entrypoint: 'build/index.js',
tsconfig: {
compilerOptions: {
declaration: true,
@@ -215,6 +216,8 @@ if (packageJson) {
],
});
packageJson.addOverride('jest.globals', undefined);
// The entrypoint property is supposed to manage this but it doesn't work
packageJson.addOverride('main', 'build/index.js');
}
project.synth();
-1
View File
@@ -1 +0,0 @@
TODO
Generated
+2 -2
View File
@@ -65,7 +65,7 @@
"engines": {
"node": ">= 14.0.0"
},
"main": "lib/index.js",
"main": "build/index.js",
"license": "MIT",
"homepage": "https://github.com/aws-actions/configure-aws-credentials",
"version": "0.0.0",
@@ -117,7 +117,7 @@
]
}
},
"types": "lib/index.d.ts",
"types": "build/index.d.ts",
"overrides": {
"@types/responselike": "1.0.0",
"got": "12.3.1"