Skip to content

Commit

Permalink
Add module entry point and ensure 'misc' files are included in the np…
Browse files Browse the repository at this point in the history
…m package
  • Loading branch information
msikma committed Jul 21, 2020
1 parent dce10f0 commit e21cdc2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
14 changes: 14 additions & 0 deletions index.js
@@ -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']
}
3 changes: 2 additions & 1 deletion package.json
@@ -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",
Expand All @@ -12,6 +12,7 @@
"/icons",
"/items",
"/items-outline",
"/misc",
"/pokemon-gen7x",
"/pokemon-gen8",
"/resources"
Expand Down

0 comments on commit e21cdc2

Please sign in to comment.