Skip to content

Commit

Permalink
build: 🐛 Fix bun build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mathix420 committed Nov 15, 2023
1 parent 91dcd4d commit 7fa8a0e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -2,6 +2,8 @@

> Export i18n JSON from Storyblok dimensioned datasources.
[![wakatime](https://wakatime.com/badge/github/mathix420/sb-datasource-to-i18n-json.svg)](https://wakatime.com/badge/github/mathix420/sb-datasource-to-i18n-json) [![npm version](https://badge.fury.io/js/sb-datasource-to-i18n-json.svg)](https://badge.fury.io/js/sb-datasource-to-i18n-json)

Useful for utilizing existing i18n integrations on a frontend framework instead of fetching from the Storyblok API.

Designed for a [nuxt-i18n](https://i18n.nuxtjs.org/) use case, but it's framework-agnostic.
Expand Down
Binary file modified bun.lockb
Binary file not shown.
3 changes: 3 additions & 0 deletions package.json
Expand Up @@ -27,6 +27,7 @@
"eslint-plugin-prettier": "^5.0.1",
"husky": "^8.0.3",
"prettier": "^3.1.0",
"rexreplace": "^7.1.3",
"semantic-release": "^22.0.7"
},
"peerDependencies": {
Expand Down Expand Up @@ -101,6 +102,8 @@
},
"scripts": {
"build": "bun build src/index.ts --outdir dist/ --sourcemap=external --target=node --splitting",
"_comment": "echo 'TODO: remove below once https://github.com/oven-sh/bun/issues/6168 is fixed'",
"postbuild": "rexreplace '^(#!.+\\n)?' '$1import { createRequire as createImportMetaRequire } from \"module\"; import.meta.require ||= (id) => createImportMetaRequire(import.meta.url)(id);\\n' -GM dist/index.js",
"lint": "eslint ./src/",
"lintfix": "eslint ./src/ --fix",
"prepare": "husky install",
Expand Down
6 changes: 3 additions & 3 deletions tsconfig.json
Expand Up @@ -3,9 +3,9 @@
"lib": [
"ESNext"
],
"module": "esnext",
"target": "esnext",
"moduleResolution": "bundler",
"module": "ESNext",
"target": "ES2018",
"moduleResolution": "Node",
"moduleDetection": "force",
"allowImportingTsExtensions": true,
"noEmit": true,
Expand Down

0 comments on commit 7fa8a0e

Please sign in to comment.