![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@itrocks/prepare-module
Advanced tools
Prepare your front-end module with @itrocks dependencies for npm publishing
Prepare your front-end module with dependencies for npm publishing.
src
subfolder,.js
and .d.ts
files into src
,import ... from '@itrocks/something'
without TypeScript errors.Install @itrocks/prepare-module
as a development dependency:
npm i @itrocks/prepare-module --save-dev
In your project, install the required dependency and import the necessary front-end script with a relative path:
import { SortedArrayBy } from '../node_modules/@itrocks/sorted-array/sorted-array.js'
Then, add the following to your packages.json file:
{
"scripts": {
"prepare": "prepare-module"
}
}
When your publish your package using npm publish
, prepare-module
will handle the following tasks:
js
script and .d.ts
files from src
to your project root directory,node_modules
, as shown below.If your project is published under the same namespace as the dependency:
import { SortedArrayBy } from '../sorted-array/sorted-array.js'
If published under a different namespace:
import { SortedArrayBy } from '../../@itrocks/sorted-array/sorted-array.js'
If published without a namespace:
import { SortedArrayBy } from '../@itrocks/sorted-array/sorted-array.js'
When coding with TypeScript, avoid deploying files in src/*.js
:
the scripts in your project root directory are the final ones to be used.
See a complete use case in the @itrocks/build library.
FAQs
Prepare your front-end module with @itrocks dependencies for npm publishing
The npm package @itrocks/prepare-module receives a total of 10 weekly downloads. As such, @itrocks/prepare-module popularity was classified as not popular.
We found that @itrocks/prepare-module demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.