Skip to content

Commit

Permalink
fix(publishing): Fixed type definiton file not being generated
Browse files Browse the repository at this point in the history
  • Loading branch information
HHogg committed Sep 23, 2024
1 parent 5521519 commit 60ca7e7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
run: yarn
- name: 'Linting'
run: yarn lint
- name: 'Clean workspace'
run: yarn clean
- name: 'Build workspace'
run: yarn build
- name: 'Prepare PackageJSON for publishing'
Expand Down
2 changes: 1 addition & 1 deletion workspaces/package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"source": "src",
"scripts": {
"clean": "rm -rf dist",
"build": "yarn clean && tsc && vite build && yarn build:docs && yarn prepare:packageJson",
"build": "vite build && yarn build:docs && yarn prepare:packageJson",
"build:docs": "typedoc src/index.ts --exclude lib --excludeExternals --json ../site/src/assets/documentation.json --jsDocCompatibility false",
"prepare:packageJson": "node ./scripts/preparePackageJson.js",
"tsc:check": "tsc --noEmit --skipLibCheck"
Expand Down
4 changes: 2 additions & 2 deletions workspaces/package/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ export default defineConfig(() => ({
plugins: [
react(),
dts({
insertTypesEntry: true,
rollupTypes: true,
}),
],
build: {
sourcemap: true,
lib: {
entry: resolve(__dirname, 'src/index.ts'),
name: 'preshape',
formats: ['es', 'umd'],
formats: ['es'],
fileName: (format) => `preshape.${format}.js`,
},
rollupOptions: {
Expand Down
2 changes: 1 addition & 1 deletion workspaces/site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"clean": "rm -rf dist",
"dev": "yarn build:svgs && vite --host localhost --port 4001",
"build": "yarn run clean && yarn run build:client && yarn run build:server && yarn run ssg",
"build": "yarn run build:client && yarn run build:server && yarn run ssg",
"build:client": "vite build --outDir dist/client",
"build:svgs": "yarn build:svgs:pictograms",
"build:svgs:pictograms": "yarn svgr -d ./src/docs/catalog/pictograms ./src/assets/pictogram-svgs --ext tsx --config-file .svgrrc.pictograms.cjs",
Expand Down

0 comments on commit 60ca7e7

Please sign in to comment.