Add remove/restore scripts for nested .git folder

The /src/_locales/.github folder causes `web-ext run` to fail when running the npm dev script. This folder removal isn't tracked or surfaced during local dev work when working from the root directory.
This commit is contained in:
Maxx Crawford 2022-10-20 09:29:26 -05:00
parent a7aaacd82c
commit 035450ae96
No known key found for this signature in database
GPG key ID: 71DBD3273B65FEF9

View file

@ -36,13 +36,15 @@
"url": "git+https://github.com/mozilla/multi-account-containers.git"
},
"scripts": {
"dev": "web-ext run -s src/",
"dev": "npm run remove-locales-github && web-ext run -s src/",
"lint": "npm-run-all lint:*",
"lint:addon": "./bin/addons-linter.sh",
"lint:css": "stylelint src/css/*.css",
"lint:html": "htmllint *.html",
"lint:js": "eslint .",
"package": "rm -rf src/web-ext-artifacts && npm run build && mv src/web-ext-artifacts/firefox_multi-account_containers-*.zip addon.xpi",
"restore-locales-github": "cd src/_locales && git restore .github/",
"remove-locales-github": "rm -rf src/_locales/.github",
"test": "npm run lint && npm run coverage",
"test:once": "mocha test/**/*.test.js",
"test:watch": "npm run test:once -- --watch",