-
Notifications
You must be signed in to change notification settings - Fork 0
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 broken web deploy #1216
Fix broken web deploy #1216
Conversation
Updated nixpkgs to the latest revision to incorporate new changes. This helps ensure the environment is up-to-date and consistent with the latest improvements and fixes.
Update .nvmrc to specify Node.js version 23.6. Ensures consistency with the project's required environment setup.
Add missing entries and restructure ignore files for clarity and consistency across the repository. Removed redundant patterns and adjusted entries to support better local and CI environments.
Removed deprecated warnings for dependencies in pnpm-lock.yaml. This cleans up the output related to outdated messages for better clarity and maintainability. No changes were made to the actual dependencies or functionality.
Updated react-dom dependency specification in package.json and related files to use caret range (^19.0.0). This ensures compatibility with future minor and patch releases, improving dependency handling.
Includes @tailwindcss/language-server as a dev dependency. Updates .idea configuration to use the Tailwind CSS language server for enhanced development experience. Also notes deprecated packages and improves clarity in the pnpm-lock.yaml file.
…ations Set `virtual-store-dir` to `node_modules/.pnpm` in `.npmrc` for better default compatibility. Removed deprecated warnings from `pnpm-lock.yaml` to clean up outdated metadata and ensure smoother dependency management.
Refactored the Storybook configuration to use an async function for better flexibility and modernization. Updated the `getAbsolutePath` function to leverage `import.meta.resolve` for resolving module paths. Simplified the default export with the new `defineConfig` wrapper.
Removed custom path resolution logic for Storybook addons and framework, relying directly on package names. This simplifies the configuration by eliminating unnecessary complexity and aligns with standard practices.
|
.npmrc
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New, updated, and removed dependencies detected. Learn more about Socket for GitHub ↗︎
|
Updated Dockerfile to use Node.js 23.6-alpine3.21 for better compatibility and performance. Removed deprecated `--experimental-strip-types` flag from NODE_OPTIONS and CMD to align with the latest Node.js features.
@@ -10,7 +10,7 @@ RUN apk add --no-cache jq | |||
RUN jq -r .packageManager package.json > pnpm-version.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quote this to prevent word splitting.
suddenlygiovanni.dev/apps/web/Dockerfile
Line 25 in 2d59ec9
RUN corepack enable \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝 [hadolint] <DL3059> reported by reviewdog 🐶
Multiple consecutive RUN
instructions. Consider consolidation.
suddenlygiovanni.dev/apps/web/Dockerfile
Line 42 in 2d59ec9
RUN pnpm dlx turbo prune --docker "@suddenlygiovanni/web" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
suddenlygiovanni.dev/apps/web/Dockerfile
Line 60 in 2d59ec9
RUN cd ./apps/web |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use WORKDIR to switch to a directory
suddenlygiovanni.dev/apps/web/Dockerfile
Line 60 in 2d59ec9
RUN cd ./apps/web |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝 [hadolint] <DL3059> reported by reviewdog 🐶
Multiple consecutive RUN
instructions. Consider consolidation.
suddenlygiovanni.dev/apps/web/Dockerfile
Line 68 in 2d59ec9
RUN pnpm --filter @suddenlygiovanni/web --prod --no-optional deploy pruned |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 3 out of 12 changed files in this pull request and generated no comments.
Files not reviewed (9)
- .dockerignore: Language not supported
- .idea/tailwindcss.xml: Language not supported
- .npmrc: Language not supported
- .nvmrc: Language not supported
- apps/web/.development.env: Language not supported
- apps/web/.dockerignore: Language not supported
- apps/web/Dockerfile: Language not supported
- package.json: Language not supported
- pnpm-lock.yaml: File too large
Comments suppressed due to low confidence (1)
packages/ui/.storybook/main.ts:3
- Ensure that the new async configuration function is covered by tests to verify its correctness.
async function defineConfig(config: StorybookConfig): Promise<StorybookConfig> {
Updated the Storybook configuration function from async to a synchronous arrow function for improved simplicity and readability. This change has no impact on functionality but streamlines the code structure.
Updated vite peer dependency ranges across multiple packages to introduce broader version compatibility. Ensures support for `vite` versions 4.x, 5.x, and 6.x where applicable, aligning dependencies for better project consistency.
Updated several dependencies to their latest versions, including bumping `@types/react` from 19.0.2 to 19.0.8. Adjusted peer dependency and lock file consistency to reflect these updates and maintain compatibility.
Simplifies the configuration by clearing the allowedVersions object under peerDependencyRules. This change aligns dependencies without imposing specific version constraints for @react-router/dev.
6bdfaf3
to
4a478a5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[misspell] reported by reviewdog 🐶
"optimise" is a misspelling of "optimize"
suddenlygiovanni.dev/pnpm-lock.yaml
Line 472 in 4a478a5
'@babel/[email protected]': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[misspell] reported by reviewdog 🐶
"optimise" is a misspelling of "optimize"
suddenlygiovanni.dev/pnpm-lock.yaml
Line 5849 in 4a478a5
'@babel/helper-optimise-call-expression': 7.25.9 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[misspell] reported by reviewdog 🐶
"optimise" is a misspelling of "optimize"
suddenlygiovanni.dev/pnpm-lock.yaml
Line 5880 in 4a478a5
'@babel/[email protected]': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[misspell] reported by reviewdog 🐶
"optimise" is a misspelling of "optimize"
suddenlygiovanni.dev/pnpm-lock.yaml
Line 5890 in 4a478a5
'@babel/helper-optimise-call-expression': 7.25.9 |
Description
This pull request simplifies and modernizes multiple configurations and dependencies in the project:
Storybook Updates:
import.meta.resolve
for path resolution and adopted thedefineConfig
wrapper.Dependency Updates:
react-dom
dependency inpackage.json
to use caret range for better compatibility.virtual-store-dir
in.npmrc
for improved default compatibility with pnpm. Removed deprecated warnings frompnpm-lock.yaml
for cleaner metadata.Enhancements:
Chore Items:
.dockerignore
and.gitignore
rules for improved clarity and environment support..nvmrc
to specify Node.js version 23.6 for consistency.This pull request includes various updates and improvements across multiple files in the project. The changes mainly focus on updating dependencies, modifying configuration files, and cleaning up the codebase. Below are the most important changes:
Dependency Updates:
react-dom
dependency to use a caret version instead of a fixed version inpackage.json
andpnpm-lock.yaml
files. [1] [2] [3] [4] [5] [6] [7] [8] [9]@tailwindcss/language-server
todevDependencies
inpackage.json
andpnpm-lock.yaml
. [1] [2]Configuration Changes:
.nvmrc
to23.6
and modified the base image inDockerfile
to usenode:23.6-alpine3.21
. [1] [2].dockerignore
to include additional directories and files such as.direnv
and.git/
. [1] [2] [3] [4].npmrc
to change thevirtual-store-dir
tonode_modules/.pnpm
.Codebase Simplification:
main.ts
configuration file in thepackages/ui/.storybook
directory by removing unnecessary functions and using default paths for Storybook addons. [1] [2]Environment Configuration:
NODE_OPTIONS
inapps/web/.development.env
to remove deprecated options.These changes collectively aim to keep the project dependencies up-to-date, enhance configuration management, and simplify the codebase for better maintainability.