one-piece-card-game-json 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.d.ts +25 -0
  2. package/index.js +6 -2
  3. package/package.json +2 -1
package/index.d.ts ADDED
@@ -0,0 +1,25 @@
1
+ declare module 'one-piece-card-game-json-all' {
2
+ const all: any;
3
+ export default all;
4
+ }
5
+
6
+ declare module 'one-piece-card-game-json-en' {
7
+ const en: any;
8
+ export default en;
9
+ }
10
+
11
+ declare module 'one-piece-card-game-json-jp' {
12
+ const jp: any;
13
+ export default jp;
14
+ }
15
+
16
+ declare module 'one-piece-card-game-json' {
17
+ const all: any;
18
+ const en: {
19
+ cards: any;
20
+ filters: any;
21
+ };
22
+ const jp: any;
23
+
24
+ export { all, en, jp };
25
+ }
package/index.js CHANGED
@@ -1,9 +1,13 @@
1
1
  const all = require('one-piece-card-game-json-all');
2
- const en = require('one-piece-card-game-json-en');
2
+ const enCards = require('./en/cards.json');
3
+ const enFilters = require('./en/filters.json');
3
4
  const jp = require('one-piece-card-game-json-jp');
4
5
 
5
6
  module.exports = {
6
7
  all,
7
- en,
8
+ en: {
9
+ cards: enCards,
10
+ filters: enFilters
11
+ },
8
12
  jp
9
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "one-piece-card-game-json",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "One Piece Card Game JSON data",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -19,6 +19,7 @@
19
19
  },
20
20
  "files": [
21
21
  "index.js",
22
+ "index.d.ts",
22
23
  "en/",
23
24
  "jp/"
24
25
  ],