Skip to content

Commit b5c69bd

Browse files
author
Ahmed Hamouda
committed
chore: update build scripts to explicitly call prebuild
1 parent 126d0d5 commit b5c69bd

File tree

12 files changed

+13
-13
lines changed

12 files changed

+13
-13
lines changed

packages/react-ai/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"LICENSE"
3030
],
3131
"scripts": {
32-
"build": "yarn build:rollup",
32+
"build": "yarn prebuild && yarn build:rollup",
3333
"build:rollup": "yarn g:rollup --config",
3434
"check:esm": "node --input-type=module --eval 'import \"@aws-amplify/ui-react-ai\"'",
3535
"clean": "yarn g:rimraf dist node_modules",

packages/react-core-notifications/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"LICENSE"
2424
],
2525
"scripts": {
26-
"build": "yarn build:rollup",
26+
"build": "yarn prebuild && yarn build:rollup",
2727
"build:rollup": "yarn g:rollup --config",
2828
"check:esm": "node --input-type=module --eval 'import \"@aws-amplify/ui-react-core-notifications\"'",
2929
"clean": "yarn g:rimraf dist node_modules",

packages/react-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
],
3131
"scripts": {
3232
"clean": "yarn g:rimraf dist node_modules",
33-
"build": "yarn g:rollup --config",
33+
"build": "yarn prebuild && yarn g:rollup --config",
3434
"check:esm": "node --input-type=module --eval 'import \"@aws-amplify/ui-react-core\"'",
3535
"dev": "yarn build --watch",
3636
"lint": "yarn typecheck && eslint .",

packages/react-geo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"LICENSE"
2727
],
2828
"scripts": {
29-
"build": "yarn build:rollup",
29+
"build": "yarn prebuild && yarn build:rollup",
3030
"build:rollup": "yarn g:rollup --config",
3131
"check:esm": "node --input-type=module --eval 'import \"@aws-amplify/ui-react-geo\"'",
3232
"clean": "yarn g:rimraf dist node_modules",

packages/react-liveness/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"LICENSE"
3030
],
3131
"scripts": {
32-
"build": "yarn build:rollup",
32+
"build": "yarn prebuild && yarn build:rollup",
3333
"build:rollup": "yarn g:rollup --config",
3434
"check:esm": "node --input-type=module --eval 'import \"@aws-amplify/ui-react-liveness\"'",
3535
"clean": "yarn g:rimraf dist node_modules",

packages/react-native/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"types": "dist/index.d.ts",
88
"license": "Apache-2.0",
99
"scripts": {
10-
"build": "yarn build:cjs && yarn build:esm",
10+
"build": "yarn prebuild && yarn build:cjs && yarn build:esm",
1111
"build:cjs": "yarn g:tsc --project tsconfig.cjs.json && cp -a src/assets/icons lib/assets",
1212
"build:esm": "yarn g:tsc --project tsconfig.esm.json && cp -a src/assets/icons dist/assets",
1313
"clean": "yarn g:rimraf dist",

packages/react-notifications/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"LICENSE"
2727
],
2828
"scripts": {
29-
"build": "yarn build:rollup",
29+
"build": "yarn prebuild && yarn build:rollup",
3030
"build:rollup": "yarn g:rollup --config",
3131
"check:esm": "node --input-type=module --eval 'import \"@aws-amplify/ui-react-notifications\"'",
3232
"clean": "yarn g:rimraf dist node_modules",

packages/react-storage/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"browser"
3333
],
3434
"scripts": {
35-
"build": "yarn build:rollup",
35+
"build": "yarn prebuild && yarn build:rollup",
3636
"build:rollup": "yarn g:rollup --config",
3737
"check:esm": "node --input-type=module --eval 'import \"@aws-amplify/ui-react-storage\"'",
3838
"clean": "yarn g:rimraf dist node_modules",

packages/react/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@
4141
"LICENSE"
4242
],
4343
"scripts": {
44-
"build": "yarn build:catalog && yarn build:CSS && yarn build:rollup",
44+
"build": "yarn prebuild && yarn build:catalog && yarn build:CSS && yarn build:rollup",
4545
"build:catalog": "yarn node -r esbuild-register scripts/generatePrimitiveCatalog.ts",
4646
"build:CSS": "yarn node -r esbuild-register scripts/copyCSS.ts",
4747
"build:rollup": "yarn g:rollup --config",
4848
"check:esm": "node --input-type=module --eval 'import \"@aws-amplify/ui-react\"'",
4949
"clean": "yarn g:rimraf dist node_modules",
5050
"dev": "yarn build:rollup --watch",
5151
"lint": "yarn typecheck && eslint .",
52-
"prebuild": "rimraf dist",
52+
"prebuild": "yarn g:rimraf dist",
5353
"size": "yarn g:size-limit",
5454
"test": "yarn g:jest",
5555
"test:watch": "yarn test --watch",

packages/test-utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"src"
1818
],
1919
"scripts": {
20-
"build": "yarn build:dist",
20+
"build": "yarn prebuild && yarn build:dist",
2121
"build:dist": "yarn g:rollup --config",
2222
"clean": "yarn g:rimraf dist node_modules",
2323
"dev": "yarn build --watch",

0 commit comments

Comments
 (0)