Skip to content

Commit

Permalink
chore: Include only lib folder when publishing, Add Dataset and Story…
Browse files Browse the repository at this point in the history
… data type to export (#1351)

We are publishing everything in the folder which should not be
necessary. Explicitly scope the folder to publish (`files` in
`package.json`)

Also add more types to export (Dataset, Story)
  • Loading branch information
hanbyul-here authored Dec 24, 2024
1 parent 7a3774e commit e8d3b91
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/scripts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import type {
InternalNavLink,
NavItemType
} from '$components/common/page-header/types';
import type { DatasetData, StoryData } from '$types/veda';

import ExplorationAndAnalysis from '$components/exploration';
import useTimelineDatasetAtom from '$components/exploration/hooks/use-timeline-dataset-atom';
Expand Down Expand Up @@ -80,6 +81,8 @@ export {
NavItem,
NavItemType,
InternalNavLink,
DatasetData,
StoryData,

// STATE
timelineDatasetsAtom,
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
"module": "lib/module.js",
"types": "lib/index.d.ts",
"browserslist": "> 0.5%, last 2 versions, not dead",
"files": [
"lib"
],
"scripts": {
"serve": "NODE_ENV=development gulp serve",
"build": "NODE_ENV=production gulp",
Expand Down

0 comments on commit e8d3b91

Please sign in to comment.