@faststore/cli
Advanced tools
Comparing version 3.0.7 to 3.0.13
@@ -9,3 +9,4 @@ "use strict"; | ||
const chalk_1 = tslib_1.__importDefault(require("chalk")); | ||
const ignorePaths = ['node_modules', 'cypress.config.ts']; | ||
// package.json is copied manually after filtering its content | ||
const ignorePaths = ['package.json', 'node_modules', 'cypress.config.ts']; | ||
function createTmpFolder() { | ||
@@ -23,2 +24,16 @@ try { | ||
} | ||
/** | ||
* Prevents imports from @faststore/core from randomly conflicting | ||
* where sometimes the package.json from the .faststore folder | ||
* took precedence over @faststore/core's package.json. | ||
*/ | ||
function filterAndCopyPackageJson() { | ||
const corePackageJsonPath = path_1.default.join(directory_1.coreDir, 'package.json'); | ||
const corePackageJsonFile = (0, fs_extra_1.readFileSync)(corePackageJsonPath, 'utf8'); | ||
let { exports: _, ...filteredFileContent } = JSON.parse(corePackageJsonFile); | ||
filteredFileContent.name = 'dot-faststore'; | ||
(0, fs_extra_1.writeJsonSync)(path_1.default.join(directory_1.tmpDir, 'package.json'), filteredFileContent, { | ||
spaces: 2, | ||
}); | ||
} | ||
function copyCoreFiles() { | ||
@@ -35,2 +50,3 @@ try { | ||
}); | ||
filterAndCopyPackageJson(); | ||
console.log(`${chalk_1.default.green('success')} - Core files copied`); | ||
@@ -37,0 +53,0 @@ } |
@@ -1,1 +0,1 @@ | ||
{"version":"3.0.7","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.13","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.7", | ||
"version": "3.0.13", | ||
"description": "FastStore CLI", | ||
@@ -68,3 +68,3 @@ "author": "Emerson Laurentino @emersonlaurentino", | ||
"types": "dist/index.d.ts", | ||
"gitHead": "1672bc9ba921b70b5f9acfa2845c8f566d29be16" | ||
"gitHead": "9ccaaa8c2e9e6b2c9f3c82ac3d52405e51ddd6a0" | ||
} |
@@ -33,3 +33,3 @@ <p align="center"> | ||
$ faststore (--version) | ||
@faststore/cli/3.0.7 linux-x64 node-v18.19.0 | ||
@faststore/cli/3.0.13 linux-x64 node-v18.19.1 | ||
$ faststore --help [COMMAND] | ||
@@ -60,3 +60,3 @@ USAGE | ||
_See code: [dist/commands/build.ts](https://github.com/vtex/faststore/blob/v3.0.7/dist/commands/build.ts)_ | ||
_See code: [dist/commands/build.ts](https://github.com/vtex/faststore/blob/v3.0.13/dist/commands/build.ts)_ | ||
@@ -70,3 +70,3 @@ ## `faststore cms-sync` | ||
_See code: [dist/commands/cms-sync.ts](https://github.com/vtex/faststore/blob/v3.0.7/dist/commands/cms-sync.ts)_ | ||
_See code: [dist/commands/cms-sync.ts](https://github.com/vtex/faststore/blob/v3.0.13/dist/commands/cms-sync.ts)_ | ||
@@ -80,3 +80,3 @@ ## `faststore dev` | ||
_See code: [dist/commands/dev.ts](https://github.com/vtex/faststore/blob/v3.0.7/dist/commands/dev.ts)_ | ||
_See code: [dist/commands/dev.ts](https://github.com/vtex/faststore/blob/v3.0.13/dist/commands/dev.ts)_ | ||
@@ -93,3 +93,3 @@ ## `faststore generate-graphql` | ||
_See code: [dist/commands/generate-graphql.ts](https://github.com/vtex/faststore/blob/v3.0.7/dist/commands/generate-graphql.ts)_ | ||
_See code: [dist/commands/generate-graphql.ts](https://github.com/vtex/faststore/blob/v3.0.13/dist/commands/generate-graphql.ts)_ | ||
@@ -123,3 +123,3 @@ ## `faststore help [COMMAND]` | ||
_See code: [dist/commands/start.ts](https://github.com/vtex/faststore/blob/v3.0.7/dist/commands/start.ts)_ | ||
_See code: [dist/commands/start.ts](https://github.com/vtex/faststore/blob/v3.0.13/dist/commands/start.ts)_ | ||
@@ -133,3 +133,3 @@ ## `faststore test` | ||
_See code: [dist/commands/test.ts](https://github.com/vtex/faststore/blob/v3.0.7/dist/commands/test.ts)_ | ||
_See code: [dist/commands/test.ts](https://github.com/vtex/faststore/blob/v3.0.13/dist/commands/test.ts)_ | ||
<!-- commandsstop --> |
Sorry, the diff of this file is not supported yet
55344
693