@docusaurus/plugin-pwa 2.0.0-beta.13 → 2.0.0-beta.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/plugin-pwa",
3
- "version": "2.0.0-beta.13",
3
+ "version": "2.0.0-beta.15",
4
4
  "description": "Docusaurus Plugin to add PWA support.",
5
5
  "main": "lib/index.js",
6
6
  "types": "src/plugin-pwa.d.ts",
@@ -8,7 +8,7 @@
8
8
  "build": "yarn build:server && yarn build:browser && yarn build:copy",
9
9
  "build:server": "tsc --project tsconfig.server.json",
10
10
  "build:browser": "tsc --project tsconfig.browser.json",
11
- "build:copy": "node copyUntypedFiles.js"
11
+ "build:copy": "node copyUntypedFiles.mjs"
12
12
  },
13
13
  "publishConfig": {
14
14
  "access": "public"
@@ -23,15 +23,16 @@
23
23
  "@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.0",
24
24
  "@babel/plugin-proposal-optional-chaining": "^7.16.0",
25
25
  "@babel/preset-env": "^7.16.4",
26
- "@docusaurus/core": "2.0.0-beta.13",
27
- "@docusaurus/theme-common": "2.0.0-beta.13",
28
- "@docusaurus/theme-translations": "2.0.0-beta.13",
29
- "@docusaurus/utils": "2.0.0-beta.13",
30
- "@docusaurus/utils-validation": "2.0.0-beta.13",
26
+ "@docusaurus/core": "2.0.0-beta.15",
27
+ "@docusaurus/theme-common": "2.0.0-beta.15",
28
+ "@docusaurus/theme-translations": "2.0.0-beta.15",
29
+ "@docusaurus/utils": "2.0.0-beta.15",
30
+ "@docusaurus/utils-validation": "2.0.0-beta.15",
31
31
  "babel-loader": "^8.2.2",
32
32
  "clsx": "^1.1.1",
33
33
  "core-js": "^3.18.0",
34
34
  "terser-webpack-plugin": "^5.2.4",
35
+ "tslib": "^2.3.1",
35
36
  "webpack": "^5.61.0",
36
37
  "webpack-merge": "^5.7.3",
37
38
  "workbox-build": "^6.1.1",
@@ -39,7 +40,7 @@
39
40
  "workbox-window": "^6.1.1"
40
41
  },
41
42
  "devDependencies": {
42
- "@docusaurus/module-type-aliases": "2.0.0-beta.13",
43
+ "@docusaurus/module-type-aliases": "2.0.0-beta.15",
43
44
  "fs-extra": "^10.0.0"
44
45
  },
45
46
  "peerDependencies": {
@@ -47,5 +48,5 @@
47
48
  "react": "^16.8.4 || ^17.0.0",
48
49
  "react-dom": "^16.8.4 || ^17.0.0"
49
50
  },
50
- "gitHead": "b6ca12aedf10a10c2375f4f8b7e7380cfd7c7202"
51
+ "gitHead": "6cfad16436c07d8d11e5c2e1486dc59afd483e33"
51
52
  }
package/src/index.ts CHANGED
@@ -13,7 +13,7 @@ import LogPlugin from '@docusaurus/core/lib/webpack/plugins/LogPlugin';
13
13
  import {readDefaultCodeTranslationMessages} from '@docusaurus/theme-translations';
14
14
 
15
15
  import path from 'path';
16
- import webpack, {Configuration} from 'webpack';
16
+ import webpack, {type Configuration} from 'webpack';
17
17
  import Terser from 'terser-webpack-plugin';
18
18
 
19
19
  import {injectManifest} from 'workbox-build';
@@ -1,20 +0,0 @@
1
- /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
-
8
- const path = require('path');
9
- const fs = require('fs-extra');
10
-
11
- /**
12
- * Copy all untyped and static assets files to lib.
13
- */
14
- const srcDir = path.resolve(__dirname, 'src');
15
- const libDir = path.resolve(__dirname, 'lib');
16
- fs.copySync(srcDir, libDir, {
17
- filter(filepath) {
18
- return !/__tests__/.test(filepath) && !/\.tsx?$/.test(filepath);
19
- },
20
- });
@@ -1,8 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "compilerOptions": {
4
- "module": "esnext",
5
- "jsx": "react-native"
6
- },
7
- "include": ["src/theme/", "src/*.d.ts"]
8
- }
package/tsconfig.json DELETED
@@ -1,9 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.json",
3
- "compilerOptions": {
4
- "lib": ["DOM", "ES2019"],
5
- "rootDir": "src",
6
- "baseUrl": "src",
7
- "outDir": "lib"
8
- }
9
- }
@@ -1,4 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "include": ["src/*.ts"]
4
- }