diff --git a/scripts/import.js b/scripts/import.js index f0662a7..a82f72d 100644 --- a/scripts/import.js +++ b/scripts/import.js @@ -39,7 +39,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); var simple_git_1 = require("simple-git"); var fs = require("fs"); var path = require("path"); -var remoteUrl = 'https://github.com/Amsterdam/development-standards'; +var remoteUrl = 'git@github.com:Amsterdam/development-standards.git'; var localDir = 'docs'; var cloneDir = path.join(localDir, 'latest'); function cloneAndCheckout(repoUrl_1) { @@ -79,7 +79,7 @@ function cloneAndCheckout(repoUrl_1) { } // Cleanup previously cloned files from development-standards repo var cleanupOldFiles = function () { - var excludeFiles = ['intro.md']; + var excludeFiles = ['intro.md', 'projects']; fs.readdirSync(localDir).forEach(function (file) { if (!excludeFiles.includes(file)) { var filePath = path.join(localDir, file); diff --git a/scripts/import.ts b/scripts/import.ts index a7c87bb..5b475fc 100644 --- a/scripts/import.ts +++ b/scripts/import.ts @@ -2,7 +2,7 @@ import { simpleGit, SimpleGit, CleanOptions } from 'simple-git'; import * as fs from 'fs'; import * as path from 'path'; -const remoteUrl = 'https://github.com/Amsterdam/development-standards'; +const remoteUrl = 'git@github.com:Amsterdam/development-standards.git'; const localDir = 'docs'; const cloneDir = path.join(localDir, 'latest'); @@ -27,7 +27,7 @@ async function cloneAndCheckout(repoUrl: string, branchName = 'main'): Promise { - const excludeFiles = ['intro.md']; + const excludeFiles = ['intro.md', 'projects']; fs.readdirSync(localDir).forEach((file) => { if (!excludeFiles.includes(file)) {