Skip to content

Commit

Permalink
Fix build-geonames-sqlite script for module (s/require/import/)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjradwin committed Jan 10, 2024
1 parent b5a1ec5 commit e8599a8
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 80 deletions.
4 changes: 2 additions & 2 deletions bin/build-geonames-sqlite
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env node

const {buildGeonamesSqlite} = require('@hebcal/geo-sqlite');
const {pino} = require('pino');
import {buildGeonamesSqlite} from '@hebcal/geo-sqlite';
import {pino} from 'pino';

const logger = pino({
// level: argv.quiet ? 'warn' : 'info',
Expand Down
147 changes: 75 additions & 72 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hebcal/geo-sqlite",
"version": "5.0.2",
"version": "5.0.3",
"author": "Michael J. Radwin (https://github.com/mjradwin)",
"keywords": [
"hebcal"
Expand All @@ -11,7 +11,8 @@
"type": "module",
"exports": {
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
"require": "./dist/index.cjs",
"types": "./geo-sqlite.d.ts"
},
"bin": {
"build-geonames-sqlite": "bin/build-geonames-sqlite",
Expand All @@ -37,10 +38,10 @@
],
"dependencies": {
"@hebcal/cities": "^5.0.1",
"@hebcal/core": "^5.0.3",
"@hebcal/core": "^5.0.7",
"better-sqlite3": "^9.2.2",
"pino": "^8.17.1",
"pino-pretty": "^10.3.0",
"pino": "^8.17.2",
"pino-pretty": "^10.3.1",
"transliteration": "^2.3.5"
},
"scripts": {
Expand All @@ -59,6 +60,6 @@
"eslint-config-google": "^0.14.0",
"jsdoc": "^4.0.2",
"jsdoc-to-markdown": "^8.0.0",
"rollup": "^4.9.1"
"rollup": "^4.9.4"
}
}

0 comments on commit e8599a8

Please sign in to comment.