@useoptic/cli-config
Advanced tools
Comparing version 8.4.1 to 8.4.2
@@ -106,2 +106,3 @@ import { parseRule, parseIgnore, IIgnoreRunnable } from './helpers/ignore-parser'; | ||
gitignorePath: string; | ||
opticIgnorePath: string; | ||
capturesPath: string; | ||
@@ -108,0 +109,0 @@ exampleRequestsPath: string; |
@@ -36,2 +36,3 @@ "use strict"; | ||
const deprecations_1 = __importStar(require("./deprecations")); | ||
const default_ignore_rules_1 = require("./helpers/default-ignore-rules"); | ||
var deprecations_2 = require("./deprecations"); | ||
@@ -154,2 +155,3 @@ Object.defineProperty(exports, "deprecationLogger", { enumerable: true, get: function () { return deprecations_2.deprecationLogger; } }); | ||
const gitignorePath = path_1.default.join(basePath, '.gitignore'); | ||
const opticIgnorePath = path_1.default.join(basePath, 'ignore'); | ||
const specStorePath = path_1.default.join(basePath, 'api', 'specification.json'); | ||
@@ -164,2 +166,3 @@ const exampleRequestsPath = path_1.default.join(basePath, 'api', 'example-requests'); | ||
gitignorePath, | ||
opticIgnorePath, | ||
specStorePath, | ||
@@ -180,3 +183,3 @@ exampleRequestsPath, | ||
async function createFileTree(config, basePath) { | ||
const { specStorePath, configPath, gitignorePath, capturesPath, } = await getPathsRelativeToCwd(basePath); | ||
const { specStorePath, configPath, gitignorePath, opticIgnorePath, capturesPath, } = await getPathsRelativeToCwd(basePath); | ||
const files = [ | ||
@@ -190,2 +193,6 @@ { | ||
{ | ||
path: opticIgnorePath, | ||
contents: default_ignore_rules_1.defaultIgnoreFile, | ||
}, | ||
{ | ||
path: specStorePath, | ||
@@ -192,0 +199,0 @@ contents: JSON.stringify([]), |
{ | ||
"name": "@useoptic/cli-config", | ||
"version": "8.4.1", | ||
"version": "8.4.2", | ||
"scripts": { | ||
"ws:test": "echo config", | ||
"ws:test": "jest", | ||
"ws:build": "yarn run tsc -b --verbose", | ||
@@ -25,3 +25,6 @@ "ws:clean": "rm -rf build/*" | ||
"@types/find-up": "^4.0.0", | ||
"@types/js-yaml": "^3.12.1" | ||
"@types/js-yaml": "^3.12.1", | ||
"@types/jest": "^26.0.9", | ||
"jest": "^26.4.0", | ||
"ts-jest": "^26.2.0" | ||
}, | ||
@@ -28,0 +31,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
26156
16
561
5
2