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

Remove check and warning for node_modules directory #998

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

colincasey
Copy link
Contributor

This warning was carried over from the classic Heroku Node.js buildpack which did support both npm install and npm ci. If a node_modules directory existed and there was no lockfile present, this could cause issues with the dependencies installed.

This buildpack only supports npm ci so this check and warning is not required. If the node_modules directory is already present, npm ci will automatically remove it.

This warning was carried over from the classic Heroku Node.js buildpack which did support both `npm install` and `npm ci`. If a `node_modules` directory existed and there was no lockfile present, this could cause issues with the dependencies installed.

This buildpack only supports `npm ci` so this check and warning is not required. If the `node_modules` directory is already present, `npm ci` will automatically remove it.
@colincasey colincasey merged commit 6a98a4f into main Jan 10, 2025
41 checks passed
@colincasey colincasey deleted the remove_node_modules_dir_check branch January 10, 2025 14:05
heroku-linguist bot added a commit that referenced this pull request Jan 10, 2025
## heroku/nodejs

### Changed

- Updated `heroku/nodejs-corepack` to `3.4.3`.
- Updated `heroku/nodejs-engine` to `3.4.3`.
- Updated `heroku/nodejs-npm-engine` to `3.4.3`.
- Updated `heroku/nodejs-npm-install` to `3.4.3`.
- Updated `heroku/nodejs-pnpm-engine` to `3.4.3`.
- Updated `heroku/nodejs-pnpm-install` to `3.4.3`.
- Updated `heroku/nodejs-yarn` to `3.4.3`.

## heroku/nodejs-corepack

- No changes.

## heroku/nodejs-engine

- No changes.

## heroku/nodejs-function

### Changed

- Updated `heroku/nodejs-engine` to `3.4.3`.
- Updated `heroku/nodejs-function-invoker` to `3.4.3`.
- Updated `heroku/nodejs-npm` to `3.4.3`.

## heroku/nodejs-function-invoker

- No changes.

## heroku/nodejs-npm

- No changes.

## heroku/nodejs-npm-engine

- No changes.

## heroku/nodejs-npm-install

### Removed

- Check and warning for `node_modules` directory is unnecessary since
  `npm ci` will remove it before installing dependencies. ([#998]#998))

## heroku/nodejs-pnpm-engine

- No changes.

## heroku/nodejs-pnpm-install

- No changes.

## heroku/nodejs-yarn

- No changes.
@heroku-linguist heroku-linguist bot mentioned this pull request Jan 10, 2025
heroku-linguist bot added a commit to heroku/cnb-builder-images that referenced this pull request Jan 10, 2025
## heroku/nodejs

### Changed

- Updated `heroku/nodejs-corepack` to `3.4.3`.
- Updated `heroku/nodejs-engine` to `3.4.3`.
- Updated `heroku/nodejs-npm-engine` to `3.4.3`.
- Updated `heroku/nodejs-npm-install` to `3.4.3`.
- Updated `heroku/nodejs-pnpm-engine` to `3.4.3`.
- Updated `heroku/nodejs-pnpm-install` to `3.4.3`.
- Updated `heroku/nodejs-yarn` to `3.4.3`.

## heroku/nodejs-corepack

- No changes.

## heroku/nodejs-engine

- No changes.

## heroku/nodejs-function

### Changed

- Updated `heroku/nodejs-engine` to `3.4.3`.
- Updated `heroku/nodejs-function-invoker` to `3.4.3`.
- Updated `heroku/nodejs-npm` to `3.4.3`.

## heroku/nodejs-function-invoker

- No changes.

## heroku/nodejs-npm

- No changes.

## heroku/nodejs-npm-engine

- No changes.

## heroku/nodejs-npm-install

### Removed

- Check and warning for `node_modules` directory is unnecessary since
  `npm ci` will remove it before installing dependencies. ([#998]heroku/buildpacks-nodejs#998))

## heroku/nodejs-pnpm-engine

- No changes.

## heroku/nodejs-pnpm-install

- No changes.

## heroku/nodejs-yarn

- No changes.
heroku-linguist bot added a commit to heroku/cnb-builder-images that referenced this pull request Jan 10, 2025
## heroku/nodejs

### Changed

- Updated `heroku/nodejs-corepack` to `3.4.3`.
- Updated `heroku/nodejs-engine` to `3.4.3`.
- Updated `heroku/nodejs-npm-engine` to `3.4.3`.
- Updated `heroku/nodejs-npm-install` to `3.4.3`.
- Updated `heroku/nodejs-pnpm-engine` to `3.4.3`.
- Updated `heroku/nodejs-pnpm-install` to `3.4.3`.
- Updated `heroku/nodejs-yarn` to `3.4.3`.

## heroku/nodejs-corepack

- No changes.

## heroku/nodejs-engine

- No changes.

## heroku/nodejs-function

### Changed

- Updated `heroku/nodejs-engine` to `3.4.3`.
- Updated `heroku/nodejs-function-invoker` to `3.4.3`.
- Updated `heroku/nodejs-npm` to `3.4.3`.

## heroku/nodejs-function-invoker

- No changes.

## heroku/nodejs-npm

- No changes.

## heroku/nodejs-npm-engine

- No changes.

## heroku/nodejs-npm-install

### Removed

- Check and warning for `node_modules` directory is unnecessary since
  `npm ci` will remove it before installing dependencies. ([#998]heroku/buildpacks-nodejs#998))

## heroku/nodejs-pnpm-engine

- No changes.

## heroku/nodejs-pnpm-install

- No changes.

## heroku/nodejs-yarn

- No changes.

Co-authored-by: heroku-linguist[bot] <136119646+heroku-linguist[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants