Skip to content

Commit

Permalink
chore: Publish from lib folder instead of dist
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldowseza committed Mar 7, 2024
1 parent 8c3fd50 commit d189759
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ jobs:
release:
uses: cloudscape-design/actions/.github/workflows/release.yml@main
secrets: inherit
with:
publish-packages: lib
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
build
dist
lib
node_modules
coverage
8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@
"url": "https://github.com/cloudscape-design/documenter.git"
},
"homepage": "https://cloudscape.design",
"main": "./dist/index.js",
"files": [
"dist"
],
"main": "./index.js",
"scripts": {
"lint": "eslint --ignore-path .gitignore --ext js,ts,tsx .",
"prebuild": "rm -rf lib",
"build": "tsc",
"postbuild": "cp package.json README.md LICENSE lib",
"test": "jest",
"prepublishOnly": "npm run build",
"prepare": "husky install"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"types": ["node"],
"lib": ["es2019"],
"declaration": true,
"outDir": "./dist",
"outDir": "./lib",
"strict": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
Expand Down

0 comments on commit d189759

Please sign in to comment.