From 412d124a5e2c98a9eb86aaeb90b99925176aa511 Mon Sep 17 00:00:00 2001 From: Julian Waller Date: Mon, 15 Jul 2024 00:39:38 +0100 Subject: [PATCH] fix: missing js files in package --- drums.js => lib/drums.js | 0 instruments.js => lib/instruments.js | 0 messages.js => lib/messages.js | 0 notes.js => lib/notes.js | 0 midi.js | 8 ++++---- package.json | 1 + 6 files changed, 5 insertions(+), 4 deletions(-) rename drums.js => lib/drums.js (100%) rename instruments.js => lib/instruments.js (100%) rename messages.js => lib/messages.js (100%) rename notes.js => lib/notes.js (100%) diff --git a/drums.js b/lib/drums.js similarity index 100% rename from drums.js rename to lib/drums.js diff --git a/instruments.js b/lib/instruments.js similarity index 100% rename from instruments.js rename to lib/instruments.js diff --git a/messages.js b/lib/messages.js similarity index 100% rename from messages.js rename to lib/messages.js diff --git a/notes.js b/lib/notes.js similarity index 100% rename from notes.js rename to lib/notes.js diff --git a/midi.js b/midi.js index de9464f..bfd8825 100644 --- a/midi.js +++ b/midi.js @@ -10,13 +10,13 @@ const { EventEmitter } = require('events'); // Bring in the set of constants to reflect MIDI messages and their // parameters, to eliminate the need for magic numbers. /** An instrument list, only valid in the General MIDI standard */ -const Instruments = require('./instruments'); +const Instruments = require('./lib/instruments'); /** A drum map, only valid in the General MIDI standard */ -const Drums = require('./drums'); +const Drums = require('./lib/drums'); /** Note descriptions, with Middle C = C5 = MIDI note 60 */ -const Notes = require('./notes'); +const Notes = require('./lib/notes'); /** Message names, including CCs */ -const Messages = require('./messages'); +const Messages = require('./lib/messages'); class Input extends EventEmitter { constructor() { diff --git a/package.json b/package.json index 0334c97..144c978 100644 --- a/package.json +++ b/package.json @@ -68,6 +68,7 @@ "binding.gyp", "binding-options.js", "src/", + "lib/", "vendor/rtmidi/RtMidi.cpp", "vendor/rtmidi/RtMidi.h", "prebuilds/"