Skip to content

Commit ac7b114

Browse files
committed
chore: update luby-transform package config
1 parent da18e49 commit ac7b114

File tree

6 files changed

+26
-1
lines changed

6 files changed

+26
-1
lines changed

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
shamefully-hoist=true
22
strict-peer-dependencies=false
33
shell-emulator=true
4+
ignore-workspace-root-check=true

cspell.config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ words:
77
- composables
88
- luby
99
- Nuxt
10+
- pako
1011
- Soliton
1112
- timeseries
1213
- unocss

nuxt.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ export default defineNuxtConfig({
1212
'@vite-pwa/nuxt',
1313
'@nuxt/eslint',
1414
],
15-
15+
typescript: {
16+
includeWorkspace: true,
17+
},
1618
alias: {
1719
'luby-transform': fileURLToPath(new URL('./packages/luby-transform/src/index.ts', import.meta.url)),
1820
},

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"prepare": "nuxi prepare",
1212
"start": "node .output/server/index.mjs",
1313
"start:generate": "npx serve .output/public",
14+
"packages:build": "pnpm -F './packages/*' run build",
1415
"lint": "eslint .",
1516
"typecheck": "vue-tsc --noEmit",
1617
"test": "vitest"
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import { defineBuildConfig } from 'unbuild'
2+
3+
export default defineBuildConfig({
4+
entries: [
5+
'src/index.ts',
6+
],
7+
declaration: true,
8+
rollup: {
9+
emitCJS: false,
10+
dts: {
11+
compilerOptions: {
12+
paths: {},
13+
},
14+
},
15+
},
16+
externals: [
17+
'pako',
18+
],
19+
})

packages/luby-transform/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "luby-transform",
3+
"type": "module",
34
"version": "0.0.1",
45
"description": "Luby Transform Codes is a kind of fountain codes",
56
"author": "Anthony Fu <[email protected]>",

0 commit comments

Comments
 (0)