@sorrell/code-hike 1.0.2 → 1.0.4

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.
@@ -7,7 +7,7 @@
7
7
 
8
8
  /* eslint-disable @typescript-eslint/typedef, jsdoc/require-jsdoc */
9
9
 
10
- import { Config, type WebpackConfiguration } from "@remotion/cli/config";
10
+ import { Config } from "@remotion/cli/config";
11
11
 
12
12
  export const DefaultCodeHikeConfig =
13
13
  {
@@ -17,8 +17,7 @@ export const DefaultCodeHikeConfig =
17
17
  }
18
18
  };
19
19
 
20
- /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
21
- async function EnableMdx(CurrentConfiguration: any): Promise<WebpackConfiguration>
20
+ async function EnableMdx(CurrentConfiguration)
22
21
  {
23
22
  const { remarkCodeHike, recmaCodeHike } = await import("codehike/mdx");
24
23
 
@@ -52,14 +51,6 @@ async function EnableMdx(CurrentConfiguration: any): Promise<WebpackConfiguratio
52
51
  };
53
52
  };
54
53
 
55
- export function ApplyBaseConfig(): void
56
- {
57
- Config.overrideWebpackConfig(EnableMdx);
58
- }
59
-
60
- export function ApplyDefaultConfig(EntryPoint: string = "./Source/index.ts"): void
61
- {
62
- ApplyBaseConfig();
63
- Config.setVideoImageFormat("jpeg");
64
- Config.setEntryPoint(EntryPoint);
65
- }
54
+ Config.overrideWebpackConfig(EnableMdx);
55
+ Config.setVideoImageFormat("jpeg");
56
+ Config.setEntryPoint("./Source/index.tsx");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sorrell/code-hike",
3
3
  "private": false,
4
- "version": "1.0.2",
4
+ "version": "1.0.4",
5
5
  "description": "A helper library for making animations with Code Hike.",
6
6
  "scripts": {
7
7
  "build": "tsc -p ./tsconfig.json"
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "peerDependenciesMeta": {
37
37
  "remotion": {
38
- "optional": true
38
+ "optional": true
39
39
  }
40
40
  },
41
41
  "devDependencies": {
@@ -46,7 +46,7 @@
46
46
  "files": [
47
47
  "Distribution",
48
48
  "Distribution/**/*",
49
- "remotion.config.ts",
49
+ "Remotion.js",
50
50
  "tsconfig.remotion.json"
51
51
  ],
52
52
  "exports": {
@@ -55,7 +55,7 @@
55
55
  "types": "./Distribution/index.d.ts"
56
56
  },
57
57
  "./tsconfig": "./tsconfig.remotion.json",
58
- "./remotion": "./remotion.config.ts"
58
+ "./remotion": "./Remotion.js"
59
59
  },
60
60
  "dependencies": {
61
61
  "@mdx-js/loader": "",