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

linc-build-ssr

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

linc-build-ssr - npm Package Compare versions

Comparing version 1.3.5 to 1.4.0

2

package.json
{
"name": "linc-build-ssr",
"version": "1.3.5",
"version": "1.4.0",
"main": "src/index.js",

@@ -5,0 +5,0 @@ "repository": {},

@@ -1,19 +0,29 @@

const path = require('path');
const fse = require('fs-extra');
const path = require('path')
const fse = require('fs-extra')
/**
* Build a site based on the profile provided in package.json.
* @param config
* @param packageJson
* @param callback
*/
const build = (config, packageJson, callback) => {
const lincConfig = packageJson.linc || {};
const profile = lincConfig.buildProfile || 'linc-profile-generic-react-redux-routerv3';
const errorHtmls = lincConfig.errorDir || 'errors';
const errorSrc = path.resolve(process.cwd(), errorHtmls);
if (fse.pathExistsSync(errorSrc) ){
const errorDest = path.resolve(process.cwd(), 'dist', 'static', '_errors');
fse.ensureDir(errorDest);
fse.copySync(errorSrc, errorDest);
}
console.log(`Using build profile: ${profile}`);
const builder = require(path.resolve(process.cwd(), `node_modules/${profile}`));
builder(callback);
const lincConfig = packageJson.linc || {}
const profile =
lincConfig.buildProfile || 'linc-profile-generic-react-redux-routerv3'
const errorHtmls = lincConfig.errorDir || 'errors'
const errorSrc = path.resolve(process.cwd(), errorHtmls)
if (fse.pathExistsSync(errorSrc)) {
const errorDest = path.resolve(process.cwd(), 'dist', 'static', '_errors')
fse.ensureDir(errorDest)
fse.copySync(errorSrc, errorDest)
}
console.log(`Using build profile: ${profile}`)
const builder = require(path.resolve(
process.cwd(),
`node_modules/${profile}`
))
return builder({ stdin: process.stdin, stdout: process.stdout }, callback)
}
module.exports = build;
module.exports = build
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