Skip to content

Commit

Permalink
Package "page-pattern-modal": publishing to npm (#92871)
Browse files Browse the repository at this point in the history
* Fix for error TS7016: Could not find a declaration file for module '@automattic/calypso-config'

* Update version and fix command not found: copy-assets

* Run copy-assets command globally

* Fix for could not find a declaration file for module '@automattic/calypso-build'

* Bump version

* Fix npm publish errors for the dependency @automattic/onboarding

* Remove unused dependency

* Bump version

* Update yarn lock file

* Fix styles when package is imported

* Bump version

* Revert styles fix

* Bump version
  • Loading branch information
miksansegundo authored Jul 24, 2024
1 parent ead328d commit 11647c7
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 10 deletions.
6 changes: 5 additions & 1 deletion packages/i18n-utils/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,9 @@
},
"include": [ "src" ],
"exclude": [ "**/test/*" ],
"references": [ { "path": "../languages" }, { "path": "../calypso-url" } ]
"references": [
{ "path": "../languages" },
{ "path": "../calypso-url" },
{ "path": "../calypso-config" }
]
}
6 changes: 3 additions & 3 deletions packages/onboarding/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@
"types": "dist/types",
"scripts": {
"clean": "tsc --build ./tsconfig.json ./tsconfig-cjs.json --clean && rm -rf dist",
"build": "tsc --build ./tsconfig.json ./tsconfig-cjs.json && copy-assets && npx copyfiles ./styles/** dist",
"build": "tsc --build ./tsconfig.json ./tsconfig-cjs.json && yarn run -T copy-assets && npx copyfiles ./styles/** dist",
"prepack": "yarn run clean && yarn run build",
"watch": "tsc --build ./tsconfig.json --watch"
},
"dependencies": {
"@automattic/calypso-config": "workspace:^",
"@automattic/components": "workspace:^",
"@automattic/data-stores": "workspace:^",
"@wordpress/components": "^28.2.0",
Expand Down Expand Up @@ -58,6 +59,5 @@
"peerDependencies": {
"@wordpress/i18n": "^5.2.0",
"react": "^18.2.0"
},
"private": true
}
}
6 changes: 5 additions & 1 deletion packages/onboarding/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,9 @@
},
"include": [ "src" ],
"exclude": [ "**/test/*" ],
"references": [ { "path": "../components" }, { "path": "../data-stores" } ]
"references": [
{ "path": "../components" },
{ "path": "../data-stores" },
{ "path": "../calypso-config" }
]
}
5 changes: 2 additions & 3 deletions packages/page-pattern-modal/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@automattic/page-pattern-modal",
"version": "1.0.0-alpha.0",
"version": "1.1.4",
"description": "Automattic Page Pattern Modal.",
"homepage": "https://github.com/Automattic/wp-calypso",
"license": "GPL-2.0-or-later",
Expand All @@ -27,7 +27,6 @@
],
"types": "dist/types",
"dependencies": {
"@automattic/onboarding": "workspace:^",
"@automattic/typography": "workspace:^",
"@wordpress/block-editor": "^13.2.0",
"@wordpress/blocks": "^13.2.0",
Expand Down Expand Up @@ -55,7 +54,7 @@
},
"scripts": {
"clean": "tsc --build ./tsconfig.json ./tsconfig-cjs.json --clean && rm -rf dist",
"build": "tsc --build ./tsconfig.json ./tsconfig-cjs.json && copy-assets",
"build": "tsc --build ./tsconfig.json ./tsconfig-cjs.json && yarn run -T copy-assets",
"prepack": "yarn run clean && yarn run build"
}
}
2 changes: 1 addition & 1 deletion packages/page-pattern-modal/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
},
"include": [ "src" ],
"exclude": [ "**/test/*" ],
"references": [ { "path": "../onboarding" } ]
"references": []
}
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1523,6 +1523,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@automattic/onboarding@workspace:packages/onboarding"
dependencies:
"@automattic/calypso-config": "workspace:^"
"@automattic/calypso-typescript-config": "workspace:^"
"@automattic/components": "workspace:^"
"@automattic/data-stores": "workspace:^"
Expand Down Expand Up @@ -1557,7 +1558,6 @@ __metadata:
resolution: "@automattic/page-pattern-modal@workspace:packages/page-pattern-modal"
dependencies:
"@automattic/calypso-typescript-config": "workspace:^"
"@automattic/onboarding": "workspace:^"
"@automattic/typography": "workspace:^"
"@testing-library/react": "npm:^15.0.7"
"@wordpress/block-editor": "npm:^13.2.0"
Expand Down

0 comments on commit 11647c7

Please sign in to comment.