Skip to content

Commit

Permalink
[fix] GitHub repository meta of package.json is missing (parcel-bundl…
Browse files Browse the repository at this point in the history
…er/website#1102 (comment))

[optimize] Production Dependency compatibility
[optimize] upgrade to PNPM 9 & other latest Upstream packages
  • Loading branch information
TechQuery committed Jun 26, 2024
1 parent 5b36ed0 commit 6380b07
Show file tree
Hide file tree
Showing 4 changed files with 2,163 additions and 1,716 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

- uses: pnpm/action-setup@v2
with:
version: 8
version: 9
- uses: actions/setup-node@v3
with:
node-version: 18
Expand Down
7 changes: 6 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ const RemarkEmbedder = remarkEmbedder['default'],
OembedTransformer = oembedTransformer['default'];

const ConfigExtensions = ['json', 'js', 'cjs', 'mjs', 'cts'];

/**
* @see {@link https://babeljs.io/docs/config-files#configuration-file-types}
*/
const BabelConfigFiles = [
...ConfigExtensions.map(extension => `babel.config.${extension}`),
...ConfigExtensions.map(extension => `.babelrc.${extension}`),
Expand All @@ -32,6 +34,9 @@ export default new Transformer({
*/
const { jsx, jsxImportSource, jsxFactory, jsxFragmentFactory } =
config.compilerOptions || {};
/**
* @see {@link https://babeljs.io/docs/babel-preset-react#with-a-configuration-file-recommended}
*/
const [_, { runtime, importSource, pragma, pragmaFrag } = {}] =
config.presets?.find(
preset =>
Expand Down
24 changes: 16 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "parcel-transformer-mdx",
"version": "0.3.2",
"version": "0.3.3",
"license": "LGPL-3.0-or-later",
"author": "shiy2008@gmail.com",
"description": "Unofficial MDX 3 transformer plugin for Parcel 2",
Expand All @@ -13,26 +13,34 @@
"mdx",
"transformer"
],
"homepage": "https://github.com/EasyWebApp/Parcel-transformer-MDX#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/EasyWebApp/Parcel-transformer-MDX.git"
},
"bugs": {
"url": "https://github.com/EasyWebApp/Parcel-transformer-MDX/issues"
},
"type": "module",
"main": "index.js",
"engines": {
"parcel": "^2"
},
"dependencies": {
"@mapbox/rehype-prism": "^0.9.0",
"@mdx-js/mdx": "^3.0.0",
"@parcel/plugin": "^2.11.0",
"@remark-embedder/core": "^3.0.2",
"@mdx-js/mdx": "^3",
"@parcel/plugin": "^2",
"@remark-embedder/core": "^3.0.3",
"@remark-embedder/transformer-oembed": "^3.0.0",
"remark-frontmatter": "^5.0.0",
"remark-gfm": "^4.0.0",
"remark-mdx-frontmatter": "^4.0.0"
},
"devDependencies": {
"husky": "^9.0.10",
"lint-staged": "^15.2.2",
"prettier": "^3.2.5",
"types-tsconfig": "^2.0.2"
"husky": "^9.0.11",
"lint-staged": "^15.2.7",
"prettier": "^3.3.2",
"types-tsconfig": "^2.1.1"
},
"prettier": {
"singleQuote": true,
Expand Down
Loading

0 comments on commit 6380b07

Please sign in to comment.