Skip to content

Commit

Permalink
Fix validate scripts (#1274)
Browse files Browse the repository at this point in the history
* Update package jsons to invoke validate script correctly
  • Loading branch information
thekevinscott authored Dec 1, 2023
1 parent 390f1e7 commit b4223fa
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion internals/scripts/src/bin/write/model/folder/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ const writeModelFolder = async (modelDirectoryName: string) => {
};
}, {
"validate:build": {
"command": `ts-node ../../scripts/package-scripts/validate-build.ts models/${modelDirectoryName}`
"command": `pnpm --filter @internals/scripts validate -- models/${modelDirectoryName}`
},
"build:umd:rollup:index": {
"command": `rollup -c ../rollup.config.cjs --input ./dist/umd-tmp/models/${modelDirectoryName}/src/umd.js --file ./dist/umd/models/${modelDirectoryName}/src/umd.js --name ${umdIndexName} --format umd`
Expand Down
2 changes: 1 addition & 1 deletion models/default-model/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"command": "pnpm lint && pnpm build && pnpm validate:build"
},
"validate:build": {
"command": "ts-node ../../scripts/package-scripts/validate-build.ts models/default-model"
"command": "pnpm --filter @internals/scripts validate -- models/default-model"
},
"scaffold": {
"command": "node -e 'const fs = require(\"fs\"); const {name, version} = require(\"./package.json\"); fs.writeFileSync(\"./src/constants.generated.ts\", `export const NAME = \"${name}\";\\nexport const VERSION=\"${version}\"`, \"utf-8\");'",
Expand Down
2 changes: 1 addition & 1 deletion models/esrgan-legacy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
"command": "pnpm build:umd:rollup:index && pnpm build:umd:uglify:index"
},
"validate:build": {
"command": "ts-node ../../scripts/package-scripts/validate-build.ts models/esrgan-legacy"
"command": "pnpm --filter @internals/scripts validate -- models/esrgan-legacy"
},
"build:umd:rollup:index": {
"command": "rollup -c ../rollup.config.cjs --input ./dist/umd-tmp/models/esrgan-legacy/src/umd.js --file ./dist/umd/models/esrgan-legacy/src/umd.js --name ESRGANLegacy --format umd"
Expand Down
2 changes: 1 addition & 1 deletion models/esrgan-medium/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
"command": "pnpm build:umd:rollup:index && pnpm build:umd:uglify:index"
},
"validate:build": {
"command": "ts-node ../../scripts/package-scripts/validate-build.ts models/esrgan-medium"
"command": "pnpm --filter @internals/scripts validate -- models/esrgan-medium"
},
"build:umd:rollup:index": {
"command": "rollup -c ../rollup.config.cjs --input ./dist/umd-tmp/models/esrgan-medium/src/umd.js --file ./dist/umd/models/esrgan-medium/src/umd.js --name ESRGANMedium --format umd"
Expand Down
2 changes: 1 addition & 1 deletion models/esrgan-slim/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
"command": "pnpm build:umd:rollup:index && pnpm build:umd:uglify:index"
},
"validate:build": {
"command": "ts-node ../../scripts/package-scripts/validate-build.ts models/esrgan-slim"
"command": "pnpm --filter @internals/scripts validate -- models/esrgan-slim"
},
"build:umd:rollup:index": {
"command": "rollup -c ../rollup.config.cjs --input ./dist/umd-tmp/models/esrgan-slim/src/umd.js --file ./dist/umd/models/esrgan-slim/src/umd.js --name ESRGANSlim --format umd"
Expand Down
2 changes: 1 addition & 1 deletion models/esrgan-thick/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
"command": "pnpm build:umd:rollup:index && pnpm build:umd:uglify:index"
},
"validate:build": {
"command": "ts-node ../../scripts/package-scripts/validate-build.ts models/esrgan-thick"
"command": "pnpm --filter @internals/scripts validate -- models/esrgan-thick"
},
"build:umd:rollup:index": {
"command": "rollup -c ../rollup.config.cjs --input ./dist/umd-tmp/models/esrgan-thick/src/umd.js --file ./dist/umd/models/esrgan-thick/src/umd.js --name ESRGANThick --format umd"
Expand Down
2 changes: 1 addition & 1 deletion models/maxim-deblurring/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
]
},
"validate:build": {
"command": "ts-node ../../scripts/package-scripts/validate-build.ts models/maxim-deblurring"
"command": "pnpm --filter @internals/scripts validate -- models/maxim-deblurring"
},
"build": {
"command": "pnpm build:cjs && pnpm build:esm && pnpm build:umd",
Expand Down
2 changes: 1 addition & 1 deletion models/maxim-dehazing-indoor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
]
},
"validate:build": {
"command": "ts-node ../../scripts/package-scripts/validate-build.ts models/maxim-dehazing-indoor"
"command": "pnpm --filter @internals/scripts validate -- models/maxim-dehazing-indoor"
},
"build": {
"command": "pnpm build:cjs && pnpm build:esm && pnpm build:umd",
Expand Down
2 changes: 1 addition & 1 deletion models/maxim-dehazing-outdoor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
]
},
"validate:build": {
"command": "ts-node ../../scripts/package-scripts/validate-build.ts models/maxim-dehazing-outdoor"
"command": "pnpm --filter @internals/scripts validate -- models/maxim-dehazing-outdoor"
},
"build": {
"command": "pnpm build:cjs && pnpm build:esm && pnpm build:umd",
Expand Down
2 changes: 1 addition & 1 deletion models/maxim-denoising/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
]
},
"validate:build": {
"command": "ts-node ../../scripts/package-scripts/validate-build.ts models/maxim-denoising"
"command": "pnpm --filter @internals/scripts validate -- models/maxim-denoising"
},
"build": {
"command": "pnpm build:cjs && pnpm build:esm && pnpm build:umd",
Expand Down
2 changes: 1 addition & 1 deletion models/maxim-deraining/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
]
},
"validate:build": {
"command": "ts-node ../../scripts/package-scripts/validate-build.ts models/maxim-deraining"
"command": "pnpm --filter @internals/scripts validate -- models/maxim-deraining"
},
"build": {
"command": "pnpm build:cjs && pnpm build:esm && pnpm build:umd",
Expand Down
2 changes: 1 addition & 1 deletion models/maxim-enhancement/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
]
},
"validate:build": {
"command": "ts-node ../../scripts/package-scripts/validate-build.ts models/maxim-enhancement"
"command": "pnpm --filter @internals/scripts validate -- models/maxim-enhancement"
},
"build": {
"command": "pnpm build:cjs && pnpm build:esm && pnpm build:umd",
Expand Down
2 changes: 1 addition & 1 deletion models/maxim-retouching/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
]
},
"validate:build": {
"command": "ts-node ../../scripts/package-scripts/validate-build.ts models/maxim-retouching"
"command": "pnpm --filter @internals/scripts validate -- models/maxim-retouching"
},
"build": {
"command": "pnpm build:cjs && pnpm build:esm && pnpm build:umd",
Expand Down

0 comments on commit b4223fa

Please sign in to comment.