Skip to content

Commit

Permalink
Fix main source file generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
francois2metz committed May 6, 2024
1 parent ab8da48 commit f7a35fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
"description": "Parcel plugin to load markdown file with yaml-front-matter.",
"author": "François de Metz <[email protected]>",
"license": "MIT",
"type": "module",
"source": "./src/index.ts",
"main": "./dist/main.js",
"module": "dist/module.js",
"types": "dist/index.d.ts",
"module": "./dist/module.js",
"types": "./dist/index.d.ts",
"scripts": {
"watch": "parcel watch",
"build": "parcel build",
Expand Down
3 changes: 1 addition & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import path from 'node:path';
import { Transformer } from '@parcel/plugin';
import { marked, type MarkedOptions, type MarkedExtension } from 'marked';
import yamlFrontmatter from 'yaml-front-matter';
const { loadFront } = yamlFrontmatter;
import { loadFront } from 'yaml-front-matter';

export default new Transformer({
async loadConfig({ config }) {
Expand Down

0 comments on commit f7a35fa

Please sign in to comment.