Socket
Socket
Sign inDemoInstall

@faststore/cli

Package Overview
Dependencies
Maintainers
10
Versions
124
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.12-alpha.0 to 2.0.20-alpha.0

9

CHANGELOG.md

@@ -6,2 +6,11 @@ # Change Log

## [2.0.20-alpha.0](https://github.com/vtex/faststore/compare/v2.0.19-alpha.0...v2.0.20-alpha.0) (2022-12-19)
### Bug Fixes
* cli copy theme ([#1560](https://github.com/vtex/faststore/issues/1560)) ([9f16796](https://github.com/vtex/faststore/commit/9f167967a9a48adb7912a74a131fda22dd9715e8))
## [2.0.12-alpha.0](https://github.com/vtex/faststore/compare/v2.0.11-alpha.0...v2.0.12-alpha.0) (2022-12-13)

@@ -8,0 +17,0 @@

24

dist/utils/generate.js

@@ -50,8 +50,22 @@ "use strict";

const storeConfig = await Promise.resolve().then(() => tslib_1.__importStar(require(directory_1.userStoreConfigFileDir)));
try {
(0, fs_extra_1.copyFileSync)(`${directory_1.userThemesFileDir}/${storeConfig.theme}.scss`, directory_1.tmpThemesCustomizationsFileDir);
console.log(`${chalk_1.default.green('success')} - Custom styles copied`);
if (storeConfig.theme) {
const customTheme = `${directory_1.userThemesFileDir}/${storeConfig.theme}.scss`;
if ((0, fs_extra_1.existsSync)(customTheme)) {
try {
(0, fs_extra_1.copyFileSync)(customTheme, directory_1.tmpThemesCustomizationsFileDir);
console.log(`${chalk_1.default.green('success')} - ${storeConfig.theme} theme has been applied`);
}
catch (err) {
console.error(`${chalk_1.default.red('error')} - ${err}`);
}
}
else {
// TODO: add link to our doc about creating a custom theme on faststore evergreen
console.info(`${chalk_1.default.blue('info')} - The ${storeConfig.theme} theme was added to the config file but the ${storeConfig.theme}.scss file does not exist in the themes folder`);
}
}
catch (err) {
console.error(`${chalk_1.default.red('error')} - ${err}`);
else if ((0, fs_extra_1.existsSync)(directory_1.userThemesFileDir) &&
(0, fs_extra_1.readdirSync)(directory_1.userThemesFileDir).length > 0) {
// TODO: add link to our doc about creating a custom theme on faststore evergreen
console.info(`${chalk_1.default.blue('info')} - The theme needs to be added to the config file to be applied`);
}

@@ -58,0 +72,0 @@ }

{
"name": "@faststore/cli",
"version": "2.0.12-alpha.0",
"version": "2.0.20-alpha.0",
"description": "FastStore CLI",

@@ -71,3 +71,3 @@ "author": "Emerson Laurentino @emersonlaurentino",

"types": "dist/index.d.ts",
"gitHead": "46332a271c557f6e7f80c79a589bc97393240908"
"gitHead": "7d86ce0afcdfdf61519989279a352b464a5215d7"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc