Socket
Socket
Sign inDemoInstall

@faststore/cli

Package Overview
Dependencies
Maintainers
10
Versions
145
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@faststore/cli - npm Package Compare versions

Comparing version 1.12.27 to 1.12.28

9

CHANGELOG.md

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

## [1.12.28](https://github.com/vtex/faststore/compare/v1.12.27...v1.12.28) (2022-11-09)
### Features
* adds start command to serve stores ([#1511](https://github.com/vtex/faststore/issues/1511)) ([9ef30b5](https://github.com/vtex/faststore/commit/9ef30b5e83c3518240d65235c4f84394ab0fc4cd))
## [1.12.27](https://github.com/vtex/faststore/compare/v1.12.26...v1.12.27) (2022-11-09)

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

3

dist/commands/start.d.ts

@@ -0,4 +1,5 @@

/// <reference types="node" />
import { Command } from '@oclif/core';
export default class Start extends Command {
run(): Promise<void>;
run(): Promise<import("child_process").ChildProcess>;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const core_1 = require("@oclif/core");
const child_process_1 = require("child_process");
const fs_extra_1 = require("fs-extra");
const directory_1 = require("../utils/directory");
class Start extends core_1.Command {
async run() {
console.log('running start command');
if (!(0, fs_extra_1.existsSync)(directory_1.tmpDir)) {
throw Error('The ".faststore" directory could not be found. If you are trying to serve your store, run "faststore build" first.');
}
return (0, child_process_1.spawn)(`yarn serve`, {
shell: true,
cwd: directory_1.tmpDir,
stdio: 'inherit',
});
}

@@ -8,0 +18,0 @@ }

{
"name": "@faststore/cli",
"version": "1.12.27",
"version": "1.12.28",
"description": "FastStore CLI",

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

"types": "dist/index.d.ts",
"gitHead": "706e7cd0212de256f715cc301f94b4f59dccd377"
"gitHead": "40fe63fe1e2e5164a46f515fcc49afc0452927a4"
}

Sorry, the diff of this file is not supported yet

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