monorepo-react-template
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -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) { |
@@ -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"] | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1577383
26419