Exclude temp files when copying fixtures

This commit is contained in:
Elizabeth Craig 2022-08-03 16:02:24 -07:00
Родитель 0a76a6dbc9
Коммит 9294b35534
5 изменённых файлов: 27 добавлений и 8 удалений

9
.gitignore поставляемый
Просмотреть файл

@ -1,2 +1,7 @@
**/node_modules/**
lib
node_modules/
lib/
temp/
.rush/
**/common/scripts/
.DS_Store
*.log*

Просмотреть файл

@ -1,12 +1,18 @@
docs/
lib/
node_modules/
temp/
.rush/
**/common/scripts/
yarn.lock
pnpm-lock.yml
pnpm-lock.*
package-lock.json
change
CHANGELOG.json
CHANGELOG.md
SECURITY.md
.DS_Store
*.log*

Просмотреть файл

@ -32,6 +32,7 @@
"read-yaml-file": "^2.0.0"
},
"devDependencies": {
"@types/fs-extra": "9.0.13",
"@types/git-url-parse": "9.0.1",
"@types/jest": "28.1.6",
"@types/jju": "1.4.2",

Просмотреть файл

@ -54,7 +54,7 @@ export function setupFixture(fixtureName?: string) {
// Copy and commit the fixture if requested
if (fixturePath) {
fs.copySync(fixturePath, cwd);
fs.copySync(fixturePath, cwd, { filter: (src) => !/[/\\](node_modules|temp|.rush)([/\\]|$)/.test(src) });
stageAndCommit(["."], "test", cwd);
}

Просмотреть файл

@ -611,6 +611,13 @@
resolved "https://registry.yarnpkg.com/@types/braces/-/braces-3.0.1.tgz#5a284d193cfc61abb2e5a50d36ebbc50d942a32b"
integrity sha512-+euflG6ygo4bn0JHtn4pYqcXwRtLvElQ7/nnjDu7iYG56H0+OhCd7d6Ug0IE3WcFpZozBKW2+80FUbv5QGk5AQ==
"@types/fs-extra@9.0.13":
version "9.0.13"
resolved "https://registry.yarnpkg.com/@types/fs-extra/-/fs-extra-9.0.13.tgz#7594fbae04fe7f1918ce8b3d213f74ff44ac1f45"
integrity sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==
dependencies:
"@types/node" "*"
"@types/git-url-parse@9.0.1":
version "9.0.1"
resolved "https://registry.yarnpkg.com/@types/git-url-parse/-/git-url-parse-9.0.1.tgz#1c7cc89527ca8b5afcf260ead3b0e4e373c43938"
@ -1346,10 +1353,10 @@ get-stream@^6.0.0:
resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7"
integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==
gh-pages@4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/gh-pages/-/gh-pages-4.0.0.tgz#bd7447bab7eef008f677ac8cc4f6049ab978f4a6"
integrity sha512-p8S0T3aGJc68MtwOcZusul5qPSNZCalap3NWbhRUZYu1YOdp+EjZ+4kPmRM8h3NNRdqw00yuevRjlkuSzCn7iQ==
gh-pages@3.2.3:
version "3.2.3"
resolved "https://registry.yarnpkg.com/gh-pages/-/gh-pages-3.2.3.tgz#897e5f15e111f42af57d21d430b83e5cdf29472c"
integrity sha512-jA1PbapQ1jqzacECfjUaO9gV8uBgU6XNMV0oXLtfCX3haGLe5Atq8BxlrADhbD6/UdG9j6tZLWAkAybndOXTJg==
dependencies:
async "^2.6.1"
commander "^2.18.0"