@faststore/cli
Advanced tools
Comparing version 3.0.1 to 3.0.3
@@ -0,5 +1,5 @@ | ||
export declare const tmpFolderName = ".faststore"; | ||
export declare const getRoot: () => string; | ||
export declare const userDir: string; | ||
export declare const faststoreDir: string; | ||
export declare const tmpFolderName = ".faststore"; | ||
export declare const tmpDir: string; | ||
@@ -6,0 +6,0 @@ export declare const coreFolderName = "core"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.tmpCmsWebhookUrlsFileDir = exports.cmsWebhookUrlsFileName = exports.tmpNodeModulesDir = exports.userNodeModulesDir = exports.tmpStoreConfigFileDir = exports.userStoreConfigFileDir = exports.configFileName = exports.userCMSDir = exports.coreCMSDir = exports.tmpCMSDir = exports.cmsFolderName = exports.tmpThemesCustomizationsFileDir = exports.userThemesFileDir = exports.tmpCustomizationsSrcDir = exports.tmpCustomizationsDir = exports.customizationsFolderName = exports.userSrcDir = exports.srcFolderName = exports.coreDir = exports.coreFolderName = exports.tmpDir = exports.tmpFolderName = exports.faststoreDir = exports.userDir = exports.getRoot = void 0; | ||
exports.tmpCmsWebhookUrlsFileDir = exports.cmsWebhookUrlsFileName = exports.tmpNodeModulesDir = exports.userNodeModulesDir = exports.tmpStoreConfigFileDir = exports.userStoreConfigFileDir = exports.configFileName = exports.userCMSDir = exports.coreCMSDir = exports.tmpCMSDir = exports.cmsFolderName = exports.tmpThemesCustomizationsFileDir = exports.userThemesFileDir = exports.tmpCustomizationsSrcDir = exports.tmpCustomizationsDir = exports.customizationsFolderName = exports.userSrcDir = exports.srcFolderName = exports.coreDir = exports.coreFolderName = exports.tmpDir = exports.faststoreDir = exports.userDir = exports.getRoot = exports.tmpFolderName = void 0; | ||
const tslib_1 = require("tslib"); | ||
const path_1 = tslib_1.__importDefault(require("path")); | ||
// build folder | ||
exports.tmpFolderName = '.faststore'; | ||
// always returns the root of the project, AKA the starter root or @faststore/core dir root when running in the monorepo | ||
const getRoot = () => { | ||
@@ -10,2 +13,7 @@ if (process.env.OCLIF_COMPILATION) { | ||
} | ||
if (process.cwd().endsWith(exports.tmpFolderName)) { | ||
// if the current working directory is the build folder (tmp folder), return the starter root | ||
// this makes sure the semantics of the starter root are consistent with the directories declared below | ||
return path_1.default.join(process.cwd(), '..'); | ||
} | ||
return process.cwd(); | ||
@@ -18,4 +26,3 @@ }; | ||
exports.faststoreDir = path_1.default.join(exports.userDir, 'node_modules', '@faststore'); | ||
// build folder | ||
exports.tmpFolderName = '.faststore'; | ||
// build folder dir | ||
exports.tmpDir = path_1.default.join(exports.userDir, exports.tmpFolderName); | ||
@@ -22,0 +29,0 @@ // node_modules folder for @faststore/core |
@@ -1,1 +0,1 @@ | ||
{"version":"3.0.1","commands":{"build":{"id":"build","strict":true,"pluginName":"@faststore/cli","pluginAlias":"@faststore/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"cms-sync":{"id":"cms-sync","strict":true,"pluginName":"@faststore/cli","pluginAlias":"@faststore/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"dev":{"id":"dev","strict":true,"pluginName":"@faststore/cli","pluginAlias":"@faststore/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"generate-graphql":{"id":"generate-graphql","strict":true,"pluginName":"@faststore/cli","pluginAlias":"@faststore/cli","pluginType":"core","aliases":[],"flags":{"debug":{"name":"debug","type":"boolean","char":"d","allowNo":false},"core":{"name":"core","type":"boolean","char":"c","hidden":true,"allowNo":false}},"args":[]},"start":{"id":"start","strict":true,"pluginName":"@faststore/cli","pluginAlias":"@faststore/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"test":{"id":"test","strict":true,"pluginName":"@faststore/cli","pluginAlias":"@faststore/cli","pluginType":"core","aliases":[],"flags":{},"args":[]}}} | ||
{"version":"3.0.3","commands":{"build":{"id":"build","strict":true,"pluginName":"@faststore/cli","pluginAlias":"@faststore/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"cms-sync":{"id":"cms-sync","strict":true,"pluginName":"@faststore/cli","pluginAlias":"@faststore/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"dev":{"id":"dev","strict":true,"pluginName":"@faststore/cli","pluginAlias":"@faststore/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"generate-graphql":{"id":"generate-graphql","strict":true,"pluginName":"@faststore/cli","pluginAlias":"@faststore/cli","pluginType":"core","aliases":[],"flags":{"debug":{"name":"debug","type":"boolean","char":"d","allowNo":false},"core":{"name":"core","type":"boolean","char":"c","hidden":true,"allowNo":false}},"args":[]},"start":{"id":"start","strict":true,"pluginName":"@faststore/cli","pluginAlias":"@faststore/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"test":{"id":"test","strict":true,"pluginName":"@faststore/cli","pluginAlias":"@faststore/cli","pluginType":"core","aliases":[],"flags":{},"args":[]}}} |
{ | ||
"name": "@faststore/cli", | ||
"version": "3.0.1", | ||
"version": "3.0.3", | ||
"description": "FastStore CLI", | ||
@@ -29,4 +29,4 @@ "author": "Emerson Laurentino @emersonlaurentino", | ||
"devDependencies": { | ||
"@faststore/eslint-config": "^3.0.1", | ||
"@faststore/shared": "^3.0.1", | ||
"@faststore/eslint-config": "^3.0.3", | ||
"@faststore/shared": "^3.0.3", | ||
"@types/chai": "^4", | ||
@@ -69,3 +69,3 @@ "@types/fs-extra": "^9.0.13", | ||
"types": "dist/index.d.ts", | ||
"gitHead": "b4ce87c7fbac57cb20d34acb44806bb48c22f864" | ||
"gitHead": "bb27ad0d2b285ee09d480d077e47fb6c9d8339a2" | ||
} |
@@ -17,3 +17,3 @@ # FastStore CLI | ||
$ faststore (--version) | ||
@faststore/cli/3.0.1 linux-x64 node-v18.19.0 | ||
@faststore/cli/3.0.3 linux-x64 node-v18.19.0 | ||
$ faststore --help [COMMAND] | ||
@@ -44,3 +44,3 @@ USAGE | ||
_See code: [dist/commands/build.ts](https://github.com/vtex/faststore/blob/v3.0.1/dist/commands/build.ts)_ | ||
_See code: [dist/commands/build.ts](https://github.com/vtex/faststore/blob/v3.0.3/dist/commands/build.ts)_ | ||
@@ -54,3 +54,3 @@ ## `faststore cms-sync` | ||
_See code: [dist/commands/cms-sync.ts](https://github.com/vtex/faststore/blob/v3.0.1/dist/commands/cms-sync.ts)_ | ||
_See code: [dist/commands/cms-sync.ts](https://github.com/vtex/faststore/blob/v3.0.3/dist/commands/cms-sync.ts)_ | ||
@@ -64,3 +64,3 @@ ## `faststore dev` | ||
_See code: [dist/commands/dev.ts](https://github.com/vtex/faststore/blob/v3.0.1/dist/commands/dev.ts)_ | ||
_See code: [dist/commands/dev.ts](https://github.com/vtex/faststore/blob/v3.0.3/dist/commands/dev.ts)_ | ||
@@ -77,3 +77,3 @@ ## `faststore generate-graphql` | ||
_See code: [dist/commands/generate-graphql.ts](https://github.com/vtex/faststore/blob/v3.0.1/dist/commands/generate-graphql.ts)_ | ||
_See code: [dist/commands/generate-graphql.ts](https://github.com/vtex/faststore/blob/v3.0.3/dist/commands/generate-graphql.ts)_ | ||
@@ -107,3 +107,3 @@ ## `faststore help [COMMAND]` | ||
_See code: [dist/commands/start.ts](https://github.com/vtex/faststore/blob/v3.0.1/dist/commands/start.ts)_ | ||
_See code: [dist/commands/start.ts](https://github.com/vtex/faststore/blob/v3.0.3/dist/commands/start.ts)_ | ||
@@ -117,3 +117,3 @@ ## `faststore test` | ||
_See code: [dist/commands/test.ts](https://github.com/vtex/faststore/blob/v3.0.1/dist/commands/test.ts)_ | ||
_See code: [dist/commands/test.ts](https://github.com/vtex/faststore/blob/v3.0.3/dist/commands/test.ts)_ | ||
<!-- commandsstop --> |
Sorry, the diff of this file is not supported yet
53511
677