Skip to content

Commit

Permalink
Fix deletion of output.overrides (#1064)
Browse files Browse the repository at this point in the history
* Fix overrides removal.

* Add test run after examples build.

* Up examples ref.

---------

Co-authored-by: L <[email protected]>
  • Loading branch information
tbrockman and louisgv authored Sep 13, 2024
1 parent 6c30aaa commit 265c66f
Show file tree
Hide file tree
Showing 5 changed files with 705 additions and 91 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,4 @@ jobs:
# popd
# done
# popd
pnpm run test:examples
2 changes: 1 addition & 1 deletion cli/plasmo/src/features/manifest-factory/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -626,8 +626,8 @@ export abstract class PlasmoManifest<T extends ExtensionManifest = any> {

if (output.overrides && output.overrides[this.browser]) {
output = { ...output, ...output.overrides[this.browser] }
delete output.overrides
}
delete output.overrides
return this.injectEnvToObj(output)
}

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"build:api": "turbo run build --filter \"./api/**\"",
"build:core": "turbo run build --filter \"./core/**\"",
"build:examples": "pnpm --filter \"./examples/**\" -r build",
"test:examples": "pnpm --filter \"./examples/**\" -r test",
"publish:packages": "pnpm --filter \"./packages/**\" publish",
"publish:api": "pnpm --filter \"./api/**\" publish",
"publish:core": "pnpm --filter \"./core/**\" publish",
Expand Down Expand Up @@ -62,4 +63,4 @@
"node": ">=18.0.0"
},
"packageManager": "[email protected]"
}
}
Loading

0 comments on commit 265c66f

Please sign in to comment.