Skip to content

Commit

Permalink
fix: setup temp dir for manifest generation to avoid unexpected dist …
Browse files Browse the repository at this point in the history
…artifacts.
  • Loading branch information
cjpillsbury committed May 3, 2024
1 parent 239c67e commit bf3b5a4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ sandbox/*
## testing
/coverage/
*.sublime-*

## project-specific temp
tmp-manifest/
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@
],
"scripts": {
"format": "prettier --write .",
"clean": "rimraf dist",
"clean": "rimraf dist && rimraf tmp-manifest",
"lint": "eslint src/js",
"premanifest": "cp -R src/js/ dist/",
"premanifest": "cp -R src/js/ tmp-manifest/",
"manifest": "npx @custom-elements-manifest/analyzer analyze --config scripts/custom-elements-manifest.config.js",
"build:types": "tsc",
"build:esm": "esbuild \"src/js/**/*.*s*\" --target=es2019 --format=esm --outdir=dist",
Expand Down
2 changes: 1 addition & 1 deletion scripts/custom-elements-manifest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const packageData = JSON.parse(fs.readFileSync('./package.json', 'utf8'));
const { name, description, version, author, homepage, license } = packageData;

export default {
globs: ['dist/media-*'],
globs: ['tmp-manifest/media-*'],
outdir: 'dist',
plugins: [
// Append package data
Expand Down

0 comments on commit bf3b5a4

Please sign in to comment.