Skip to content

Commit

Permalink
Rename types file
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfheij-sil committed Sep 7, 2023
1 parent 2e78dc7 commit 030a57f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
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/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
- `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
- `*.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
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": "paranext-extension-template.d.ts",
"types": "extension-types.d.ts",
"author": "Paranext",
"license": "MIT",
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
declare module 'paranext-extension-template' {
declare module 'extension-types' {
// Add extension types exposed on the papi for other extensions to use here
// More instructions can be found in the README
}
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/paranext-extension-template.d.ts', to: './' },
{ from: 'src/types/extension-types.d.ts', to: './' },
// We need to distribute the package.json for Paranext to read the extension properly
{ from: 'package.json', to: './' },
],
Expand Down

0 comments on commit 030a57f

Please sign in to comment.