Skip to content

chore: modernize package.json and add utility scripts#1023

Merged
JuanPabloDiaz merged 1 commit intotech-conferences:mainfrom
JuanPabloDiaz:feat/package-cleanup-scripts
Jul 9, 2025
Merged

chore: modernize package.json and add utility scripts#1023
JuanPabloDiaz merged 1 commit intotech-conferences:mainfrom
JuanPabloDiaz:feat/package-cleanup-scripts

Conversation

@JuanPabloDiaz
Copy link
Contributor

Package.json Modernization & Utility Scripts

This PR modernizes the package.json by removing deprecated dependencies and adding useful utility scripts.

  • Add description, license, and repository metadata
  • Remove deprecated dependencies: babel-core, babel-preset-env, tslint
  • Add new scripts: preview (serve built files), clean (cleanup build artifacts)
  • Update start script for better compatibility (one of my previous PRs broke it)
  • Improve project metadata for better package management

Breaking down #1021


This pull request introduces several updates to the package.json file, adds a new preview.js script to enable previewing built files, and modifies the start.js script to use updated WebpackDevServer methods for starting and stopping the development server. The changes improve functionality, remove deprecated dependencies, and enhance maintainability.

Updates to package.json:

  • Added description and license fields to provide metadata about the project.
  • Added new scripts, including preview for serving built files and clean for removing build artifacts and dependencies.
  • Removed deprecated dependencies such as babel-core, @types/react-datepicker, and tslint. Updated the typescript dependency to version 5.5.4. [1] [2] [3]

Addition of preview.js script:

  • Introduced a new script (scripts/preview.js) that uses Express to serve static files from the build directory and handles client-side routing. Includes graceful shutdown handling for the preview server.

Modifications to start.js:

  • Updated WebpackDevServer instantiation to use the start() and stop() methods instead of the deprecated startCallback() and close() methods, ensuring compatibility with newer versions of WebpackDevServer. [1] [2]

- Add description, license, and repository metadata
- Remove deprecated dependencies: babel-core, babel-preset-env, tslint
- Add new scripts: preview (serve built files), clean (cleanup build artifacts)
- Update start script for better compatibility
- Improve project metadata for better package management
@JuanPabloDiaz JuanPabloDiaz merged commit 0242eaf into tech-conferences:main Jul 9, 2025
4 checks passed
@JuanPabloDiaz JuanPabloDiaz deleted the feat/package-cleanup-scripts branch July 9, 2025 01:00
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