Skip to content

Commit 40350cf

Browse files
Pushing pnpm lock file to lock package versions (#672)
1 parent c3ed6e0 commit 40350cf

File tree

8 files changed

+17186
-8
lines changed

8 files changed

+17186
-8
lines changed

.github/workflows/lint-prettier.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Install Node.js modules
3030
run: |
3131
npm install -g pnpm
32-
pnpm install
32+
pnpm install --frozen-lockfile
3333
- name: Analyze TypeScript files
3434
run: |
3535
pnpm recursive run lint

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
OUTPUT_DIR: templates
7272
run: |
7373
cd "${INSTALLER_STACK_DIR}"
74-
pnpm install
74+
pnpm install --frozen-lockfile
7575
pnpx cdk synth --output "${OUTPUT_DIR}" "${INSTALLER_STACK_NAME}"
7676
echo ::set-output name=template_name::${INSTALLER_STACK_NAME}.template.json
7777
echo ::set-output name=template_path::$(realpath "${OUTPUT_DIR}/${INSTALLER_STACK_NAME}.template.json")

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
cdk.out
22
node_modules
3-
pnpm-lock.yaml
43
.DS_Store
54
*.log
65
config.json

docs/developer/developer-guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ new codebuild.PipelineProject(stack, 'InstallerProject', {
176176
nodejs: 12,
177177
},
178178
// The flag '--unsafe-perm' is necessary to run pnpm scripts in Docker
179-
commands: ['npm install --global pnpm', 'pnpm install --unsafe-perm'],
179+
commands: ['npm install --global pnpm', 'pnpm install --unsafe-perm --frozen-lockfile'],
180180
},
181181
build: {
182182
commands: [
@@ -242,7 +242,7 @@ WORKDIR /app
242242
# Copy over the project root to the /app directory
243243
ADD . /app/
244244
# Install the dependencies
245-
RUN pnpm install --unsafe-perm
245+
RUN pnpm install --unsafe-perm --frozen-lockfile
246246
```
247247

248248
When this CodeBuild project executes, it uses the Docker image as base -- the dependencies are already installed -- and runs the same commands as the `CdkDeployProject` to deploy the `Phase` stacks.

pnpm-lock.yaml

Lines changed: 17179 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/core/cdk/cdk.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ export ACCELERATOR_PREFIX="PBMMAccel-"
55
export ACCELERATOR_STATE_MACHINE_NAME="PBMMAccel-MainStateMachine_sm"
66

77
# Make sure initial-setup-lambdas and all custom resources are built
8-
pnpm install
8+
pnpm install --frozen-lockfile
99

1010
pnpx cdk --require-approval never $@

src/installer/cdk/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ async function main() {
181181
nodejs: 12,
182182
},
183183
// The flag '--unsafe-perm' is necessary to run pnpm scripts in Docker
184-
commands: ['npm install --global pnpm', 'pnpm install --unsafe-perm'],
184+
commands: ['npm install --global pnpm', 'pnpm install --unsafe-perm --frozen-lockfile'],
185185
},
186186
build: {
187187
commands: [

src/lib/cdk-accelerator/src/codebuild/cdk-deploy-project.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ function installPackageManagerCommands(packageManager: PackageManager) {
184184
function installDependenciesCommands(packageManager: PackageManager) {
185185
if (packageManager === 'pnpm') {
186186
// The flag '--unsafe-perm' is necessary to run pnpm scripts in Docker
187-
return ['pnpm install --unsafe-perm'];
187+
return ['pnpm install --unsafe-perm --frozen-lockfile'];
188188
}
189189
throw new Error(`Unknown package manager ${packageManager}`);
190190
}

0 commit comments

Comments
 (0)