fix: manifest related scripts

This commit is contained in:
Michal Szczepanski 2024-04-07 01:03:07 +02:00
parent 7f0c658220
commit 88f174cece
7 changed files with 14 additions and 14 deletions

@ -10,7 +10,7 @@ fi
export NODE_ENV=development export NODE_ENV=development
# swap manifests # swap manifests
cp src/manifest.dev.json src/manifest.json cp manifest/manifest.dev.json manifest/manifest.json
# clean old dir # clean old dir
rm -r dist/$dir_name rm -r dist/$dir_name
@ -19,7 +19,7 @@ rm -r dist/$dir_name
npm run dev:ch npm run dev:ch
# swap manifests back # swap manifests back
cp src/manifest.dev.json src/manifest.json cp manifest/manifest.dev.json manifest/manifest.json
# pack build # pack build
cd dist/$dir_name cd dist/$dir_name

@ -10,7 +10,7 @@ fi
export NODE_ENV=production export NODE_ENV=production
# swap manifests # swap manifests
cp src/manifest.ch.json src/manifest.json cp manifest/manifest.ch.json src/manifest.json
# clean old dir # clean old dir
rm -r dist/$dir_name rm -r dist/$dir_name
@ -19,7 +19,7 @@ rm -r dist/$dir_name
npm run release:ch npm run release:ch
# swap manifests back # swap manifests back
cp src/manifest.dev.json src/manifest.json cp manifest/manifest.dev.json src/manifest.json
# pack build # pack build
cd dist/$dir_name cd dist/$dir_name

@ -10,7 +10,7 @@ fi
export NODE_ENV=production export NODE_ENV=production
# swap manifests # swap manifests
cp src/manifest.ch.test.json src/manifest.json cp manifest/manifest.ch.test.json src/manifest.json
# clean old dir # clean old dir
rm -r dist/$dir_name rm -r dist/$dir_name
@ -19,7 +19,7 @@ rm -r dist/$dir_name
npm run release:test:ch npm run release:test:ch
# swap manifests back # swap manifests back
cp src/manifest.dev.json src/manifest.json cp manifest/manifest.dev.json src/manifest.json
# pack build # pack build
cd dist/$dir_name cd dist/$dir_name

@ -10,7 +10,7 @@ fi
export NODE_ENV=development export NODE_ENV=development
# swap manifests # swap manifests
cp src/manifest.ff.dev.json src/manifest.json cp manifest/manifest.ff.dev.json src/manifest.json
# clean old dir # clean old dir
rm -r dist/$dir_name rm -r dist/$dir_name
@ -19,7 +19,7 @@ rm -r dist/$dir_name
npm run dev:ff npm run dev:ff
# swap manifests back # swap manifests back
cp src/manifest.dev.json src/manifest.json cp manifest/manifest.dev.json src/manifest.json
# pack build # pack build
cd dist/$dir_name cd dist/$dir_name

@ -10,7 +10,7 @@ fi
export NODE_ENV=production export NODE_ENV=production
# swap manifests # swap manifests
cp src/manifest.ff.json src/manifest.json cp manifest/manifest.ff.json src/manifest.json
# clean old dir # clean old dir
rm -r dist/$dir_name rm -r dist/$dir_name
@ -19,7 +19,7 @@ rm -r dist/$dir_name
npm run release:ff npm run release:ff
# swap manifests back # swap manifests back
cp src/manifest.dev.json src/manifest.json cp manifest/manifest.dev.json src/manifest.json
# pack build # pack build
cd dist/$dir_name cd dist/$dir_name

@ -10,7 +10,7 @@ fi
export NODE_ENV=production export NODE_ENV=production
# swap manifests # swap manifests
cp src/manifest.ff.test.json src/manifest.json cp manifest/manifest.ff.test.json src/manifest.json
# clean old dir # clean old dir
rm -r dist/$dir_name rm -r dist/$dir_name
@ -19,7 +19,7 @@ rm -r dist/$dir_name
npm run release:test:ff npm run release:test:ff
# swap manifests back # swap manifests back
cp src/manifest.dev.json src/manifest.json cp manifest/manifest.dev.json src/manifest.json
# pack build # pack build
cd dist/$dir_name cd dist/$dir_name

@ -24,10 +24,10 @@ def write_version(fpath: str, version: str):
def save_manifest(version: str): def save_manifest(version: str):
data = os.listdir('src') data = os.listdir('manifest')
for d in data: for d in data:
if d.endswith('.json') and d.startswith('manifest'): if d.endswith('.json') and d.startswith('manifest'):
fpath = os.path.join('src', d) fpath = os.path.join('manifest', d)
write_version(fpath, version) write_version(fpath, version)