Skip to content
Merged
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
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
with:
jira_site: openstax
jira_project: DISCO
jira_email: ${{ secrets.JiraEmail }}
jira_token: ${{ secrets.JiraToken }}
jira_email: ${{ secrets.JIRA_EMAIL }}
jira_token: ${{ secrets.JIRA_TOKEN }}
test:
name: checks
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .lastsync
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bd13192f9c0be6a8ac09b9679cd3ae02d32eb8c1
fe19832d1486dd59a48692801a85f804ae3bbd4f
7,879 changes: 2,139 additions & 5,740 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@project/template",
"version": "1.0.0",
"dependencies": {
"@openstax/ts-utils": "1.48.1"
"@openstax/ts-utils": "1.50.0"
},
"devDependencies": {
"syncpack": "^15.1.2"
Expand Down
23 changes: 11 additions & 12 deletions packages/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,26 @@
"version": "0.1.0",
"dependencies": {
"@openstax/orn-locator": "^1.4.1",
"@openstax/ts-utils": "1.48.1",
"@openstax/ui-components": "github:openstax/ui-components#1.22.2",
"@openstax/ts-utils": "1.50.0",
"@openstax/ui-components": "github:openstax/ui-components#1.23.0",
"@testing-library/jest-dom": "^6.4.7",
"@testing-library/react": "^12.0.0",
"@testing-library/user-event": "^13.2.1",
"@testing-library/react": "^16.3.2",
"@testing-library/user-event": "^14.6.1",
"@types/node": "^24.2.0",
"@types/react": "^17.0.20",
"@types/react-dom": "^17.0.9",
"@types/react": "^19.2.17",
"@types/react-dom": "^19.2.3",
"@types/styled-components": "^5.1.25",
"history": "^5.3.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react": "^19.2.7",
"react-dom": "^19.2.7",
"styled-components": "^5.3.5",
"typescript": "5.9.2"
},
"devDependencies": {
"@eslint/js": "^9.39.1",
"@project/lambdas": "1.0.0",
"@vitejs/plugin-react": "^5.1.1",
"@vitest/coverage-v8": "^4.0.18",
"@vitest/coverage-v8": "^4.1.5",
"cspell": "^10.0.0",
"eslint": "^9.39.1",
"eslint-plugin-react-hooks": "^7.0.1",
Expand All @@ -31,9 +31,8 @@
"jsdom": "^26.1.0",
"npm-run-all": "^4.1.5",
"typescript-eslint": "^8.48.0",
"vite": "^7.3.1",
"vite-tsconfig-paths": "^5.1.4",
"vitest": "^4.0.18"
"vite": "^8.0.16",
"vitest": "^4.1.5"
},
"private": true,
"scripts": {
Expand Down
11 changes: 7 additions & 4 deletions packages/frontend/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { createUserRoleValidator } from "@openstax/ts-utils/services/authProvide
import { ErrorBoundary, createSentryLogger } from "@openstax/ui-components";
import { createBrowserHistory, Location } from "history";
import React from 'react';
import ReactDOM from 'react-dom';
import { createRoot } from 'react-dom/client';
import { createAuthProvider } from "./auth/authProvider";
import { frontendConfigProvider } from "./configProvider";
import { getRequestResponder } from "./core";
Expand Down Expand Up @@ -59,9 +59,12 @@ const ErrorBoundaryComponent = () => {
);
};

ReactDOM.render(
const container = document.getElementById('root');
if (!container) {
throw new Error('Root container #root not found');
}
createRoot(container).render(
<React.StrictMode>
<ErrorBoundaryComponent />
</React.StrictMode>,
document.getElementById('root')
</React.StrictMode>
);
7 changes: 2 additions & 5 deletions packages/frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { defineConfig } from 'vite';
import type { Plugin } from 'vite';
import react from '@vitejs/plugin-react';
import tsconfigPaths from 'vite-tsconfig-paths';
import fs from 'node:fs';

function lambdaProxyPlugin(): Plugin {
Expand All @@ -18,21 +17,19 @@ function lambdaProxyPlugin(): Plugin {
export default defineConfig({
plugins: [
react(),
tsconfigPaths(),
lambdaProxyPlugin(),
],

resolve: {
preserveSymlinks: true,
// Replaces the vite-tsconfig-paths plugin; native in Vite 8 (experimental).
tsconfigPaths: true,
},
base: process.env.PUBLIC_URL || '/',

build: {
outDir: 'build',
sourcemap: true,
commonjsOptions: {
include: [/node_modules/, /packages\/lambda\/build/],
},
},

server: {
Expand Down
2 changes: 1 addition & 1 deletion packages/lambda/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"dependencies": {
"@openstax/open-search-client": "^0.1.0-build.8",
"@openstax/orn-locator": "^1.4.1",
"@openstax/ts-utils": "1.48.1",
"@openstax/ts-utils": "1.50.0",
"aws-xray-sdk": "^3.6.0",
"body-parser": "^1.19.2",
"node-fetch": "^2.7.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { envConfig, lambdaParameterConfig, replaceConfig } from '@openstax/ts-utils/config';
import { envConfig, replaceConfig } from '@openstax/ts-utils/config';
import { lambdaParameterConfig } from '@openstax/ts-utils/config/lambdaParameterConfig';
import type { Logger } from '@openstax/ts-utils/services/logger';
import { ApiRouteRequest, AppServices } from '../../../core';

Expand Down
Loading