Skip to content

Commit

Permalink
fix(esm): ESM移行漏れ
Browse files Browse the repository at this point in the history
  • Loading branch information
yamadashy committed Oct 6, 2024
1 parent e59fbb5 commit b1c40b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/feed/generate-feed-command.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
import * as path from 'node:path';
import * as url from 'node:url';
import { FEED_INFO_LIST } from '../resources/feed-info-list';
import { FeedCrawler } from './utils/feed-crawler';
import { FeedGenerator } from './utils/feed-generator';
import { ImagePrecacher as FeedImagePrecacher } from './utils/feed-image-precacher';
import { FeedStorer } from './utils/feed-storer';
import { FeedValidator } from './utils/feed-validator';

const dirName = url.fileURLToPath(new URL('.', import.meta.url));

const FEED_FETCH_CONCURRENCY = 50;
const FEED_OG_FETCH_CONCURRENCY = 20;
const FETCH_IMAGE_CONCURRENCY = 100;
const FILTER_ARTICLE_DATE = new Date(Date.now() - 14 * 24 * 60 * 60 * 1000);
const MAX_FEED_DESCRIPTION_LENGTH = 200;
const MAX_FEED_CONTENT_LENGTH = 500;
const STORE_FEEDS_DIR_PATH = path.join(__dirname, '../site/feeds');
const STORE_BLOG_FEEDS_DIR_PATH = path.join(__dirname, '../site/blog-feeds');
const STORE_FEEDS_DIR_PATH = path.join(dirName, '../site/feeds');
const STORE_BLOG_FEEDS_DIR_PATH = path.join(dirName, '../site/blog-feeds');

const feedCrawler = new FeedCrawler();
const feedGenerator = new FeedGenerator();
Expand Down
2 changes: 1 addition & 1 deletion src/feed/utils/logger.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as log4js from 'log4js';
import log4js from 'log4js';

const logger = log4js.getLogger();

Expand Down

0 comments on commit b1c40b6

Please sign in to comment.