Skip to content

Commit

Permalink
fix: /urls subpath export
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Nov 24, 2024
1 parent 2797bb5 commit 4a0b1a2
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/module/build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export default defineBuildConfig({
entries: [
{ input: 'src/kit', name: 'kit' },
{ input: 'src/utils', name: 'utils' },
{ input: 'src/urls', name: 'urls' },
],
externals: [
'#imports',
Expand Down
4 changes: 4 additions & 0 deletions packages/module/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
"./utils": {
"types": "./dist/utils.d.ts",
"import": "./dist/utils.mjs"
},
"./urls": {
"types": "./dist/urls.d.ts",
"import": "./dist/urls.mjs"
}
},
"main": "./dist/module.cjs",
Expand Down
1 change: 1 addition & 0 deletions packages/module/src/urls.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from 'site-config-stack/urls'
1 change: 1 addition & 0 deletions packages/module/urls.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './dist/urls'
3 changes: 2 additions & 1 deletion packages/site-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
"main": "./dist/index.cjs",
"types": "./dist/index.d.ts",
"files": [
"dist"
"dist",
"urls.d.ts"
],
"scripts": {
"lint": "eslint . --fix",
Expand Down
1 change: 1 addition & 0 deletions packages/site-config/urls.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './dist/urls'

0 comments on commit 4a0b1a2

Please sign in to comment.