diff --git a/README.md b/README.md index aa1be45..e2b390b 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/package-lock.json b/package-lock.json index c89e697..c2825cf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,6 @@ "@types/react": "^18.2.21", "@types/react-dom": "^18.2.7", "@types/webpack": "^5.28.2", - "@types/webpack-bundle-analyzer": "^4.6.0", "@typescript-eslint/eslint-plugin": "^5.62.0", "@typescript-eslint/parser": "^5.62.0", "concurrently": "^8.2.1", @@ -2330,17 +2329,6 @@ "webpack": "^5" } }, - "node_modules/@types/webpack-bundle-analyzer": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/@types/webpack-bundle-analyzer/-/webpack-bundle-analyzer-4.6.0.tgz", - "integrity": "sha512-XeQmQCCXdZdap+A/60UKmxW5Mz31Vp9uieGlHB3T4z/o2OLVLtTI3bvTuS6A2OWd/rbAAQiGGWIEFQACu16szA==", - "dev": true, - "dependencies": { - "@types/node": "*", - "tapable": "^2.2.0", - "webpack": "^5" - } - }, "node_modules/@types/yargs": { "version": "17.0.24", "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.24.tgz", @@ -14847,17 +14835,6 @@ "webpack": "^5" } }, - "@types/webpack-bundle-analyzer": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/@types/webpack-bundle-analyzer/-/webpack-bundle-analyzer-4.6.0.tgz", - "integrity": "sha512-XeQmQCCXdZdap+A/60UKmxW5Mz31Vp9uieGlHB3T4z/o2OLVLtTI3bvTuS6A2OWd/rbAAQiGGWIEFQACu16szA==", - "dev": true, - "requires": { - "@types/node": "*", - "tapable": "^2.2.0", - "webpack": "^5" - } - }, "@types/yargs": { "version": "17.0.24", "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.24.tgz", diff --git a/package.json b/package.json index 2ffd1b2..f7281b1 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/webpack/webpack.config.main.ts b/webpack/webpack.config.main.ts index 3b4a98d..22291f3 100644 --- a/webpack/webpack.config.main.ts +++ b/webpack/webpack.config.main.ts @@ -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: './' }, ],