Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

monorepo-react-template

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

monorepo-react-template - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

10

config/custom.webpack.config.js

@@ -6,7 +6,7 @@ const fs = require('fs')

// WebPack.config File
const fileConfig = '../node_modules/react-scripts/config/webpack.config.js'
const fileConfig = path.resolve(__dirname, '../node_modules/react-scripts/config/webpack.config.js');
if (fs.existsSync(fileConfig)) {
const configPath = path.resolve(__dirname, './package.json');
const configPath = path.resolve(__dirname, '../package.json');
const json = JSON.parse(fs.readFileSync(configPath));

@@ -29,4 +29,6 @@

const result = file
.replace(/externals\:.*?entry\:\s*paths.appIndexJs,/, 'entry: paths.appIndexJs,')
.replace(/entry\:\s*paths.appIndexJs,/, CodeAsString);
.replace('static/js/[name].[contenthash:8].js', 'static/js/[name].js')
.replace('static/css/[name].[contenthash:8].css', 'static/css/[name].css')
.replace(/externals\:.*?entry\:\s*paths.appIndexJs,/, 'entry: paths.appIndexJs,')
.replace(/entry\:\s*paths.appIndexJs,/, CodeAsString);

@@ -33,0 +35,0 @@ fs.writeFile(fileConfig, result, function (err) {

2

package.json

@@ -5,3 +5,3 @@ {

"name": "monorepo-react-template",
"version": "0.0.8",
"version": "0.0.9",
"description": "This repository is a Monorepo sample based on Lerna that creates a modern build system for managing and publishing multiple packages.",

@@ -8,0 +8,0 @@ "repository": {

@@ -28,4 +28,8 @@ const fs = require('fs')

const result = file
.replace(/externals\:.*?entry\:\s*paths.appIndexJs,/, 'entry: paths.appIndexJs,')
.replace(/entry\:\s*paths.appIndexJs,/, CodeAsString);
.replace('static/js/[name].[contenthash:8].js', 'static/js/[name].js')
.replace('static/css/[name].[contenthash:8].css', 'static/css/[name].css')
.replace(/externals\:.*?entry\:\s*paths.appIndexJs,/, 'entry: paths.appIndexJs,')
.replace(/entry\:\s*paths.appIndexJs,/, CodeAsString);

@@ -32,0 +36,0 @@ fs.writeFile(fileConfig, result, function (err) {

@@ -23,5 +23,4 @@ {

},
"include": [
"src"
]
"include": ["src/**/*.ts"],
"exclude": ["node_modules"]
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc