rn-shiki 0.0.25 → 0.0.26

Sign up to get free protection for your applications and to get access to all the features.
package/babel.config.js CHANGED
@@ -6,9 +6,6 @@ module.exports = {
6
6
  {
7
7
  root: ['./src'],
8
8
  extensions: ['.js', '.jsx', '.ts', '.tsx', '.json'],
9
- alias: {
10
- '@vendor': './src/vendor',
11
- },
12
9
  },
13
10
  ],
14
11
  ],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rn-shiki",
3
3
  "type": "module",
4
- "version": "0.0.25",
4
+ "version": "0.0.26",
5
5
  "description": "Shiki syntax highlighter for React Native.",
6
6
  "author": "Ryan Skinner <hello@ryanskinner.com>",
7
7
  "license": "MIT",
@@ -1,9 +1,9 @@
1
1
  import type { LanguageInput, ThemeInput } from 'shiki'
2
- import typescript from '@vendor/shiki/langs/typescript'
3
- import githubDark from '@vendor/shiki/themes/github-dark'
4
2
  import React from 'react'
5
3
  import { Text, View } from 'react-native'
6
4
  import { useSyntaxHighlighter } from '../../hooks/useSyntaxHighlighter'
5
+ import typescript from '../../vendor/shiki/langs/typescript'
6
+ import githubDark from '../../vendor/shiki/themes/github-dark'
7
7
 
8
8
  interface SyntaxHighlighterProps {
9
9
  text: string
@@ -1,6 +1,7 @@
1
1
  import type { LanguageInput, ThemedToken, ThemeInput } from 'shiki'
2
2
  import type { TokenType } from '../../types'
3
- import { createHighlighterCore, createJavaScriptRegexEngine } from '@vendor/shiki'
3
+ import { createHighlighterCore } from '../../vendor/shiki/core/core'
4
+ import { createJavaScriptRegexEngine } from '../../vendor/shiki/core/engine-javascript'
4
5
 
5
6
  async function initializeHighlighter(langs: LanguageInput[], themes: ThemeInput[]): Promise<Awaited<ReturnType<typeof createHighlighterCore>>> {
6
7
  return createHighlighterCore({
package/tsconfig.json CHANGED
@@ -6,9 +6,6 @@
6
6
  "baseUrl": "./",
7
7
  "module": "esnext",
8
8
  "moduleResolution": "node",
9
- "paths": {
10
- "@vendor/*": ["src/vendor/*"]
11
- },
12
9
  "resolveJsonModule": true,
13
10
  "allowJs": false,
14
11
  "strict": true,