Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run test
- run: npm run test:types
- run: npm run check-formatting
- run: npm run lint
- run: npm run build
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"build:devtools-chrome": "node tools/devtools/build.mjs --browser=chrome --env=production",
"build:devtools-firefox": "node tools/devtools/build.mjs --browser=firefox --env=production",
"test": "npm run test -w packages/owl",
"test:types": "npm run test:types -w packages/owl",
"test:doc-links": "vitest run --config tools/vitest.config.ts",
"build:playground": "npm run build -w tools/playground",
"build:site": "npm run build && npm run build:playground && node tools/site/assemble.mjs",
Expand Down
2 changes: 1 addition & 1 deletion packages/owl/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ async function buildCompiler() {
function buildTypes() {
mkdirSync("dist/types", { recursive: true });
execSync(
"npx dts-bundle-generator --project tsconfig.json -o dist/types/owl.d.ts src/index.ts --no-banner",
"npx dts-bundle-generator --project tsconfig.build.json -o dist/types/owl.d.ts src/index.ts --no-banner",
{ stdio: "inherit" }
);
}
Expand Down
3 changes: 2 additions & 1 deletion packages/owl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"build": "npm run build:bundle",
"build:types": "node build.mjs types",
"test": "vitest run",
"test:watch": "vitest"
"test:watch": "vitest",
"test:types": "tsc"
},
"repository": {
"type": "git",
Expand Down
6 changes: 3 additions & 3 deletions packages/owl/tests/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,9 @@ expect.extend({
},
});

export function nextAppError(app: any) {
let resolve: (value: any) => void;
const result = new Promise((res) => (resolve = res));
export function nextAppError(app: any): Promise<Error> {
let resolve: (value: Error) => void;
const result = new Promise<Error>((res) => (resolve = res));

const original = app._handleError;
app._handleError = (error: any) => {
Expand Down
11 changes: 11 additions & 0 deletions packages/owl/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "../../tsconfig.base.json",
"include": [
"src/**/*.ts",
"src/*.ts"
],
"compilerOptions": {
"outDir": "dist",
"declarationDir": "dist/types"
}
}
8 changes: 5 additions & 3 deletions packages/owl/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
"extends": "../../tsconfig.base.json",
"include": [
"src/**/*.ts",
"src/*.ts"
"tests/**/*.ts"
],
"compilerOptions": {
"outDir": "dist",
"declarationDir": "dist/types"
"noEmit": true,
"module": "ESNext",
"moduleResolution": "bundler",
"types": ["node", "vitest/globals"]
}
}
Loading