Skip to content

Commit

Permalink
chore(repo): promote rollup dependencies into workspace
Browse files Browse the repository at this point in the history
- remove unused build.js script
  • Loading branch information
HuiSF committed Jan 31, 2024
1 parent fa0423d commit 8b3b204
Show file tree
Hide file tree
Showing 26 changed files with 120 additions and 750 deletions.
9 changes: 2 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
"@babel/preset-env": "^7.0.0",
"@babel/preset-react": "^7.0.0",
"@lerna/legacy-package-management": "^7.4.2",
"@rollup/plugin-typescript": "^11.1.6",
"@size-limit/dual-publish": "^8.1.0",
"@size-limit/file": "^8.1.0",
"@size-limit/webpack": "^8.1.0",
Expand All @@ -98,12 +99,7 @@
"license-check-and-add": "^4.0.5",
"prettier": "^3.1.0",
"rimraf": "^2.6.2",
"rollup": "^0.67.4",
"rollup-plugin-commonjs": "^9.2.0",
"rollup-plugin-json": "^3.1.0",
"rollup-plugin-node-resolve": "^4.0.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"rollup-plugin-typescript": "^1.0.0",
"rollup": "^4.9.6",
"size-limit": "^8.1.0",
"terser-webpack-plugin": "^5.3.6",
"ts-jest": "^29.1.1",
Expand All @@ -117,7 +113,6 @@
"webpack": "^5.75.0",
"webpack-bundle-analyzer": "^4.7.0",
"webpack-cli": "^5.0.0",
"winston": "^3.2.1",
"wml": "0.0.83"
},
"resolutions": {
Expand Down
5 changes: 2 additions & 3 deletions packages/adapter-nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,13 @@
"cookie": "0.5.0"
},
"devDependencies": {
"@rollup/plugin-typescript": "11.1.5",
"@types/cookie": "0.5.1",
"@types/node": "^20.3.1",
"@types/react": "^18.2.13",
"@types/react-dom": "^18.2.6",
"aws-amplify": "6.0.13",
"jest-fetch-mock": "3.0.3",
"next": ">= 13.5.0 < 15.0.0",
"rollup": "3.29.4"
"next": ">= 13.5.0 < 15.0.0"
},
"publishConfig": {
"access": "public"
Expand Down Expand Up @@ -62,6 +60,7 @@
"build": "npm run clean && npm run build:esm-cjs",
"build-with-test": "npm test && npm run build",
"build:esm-cjs": "rollup -c rollup.config.mjs",
"build:esm-cjs:watch": "npm run build:esm-cjs -- --watch",
"build:cjs:watch": "rimraf dist/cjs && tsc -p tsconfig.watch.json -m commonjs --outDir dist/cjs --watch",
"build:esm:watch": "rimraf dist/esm && tsc -p tsconfig.watch.json -m esnext --outDir dist/esm --watch",
"clean": "npm run clean:size && rimraf dist",
Expand Down
4 changes: 1 addition & 3 deletions packages/analytics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,6 @@
"devDependencies": {
"@aws-amplify/core": "6.0.13",
"@aws-amplify/react-native": "1.0.13",
"@aws-sdk/types": "3.398.0",
"@rollup/plugin-typescript": "11.1.5",
"rollup": "3.29.4"
"@aws-sdk/types": "3.398.0"
}
}
4 changes: 1 addition & 3 deletions packages/api-graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,7 @@
},
"homepage": "https://aws-amplify.github.io/",
"devDependencies": {
"@aws-amplify/data-schema": "^0.12.11",
"@rollup/plugin-typescript": "11.1.5",
"rollup": "3.29.4"
"@aws-amplify/data-schema": "^0.12.11"
},
"files": [
"dist/cjs",
Expand Down
4 changes: 1 addition & 3 deletions packages/api-rest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,7 @@
},
"devDependencies": {
"@aws-amplify/core": "6.0.13",
"@aws-amplify/react-native": "1.0.13",
"@rollup/plugin-typescript": "11.1.5",
"rollup": "3.29.4"
"@aws-amplify/react-native": "1.0.13"
},
"size-limit": [
{
Expand Down
4 changes: 0 additions & 4 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,6 @@
"url": "https://github.com/aws/aws-amplify/issues"
},
"homepage": "https://aws-amplify.github.io/",
"devDependencies": {
"@rollup/plugin-typescript": "11.1.5",
"rollup": "3.29.4"
},
"files": [
"dist/cjs",
"dist/esm",
Expand Down
4 changes: 1 addition & 3 deletions packages/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,6 @@
"devDependencies": {
"@aws-amplify/core": "6.0.13",
"@aws-amplify/react-native": "1.0.13",
"@jest/test-sequencer": "^29.7.0",
"@rollup/plugin-typescript": "11.1.5",
"rollup": "3.29.4"
"@jest/test-sequencer": "^29.7.0"
}
}
4 changes: 0 additions & 4 deletions packages/aws-amplify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,6 @@
"@aws-amplify/storage": "6.0.13",
"tslib": "^2.5.0"
},
"devDependencies": {
"@rollup/plugin-typescript": "11.1.5",
"rollup": "3.29.4"
},
"size-limit": [
{
"name": "[Analytics] record (Pinpoint)",
Expand Down
4 changes: 1 addition & 3 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,8 @@
},
"devDependencies": {
"@aws-amplify/react-native": "1.0.13",
"@rollup/plugin-typescript": "11.1.5",
"@types/js-cookie": "3.0.2",
"genversion": "^2.2.0",
"rollup": "3.29.4"
"genversion": "^2.2.0"
},
"size-limit": [
{
Expand Down
2 changes: 0 additions & 2 deletions packages/datastore-storage-adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,10 @@
"devDependencies": {
"@aws-amplify/core": "6.0.13",
"@aws-amplify/datastore": "5.0.13",
"@rollup/plugin-typescript": "11.1.5",
"@types/react-native-sqlite-storage": "5.0.1",
"expo-file-system": "13.1.4",
"expo-sqlite": "10.1.0",
"react-native-sqlite-storage": "5.0.0",
"rollup": "3.29.4",
"sqlite3": "^5.0.2"
}
}
1 change: 1 addition & 0 deletions packages/datastore-storage-adapter/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"target": "es2020",
"noImplicitAny": false,
"downlevelIteration": true,
"incremental": true,
"lib": [
"es5",
"es2015",
Expand Down
4 changes: 1 addition & 3 deletions packages/datastore/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,11 @@
"devDependencies": {
"@aws-amplify/core": "6.0.13",
"@aws-amplify/react-native": "1.0.13",
"@rollup/plugin-typescript": "11.1.5",
"@types/uuid-validate": "^0.0.1",
"dexie": "3.2.2",
"dexie-export-import": "1.0.3",
"fake-indexeddb": "^4.0.2",
"graphql": "15.8.0",
"rollup": "3.29.4"
"graphql": "15.8.0"
},
"size-limit": [
{
Expand Down
4 changes: 1 addition & 3 deletions packages/geo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,7 @@
"@aws-amplify/core": "^6.0.0"
},
"devDependencies": {
"@aws-amplify/core": "6.0.13",
"@rollup/plugin-typescript": "11.1.5",
"rollup": "3.29.4"
"@aws-amplify/core": "6.0.13"
},
"size-limit": [
{
Expand Down
4 changes: 1 addition & 3 deletions packages/interactions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,7 @@
"uuid": "^9.0.0"
},
"devDependencies": {
"@aws-amplify/core": "6.0.13",
"@rollup/plugin-typescript": "11.1.5",
"rollup": "3.29.4"
"@aws-amplify/core": "6.0.13"
},
"size-limit": [
{
Expand Down
4 changes: 1 addition & 3 deletions packages/notifications/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,6 @@
},
"devDependencies": {
"@aws-amplify/core": "6.0.13",
"@aws-amplify/react-native": "1.0.13",
"@rollup/plugin-typescript": "11.1.5",
"rollup": "3.29.4"
"@aws-amplify/react-native": "1.0.13"
}
}
4 changes: 1 addition & 3 deletions packages/predictions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@
"@aws-amplify/core": "^6.0.0"
},
"devDependencies": {
"@aws-amplify/core": "6.0.13",
"@rollup/plugin-typescript": "11.1.5",
"rollup": "3.29.4"
"@aws-amplify/core": "6.0.13"
},
"size-limit": [
{
Expand Down
4 changes: 1 addition & 3 deletions packages/pubsub/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@
"@aws-amplify/core": "^6.0.0"
},
"devDependencies": {
"@aws-amplify/core": "6.0.13",
"@rollup/plugin-typescript": "11.1.5",
"rollup": "3.29.4"
"@aws-amplify/core": "6.0.13"
},
"size-limit": [
{
Expand Down
4 changes: 1 addition & 3 deletions packages/react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,9 @@
"@aws-amplify/rtn-web-browser": "1.0.13",
"@react-native-async-storage/async-storage": "^1.17.12",
"@react-native-community/netinfo": "4.7.0",
"@rollup/plugin-typescript": "11.1.5",
"@types/base-64": "1.0.0",
"react-native": "0.71.0",
"react-native-get-random-values": "1.9.0",
"rollup": "3.29.4"
"react-native-get-random-values": "1.9.0"
},
"repository": {
"type": "git",
Expand Down
4 changes: 1 addition & 3 deletions packages/rtn-push-notification/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@
"ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 99"
},
"devDependencies": {
"@rollup/plugin-typescript": "11.1.5",
"@types/react-native": "0.70.0",
"rollup": "3.29.4"
"@types/react-native": "0.70.0"
},
"repository": {
"type": "git",
Expand Down
4 changes: 1 addition & 3 deletions packages/rtn-web-browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,8 @@
"ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 88.21"
},
"devDependencies": {
"@rollup/plugin-typescript": "11.1.5",
"@types/react-native": "0.70.0",
"react-native": "0.72.3",
"rollup": "3.29.4"
"react-native": "0.72.3"
},
"repository": {
"type": "git",
Expand Down
5 changes: 1 addition & 4 deletions packages/storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,6 @@
},
"devDependencies": {
"@aws-amplify/core": "6.0.13",
"@aws-amplify/react-native": "1.0.13",
"@rollup/plugin-json": "6.0.1",
"@rollup/plugin-typescript": "11.1.5",
"rollup": "3.29.4"
"@aws-amplify/react-native": "1.0.13"
}
}
7 changes: 4 additions & 3 deletions rollup/common.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

const defaultTSConfigPath = './tsconfig.build.json';

const isWatch = process.env.ROLLUP_WATCH === 'true';

/** @type {import("rollup").OutputOptions}*/
export const cjsOutput = {
dir: 'dist/cjs',
Expand All @@ -17,9 +19,9 @@ export const cjsTSOptions = {
outDir: 'dist/cjs',
declaration: false, // declarations are handled by the ESM build
module: 'CommonJS',
sourceMap: false,
tsconfig: defaultTSConfigPath,
tsBuildInfoFile: 'dist/meta/cjs.tsbuildinfo',
noEmitOnError: !isWatch,
};

/** @type {import("rollup").OutputOptions}*/
Expand All @@ -34,8 +36,7 @@ export const esmOutput = {

export const esmTSOptions = {
outDir: 'dist/esm',
declaration: true,
sourceMap: false,
tsconfig: defaultTSConfigPath,
tsBuildInfoFile: 'dist/meta/cjs.tsbuildinfo',
noEmitOnError: !isWatch,
};
Loading

0 comments on commit 8b3b204

Please sign in to comment.