Add module entry point and ensure 'misc' files are included in the npm package

This commit is contained in:
Michiel Sikma 2020-07-21 17:46:43 +02:00
parent dce10f068d
commit e21cdc24cb
2 changed files with 16 additions and 1 deletions

14
index.js Normal file
View File

@ -0,0 +1,14 @@
// pokesprite-images <https://github.com/msikma/pokesprite>
// © MIT license
// This file mostly exists so that the module's path can be determined
// by using require.resolve(), which fails for modules without entry point.
const path = require('path')
module.exports = {
baseDir: path.resolve(`${__dirname}`),
inventoryDirs: ['items', 'items-outline'],
pokemonDirs: ['pokemon-gen7x', 'pokemon-gen8'],
miscDirs: ['misc']
}

View File

@ -1,6 +1,6 @@
{
"name": "pokesprite-images",
"version": "2.1.0",
"version": "2.2.0",
"description": "Database project of box and inventory sprites from the Pokémon core series games",
"files": [
"contributors.md",
@ -12,6 +12,7 @@
"/icons",
"/items",
"/items-outline",
"/misc",
"/pokemon-gen7x",
"/pokemon-gen8",
"/resources"