gitsawe 0.1.0 → 0.1.1

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.
package/dist/index.js CHANGED
@@ -13,28 +13,18 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
13
13
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
- var __importDefault = (this && this.__importDefault) || function (mod) {
17
- return (mod && mod.__esModule) ? mod : { "default": mod };
18
- };
19
16
  Object.defineProperty(exports, "__esModule", { value: true });
20
17
  exports.Gitsawe = exports.gitsaweData = exports.packages = exports.mahlets = exports.subFeasts = exports.feasts = exports.months = exports.monthlyGitsawe = exports.seasonalGitsawe = exports.dailyGitsawe = void 0;
21
18
  exports.toGitsaweDateKey = toGitsaweDateKey;
22
- const daily_gitsawe_json_1 = __importDefault(require("../data/daily-gitsawe.json"));
23
- const seasonal_gitsawe_json_1 = __importDefault(require("../data/seasonal-gitsawe.json"));
24
- const monthly_gitsawe_json_1 = __importDefault(require("../data/monthly-gitsawe.json"));
25
- const months_json_1 = __importDefault(require("../data/months.json"));
26
- const feasts_json_1 = __importDefault(require("../data/feasts.json"));
27
- const sub_feasts_json_1 = __importDefault(require("../data/sub-feasts.json"));
28
- const mahlets_json_1 = __importDefault(require("../data/mahlets.json"));
29
- const packages_json_1 = __importDefault(require("../data/packages.json"));
30
- exports.dailyGitsawe = daily_gitsawe_json_1.default;
31
- exports.seasonalGitsawe = seasonal_gitsawe_json_1.default;
32
- exports.monthlyGitsawe = monthly_gitsawe_json_1.default;
33
- exports.months = months_json_1.default;
34
- exports.feasts = feasts_json_1.default;
35
- exports.subFeasts = sub_feasts_json_1.default;
36
- exports.mahlets = mahlets_json_1.default;
37
- exports.packages = packages_json_1.default;
19
+ const data_1 = require("./data");
20
+ exports.dailyGitsawe = data_1.dailyGitsaweJson;
21
+ exports.seasonalGitsawe = data_1.seasonalGitsaweJson;
22
+ exports.monthlyGitsawe = data_1.monthlyGitsaweJson;
23
+ exports.months = data_1.monthsJson;
24
+ exports.feasts = data_1.feastsJson;
25
+ exports.subFeasts = data_1.subFeastsJson;
26
+ exports.mahlets = data_1.mahletsJson;
27
+ exports.packages = data_1.packagesJson;
38
28
  exports.gitsaweData = [
39
29
  ...exports.dailyGitsawe,
40
30
  ...exports.seasonalGitsawe,
package/package.json CHANGED
@@ -1,22 +1,28 @@
1
1
  {
2
2
  "name": "gitsawe",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Open JSON data for Gitsawe readings, feasts, sub-feasts, months, mahlets, and packages.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "bin": {
8
8
  "gitsawe": "bin/gitsawe.js"
9
9
  },
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/index.d.ts",
13
+ "require": "./dist/index.js"
14
+ },
15
+ "./package.json": "./package.json"
16
+ },
10
17
  "files": [
11
18
  "bin",
12
- "data",
13
19
  "dist",
14
20
  "schemas",
15
21
  "README.md",
16
22
  "LICENSE"
17
23
  ],
18
24
  "scripts": {
19
- "build": "tsc -p tsconfig.json",
25
+ "build": "node scripts/build-data.cjs && tsc -p tsconfig.json",
20
26
  "test": "node test/validate.cjs && npm run build && node test/api.cjs && node test/bin.cjs"
21
27
  },
22
28
  "keywords": [