Skip to content

Commit 5d1661f

Browse files
committed
Rename package to react-midi-player2 to avoid npm naming conflict
1 parent 9e6a01c commit 5d1661f

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ The component accepts a file externally (similar to HTML5 audio element):
7575

7676
```tsx
7777
import { useState } from 'react';
78-
import { MIDIPlayer } from 'react-midi-player';
78+
import { MIDIPlayer } from 'react-midi-player;
7979

8080
function MyComponent() {
8181
const [file, setFile] = useState<File | null>(null);
@@ -100,7 +100,7 @@ function MyComponent() {
100100
### Load from URL
101101

102102
```tsx
103-
import { MIDIPlayer } from 'react-midi-player';
103+
import { MIDIPlayer } from 'react-midi-player2';
104104

105105
<MIDIPlayer
106106
url="/path/to/song.mid"
@@ -112,7 +112,7 @@ import { MIDIPlayer } from 'react-midi-player';
112112
### With Event Handlers
113113

114114
```tsx
115-
import { MIDIPlayer, type MIDISong } from './midi-player';
115+
import { MIDIPlayer, type MIDISong } from 'react-midi-player2';
116116

117117
function MyComponent() {
118118
const handleLoad = (song: MIDISong) => {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "midi-player",
2+
"name": "react-midi-player2",
33
"version": "1.0.0",
44
"description": "React MIDI Player component based on javascript-midi-player",
55
"main": "dist/index.js",
@@ -21,7 +21,7 @@
2121
"deploy": "gh-pages -d dist",
2222
"prepublishOnly": "npm run build"
2323
},
24-
"homepage": "https://shimondoodkin.github.io/react-midi-player",
24+
"homepage": "https://shimondoodkin.github.io/react-midi-player2",
2525
"keywords": [
2626
"midi-player",
2727
"midi",

vite.config.demo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import react from '@vitejs/plugin-react';
33

44
export default defineConfig({
55
plugins: [react()],
6-
base: '/react-midi-player/',
6+
base: '/react-midi-player2/',
77
server: {
88
port: 3000,
99
open: true,

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { resolve } from 'path';
44

55
export default defineConfig({
66
plugins: [react()],
7-
base: process.env.NODE_ENV === 'production' ? '/react-midi-player/' : '/',
7+
base: process.env.NODE_ENV === 'production' ? '/react-midi-player2/' : '/',
88
server: {
99
port: 3000,
1010
open: true,

0 commit comments

Comments
 (0)