diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 436cc43f2..f22b3ab4f 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -33,7 +33,7 @@ jobs:
- name: Test
run: pnpm test
- - name: Check examples
+ - name: Check examples & demos
run: pnpm check-examples
- name: Upload coverage to Codecov
diff --git a/demos/taco-demo/package.json b/demos/taco-demo/package.json
index 42136c313..ece67293c 100644
--- a/demos/taco-demo/package.json
+++ b/demos/taco-demo/package.json
@@ -6,7 +6,10 @@
"author": "Piotr Rosłaniec
",
"scripts": {
"start": "webpack serve --mode development",
- "build": "tsc --noEmit && rimraf build && webpack --mode production --progress"
+ "prebuild": "pnpm run check && pnpm run clean",
+ "clean": "rimraf build",
+ "build": "webpack --mode production --progress",
+ "check": "tsc"
},
"dependencies": {
"@nucypher/taco": "workspace:*",
diff --git a/demos/taco-nft-demo/package.json b/demos/taco-nft-demo/package.json
index 563c0d2fc..35f26dd0b 100644
--- a/demos/taco-nft-demo/package.json
+++ b/demos/taco-nft-demo/package.json
@@ -6,7 +6,10 @@
"author": "Piotr Rosłaniec ",
"scripts": {
"start": "webpack serve --mode development",
- "build": "tsc --noEmit && rimraf build && webpack --mode production --progress"
+ "prebuild": "pnpm run check && pnpm run clean",
+ "clean": "rimraf build",
+ "build": "webpack --mode production --progress",
+ "check": "tsc"
},
"dependencies": {
"@nucypher/taco": "workspace:*",
diff --git a/package.json b/package.json
index b2ae7bfc0..5b5c06554 100644
--- a/package.json
+++ b/package.json
@@ -22,7 +22,7 @@
"exports:lint": "pnpm run --parallel --aggregate-output --reporter append-only --filter './packages/**' exports:lint",
"fix": "pnpm format:fix && pnpm lint:fix && pnpm packages:sort",
"ci:lint": "run-p lint type-check package:check packages:lint exports:lint",
- "check-examples": "pnpm run --parallel --aggregate-output --reporter append-only --filter './examples/**' check"
+ "check-examples": "pnpm run --parallel --aggregate-output --reporter append-only --filter './examples/**' --filter './demos/**' check"
},
"dependencies": {
"@changesets/cli": "^2.26.2",