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 3346af5 commit a424290
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,10 @@ jobs:
run: yarn
- name: 'Linting'
run: yarn lint
- name: 'Build package'
run: yarn workspace preshape build
- name: 'Build workspace'
run: yarn build
- name: 'Prepare PackageJSON for publishing'
run: yarn workspace preshape prepare:packageJson
- name: 'Build site'
run: yarn workspace site build
- name: 'Publish package'
run: yarn deploy:lib
env:
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
],
"scripts": {
"build": "yarn workspaces foreach -ptvR --from site run build",
"clean": "yarn workspaces foreach -ptvR --from site run clean",
"dev": "yarn workspaces foreach -pviR --from site -j unlimited run dev",
"format": "prettier --write .",
"lint": "yarn lint:js && yarn lint:css",
Expand Down
6 changes: 4 additions & 2 deletions workspaces/package/.npmignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.svgrrc.js
postcss.config.js
scripts
tsconfig.json
tsconfig.tsbuildinfo
vite.config.ts
1 change: 1 addition & 0 deletions workspaces/package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"main": "./src/index.ts",
"module": "./src/index.ts",
"types": "./src/index.ts",
"source": "src",
"scripts": {
"clean": "rm -rf dist",
"build": "yarn clean && tsc && vite build && yarn build:docs && yarn prepare:packageJson",
Expand Down
4 changes: 0 additions & 4 deletions workspaces/site/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,5 @@
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,

"paths": {
"preshape": ["../package/src"]
}
}
}

0 comments on commit a424290

Please sign in to comment.