-
Notifications
You must be signed in to change notification settings - Fork 6
build(extension): Add build-time type checks #77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,6 +3,7 @@ | |
|
|
||
| import path from 'path'; | ||
| import { defineConfig } from 'vite'; | ||
| import { checker as viteChecker } from 'vite-plugin-checker'; | ||
| import { viteStaticCopy } from 'vite-plugin-static-copy'; | ||
|
|
||
| import { htmlTrustedPrelude } from './vite-plugins/html-trusted-prelude'; | ||
|
|
@@ -57,12 +58,14 @@ export default defineConfig(({ mode }) => ({ | |
|
|
||
| plugins: [ | ||
| htmlTrustedPrelude(), | ||
| jsTrustedPrelude({ | ||
| trustedPreludes: jsTrustedPreludes, | ||
| }), | ||
| viteStaticCopy({ | ||
| targets: staticCopyTargets.map((src) => ({ src, dest: './' })), | ||
| watch: { reloadPageOnChange: true }, | ||
| silent: mode === 'development', | ||
| }), | ||
| jsTrustedPrelude({ | ||
| trustedPreludes: jsTrustedPreludes, | ||
| }), | ||
| viteChecker({ typescript: { tsconfigPath: 'tsconfig.build.json' } }), | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I noticed type-checking came last, and tried to reorder the plugins to bail early on failure without luck. It is not an issue of urgency for now, and if need be, we may need to revisit this down the road.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure what the behavioral significance is of the order of the plugins array, but yeah, what I have seems to work. |
||
| ], | ||
| })); | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,5 +6,5 @@ | |
| "types": ["ses", "vitest", "vitest/jsdom"] | ||
| }, | ||
| "references": [{ "path": "../test-utils" }], | ||
| "include": ["./src", "test/envelope-kit-fixtures.ts"] | ||
| "include": ["./src", "./test/envelope-kit-fixtures.ts"] | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just for consistency. |
||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This script had been broken forever and is probably a lost cause.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's see if we end up introducing some pivot on this down the road 🤞