Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: Update package scope name to @google-psat #725

Merged
merged 1 commit into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
"version": "detect"
},
"import/resolver": {
"@ps-analysis-tool/eslint-import-resolver": {
"@google-psat/eslint-import-resolver": {
"mapping": {
"^@ps-analysis-tool\\/(.*)\\/(.*)": "./packages/$1/src/$2",
"^@ps-analysis-tool\\/(.*)": "./packages/$1/src/"
"^@google-psat\\/(.*)\\/(.*)": "./packages/$1/src/$2",
"^@google-psat\\/(.*)": "./packages/$1/src/"
},
"extensions": [".js", ".jsx", ".ts", ".tsx"]
},
Expand Down
150 changes: 75 additions & 75 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 21 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,29 @@
"unpublish:all:local": "npm run unpublish:local --workspaces",
"publish:all:remote": "npm run build:all && npm run publish:local --workspaces",
"unpublish:all:remote": "npm run unpublish:remote --workspaces",
"i18n:prebuild": "npm run build:remove -w @ps-analysis-tool/i18n",
"i18n:build": "npm run i18n:prebuild && npm run build -w @ps-analysis-tool/i18n",
"common:prebuild": "npm run build:remove -w @ps-analysis-tool/common",
"common:build": "npm run common:prebuild && npm run build -w @ps-analysis-tool/common",
"design-system:prebuild": "npm run build:remove -w @ps-analysis-tool/design-system",
"design-system:build": "npm run design-system:prebuild && npm run build -w @ps-analysis-tool/design-system",
"library-detection:prebuild": "npm run build:remove -w @ps-analysis-tool/library-detection",
"library-detection:build": "npm run library-detection:prebuild && npm run build -w @ps-analysis-tool/library-detection",
"analysis-utils:prebuild": "npm run build:remove -w @ps-analysis-tool/analysis-utils",
"analysis-utils:dev": "npm run dev -w @ps-analysis-tool/analysis-utils",
"analysis-utils:build": "npm run analysis-utils:prebuild && npm run build -w @ps-analysis-tool/analysis-utils",
"cli:dev": "npm run dev -w @ps-analysis-tool/cli",
"cli:prebuild": "npm run build:remove -w @ps-analysis-tool/cli",
"cli:build": "cross-env NODE_ENV=production npm run build -w @ps-analysis-tool/cli",
"i18n:prebuild": "npm run build:remove -w @google-psat/i18n",
"i18n:build": "npm run i18n:prebuild && npm run build -w @google-psat/i18n",
"common:prebuild": "npm run build:remove -w @google-psat/common",
"common:build": "npm run common:prebuild && npm run build -w @google-psat/common",
"design-system:prebuild": "npm run build:remove -w @google-psat/design-system",
"design-system:build": "npm run design-system:prebuild && npm run build -w @google-psat/design-system",
"library-detection:prebuild": "npm run build:remove -w @google-psat/library-detection",
"library-detection:build": "npm run library-detection:prebuild && npm run build -w @google-psat/library-detection",
"analysis-utils:prebuild": "npm run build:remove -w @google-psat/analysis-utils",
"analysis-utils:dev": "npm run dev -w @google-psat/analysis-utils",
"analysis-utils:build": "npm run analysis-utils:prebuild && npm run build -w @google-psat/analysis-utils",
"cli:dev": "npm run dev -w @google-psat/cli",
"cli:prebuild": "npm run build:remove -w @google-psat/cli",
"cli:build": "cross-env NODE_ENV=production npm run build -w @google-psat/cli",
"cli:start": "npm install && npm run cli:dev",
"cli": "node packages/cli/dist/main.js",
"cli-dashboard:dev": "npm run start -w @ps-analysis-tool/cli-dashboard",
"cli-dashboard:prebuild": "npm run build:remove -w @ps-analysis-tool/cli-dashboard",
"cli-dashboard:build": "npm run cli-dashboard:prebuild && cross-env NODE_ENV=production npm run build -w @ps-analysis-tool/cli-dashboard",
"cli-dashboard:dev": "npm run start -w @google-psat/cli-dashboard",
"cli-dashboard:prebuild": "npm run build:remove -w @google-psat/cli-dashboard",
"cli-dashboard:build": "npm run cli-dashboard:prebuild && cross-env NODE_ENV=production npm run build -w @google-psat/cli-dashboard",
"cookie-db:update": "node scripts/update-cookie-db.cjs",
"ext:dev": "npm run dev -w @ps-analysis-tool/extension",
"ext:prebuild": "npm run build:remove -w @ps-analysis-tool/extension",
"ext:build": "npm run ext:prebuild && cross-env NODE_ENV=production npm run build -w @ps-analysis-tool/extension",
"ext:dev": "npm run dev -w @google-psat/extension",
"ext:prebuild": "npm run build:remove -w @google-psat/extension",
"ext:build": "npm run ext:prebuild && cross-env NODE_ENV=production npm run build -w @google-psat/extension",
"ext:start": "npm install && npm run ext:dev",
"lint": "npm-run-all --parallel lint:*",
"lint:js": "eslint .",
Expand Down Expand Up @@ -62,7 +62,7 @@
"@babel/preset-env": "^7.22.5",
"@babel/preset-react": "^7.22.5",
"@babel/preset-typescript": "^7.22.5",
"@ps-analysis-tool/eslint-import-resolver": "*",
"@google-psat/eslint-import-resolver": "*",
"@storybook/addon-essentials": "^7.0.27",
"@storybook/addon-interactions": "^7.0.27",
"@storybook/addon-links": "^7.0.27",
Expand Down
4 changes: 2 additions & 2 deletions packages/analysis-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@ps-analysis-tool/analysis-utils",
"name": "@google-psat/analysis-utils",
"version": "1.0.0",
"description": "A package for CLI analysis",
"main": "dist/index.js",
Expand Down Expand Up @@ -36,7 +36,7 @@
},
"homepage": "https://github.com/GoogleChromeLabs/ps-analysis-tool",
"dependencies": {
"@ps-analysis-tool/common": "*",
"@google-psat/common": "*",
"puppeteer": "^22.10.0",
"simple-cookie": "^1.0.15",
"tldts": "^6.0.14",
Expand Down
2 changes: 1 addition & 1 deletion packages/analysis-utils/src/browserManagement/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
delay,
RESPONSE_EVENT,
REQUEST_EVENT,
} from '@ps-analysis-tool/common';
} from '@google-psat/common';

/**
* Internal dependencies.
Expand Down Expand Up @@ -73,7 +73,7 @@
this.pageResourcesMaps = {};
}

debugLog(msg: any) {

Check warning on line 76 in packages/analysis-utils/src/browserManagement/index.ts

View workflow job for this annotation

GitHub Actions / Lint

Unexpected any. Specify a different type
if (this.shouldLogDebug) {
console.log(msg);
}
Expand Down Expand Up @@ -548,7 +548,7 @@
}

getResources(urls: string[]) {
const allFetchedResources: { [key: string]: any } = {};

Check warning on line 551 in packages/analysis-utils/src/browserManagement/index.ts

View workflow job for this annotation

GitHub Actions / Lint

Unexpected any. Specify a different type

urls.forEach((url) => {
const page = this.pages[url];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* External dependencies.
*/
import { getDomain } from 'tldts';
import { CookieData } from '@ps-analysis-tool/common';
import { CookieData } from '@google-psat/common';
import type { Page } from 'puppeteer';
/**
* Internal dependencies.
Expand Down
2 changes: 1 addition & 1 deletion packages/analysis-utils/src/browserManagement/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import { CookieData } from '@ps-analysis-tool/common';
import { CookieData } from '@google-psat/common';

export type ViewportConfig = {
width: number;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
CookieDatabase,
LibraryMatchers,
deriveBlockingStatus,
} from '@ps-analysis-tool/common';
} from '@google-psat/common';

/**
* Internal dependencies.
Expand Down
Loading
Loading