Skip to content

Commit

Permalink
chore: publish this package from lib folder
Browse files Browse the repository at this point in the history
  • Loading branch information
just-boris committed Feb 12, 2024
1 parent 7c72181 commit cd22d35
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 27 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
18 changes: 6 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
{
"name": "@cloudscape-design/component-toolkit",
"version": "1.0.0-beta",
"files": [
"lib/*",
"dom.js",
"dom.d.ts",
"internal.js",
"internal.d.ts"
],
"main": "./lib/index.js",
"exports": {
".": "./lib/index.js",
"./dom": "./lib/dom/index.js",
"./internal": "./lib/internal/index.js",
".": "./index.js",
"./dom": "./dom/index.js",
"./internal": "./internal/index.js",
"./package.json": "./package.json"
},
"repository": {
Expand All @@ -21,14 +14,15 @@
},
"homepage": "https://cloudscape.design",
"scripts": {
"build": "tsc && node ./scripts/generate-exports.js",
"prebuild": "rm -rf lib",
"build": "tsc",
"postbuild": "cp package.json README.md lib",
"test-pages": "vite --config ./test-pages/vite.config.ts",
"test:unit": "jest -c jest.unit.config.js",
"test:integ": "jest -c jest.integ.config.js",
"test": "npm run test:unit && npm-run-all -r -p test-pages test:integ",
"lint": "eslint --ignore-path .gitignore --ext ts,tsx,js .",
"preinstall": "node ./scripts/in-github-workflow.js && ./scripts/prepare-package-lock.js || :",
"prepublishOnly": "rimraf ./dist && npm run build",
"prepare": "husky install"
},
"dependencies": {
Expand Down
13 changes: 0 additions & 13 deletions scripts/generate-exports.js

This file was deleted.

3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
"declaration": true,
"jsx": "react",
"rootDir": "src",
"outDir": "lib",
"incremental": true
"outDir": "lib"
},
"include": ["src"],
"exclude": ["**/__tests__/**", "**/__integ__/**"]
Expand Down

0 comments on commit cd22d35

Please sign in to comment.