Skip to content
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

Fix broken links to types file #44

Merged
merged 1 commit into from
Sep 27, 2023
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This is a webpack project template pre-configured to build Paranext extensions.
- `package.json` contains information about this extension's npm package. It is required for Paranext to use the extension properly. It is copied into the build folder
- `src` contains the source code for the extension
- `src/main.ts` is the main entry file for the extension
- `src/types/extension-types.d.ts` is this extension's types file that defines how other extensions can use this extension through the `papi`. It is copied into the build folder
- `src/types/paranext-extension-template.d.ts` is this extension's types file that defines how other extensions can use this extension through the `papi`. It is copied into the build folder
- `*.web-view.tsx` files will be treated as React WebViews
- `*.web-view.html` files are a conventional way to provide HTML WebViews (no special functionality)
- `public` contains static files that are copied into the build folder
Expand Down
23 changes: 0 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"private": true,
"version": "0.0.1",
"main": "paranext-extension-template.js",
"types": "extension-types.d.ts",
"types": "paranext-extension-template.d.ts",
"author": "Paranext",
"license": "MIT",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion webpack/webpack.config.main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const configMain: webpack.Configuration = merge(configBase, {
// We want all files from the public folder copied into the output folder
{ from: 'public', to: './' },
// Copy this extension's type declaration file into the output folder
{ from: 'src/types/extension-types.d.ts', to: './' },
{ from: 'src/types/paranext-extension-template.d.ts', to: './' },
// We need to distribute the package.json for Paranext to read the extension properly
{ from: 'package.json', to: './' },
],
Expand Down