Skip to content

Commit

Permalink
PagesJS compatibility (#190)
Browse files Browse the repository at this point in the history
Introduce tsup and improve the package.json file in order to support PagesJS.

This works in both dev and prod mode of pagesJS

J=BACK-2545
TEST=manual

Publish an alpha version and test it with yext/search-ui-react#400 and @yext/pages@1.0.0-rc.3. Add several search components to the page and confirm they work as expected.
  • Loading branch information
cea2aj committed Sep 29, 2023
1 parent 99c3358 commit 3b8f863
Show file tree
Hide file tree
Showing 14 changed files with 964 additions and 191 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ jobs:
build_script: |
npm i -D react@17 react-dom@17 @testing-library/react@12
npm run build
node_matrix: '["16.x"]'

call_run_tests-react-16:
uses: yext/slapshot-reusable-workflows/.github/workflows/run_tests.yml@v1
with:
build_script: |
npm i -D react@16.14 react-dom@16.14 @testing-library/react@12
npm run build
node_matrix: '["16.x"]'
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

# build
/lib
/dist

# misc
.DS_Store
Expand Down
36 changes: 33 additions & 3 deletions THIRD-PARTY-NOTICES
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ THE SOFTWARE.

The following NPM package may be included in this product:

- cross-fetch@3.1.6
- cross-fetch@3.1.8

This package contains the following license and notice below:

Expand Down Expand Up @@ -384,7 +384,7 @@ THE SOFTWARE.

The following NPM package may be included in this product:

- node-fetch@2.6.11
- node-fetch@2.7.0

This package contains the following license and notice below:

Expand Down Expand Up @@ -412,9 +412,39 @@ SOFTWARE.

-----------

The following NPM package may be included in this product:

- object-assign@4.1.1

This package contains the following license and notice below:

The MIT License (MIT)

Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

-----------

The following NPM packages may be included in this product:

- react@18.1.0
- react@17.0.2
- use-sync-external-store@1.1.0

These packages each contain the following license and notice below:
Expand Down
Loading

0 comments on commit 3b8f863

Please sign in to comment.