Skip to content

Commit

Permalink
fix: remove pnpm, use yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
maitrungduc1410 committed Dec 18, 2023
1 parent b041c50 commit 242ee4a
Show file tree
Hide file tree
Showing 6 changed files with 294 additions and 7,244 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build-zip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,9 @@ jobs:
path: node_modules
key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }}

- uses: pnpm/action-setup@v2
- run: yarn install --frozen-lockfile

- run: pnpm install --frozen-lockfile

- run: pnpm build
- run: yarn build

- uses: actions/upload-artifact@v3
with:
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ jobs:
path: node_modules
key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }}

- uses: pnpm/action-setup@v2
- run: yarn install --frozen-lockfile

- run: pnpm install --frozen-lockfile

- run: pnpm test
- run: yarn test
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@
# Develop
To Develop the extension:
- First clone the project
- Install `pnpm` globally: `npm install -g pnpm`
- Run `pnpm install`
- Run `npm run dev` (for Chrome/Edge) or `npm run dev:firefox` for Firefox
- Run `yarn install`
- Run `yarn dev` (for Chrome/Edge) or `yarn dev:firefox` for Firefox

After that, a `dist` folder will be generated, next based on your browser do the following
- Chrome: open `chrome://extensions/` and drag `dist` folder there
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
"build:firefox:watch": "cross-env __DEV__=true __FIREFOX__=true vite build -w --mode development",
"build:hmr": "rollup --config utils/reload/rollup.config.mjs",
"wss": "node utils/reload/initReloadServer.js",
"dev": "pnpm build:hmr && (run-p wss build:watch)",
"dev:firefox": "pnpm build:hmr && (run-p wss build:firefox:watch)",
"dev": "yarn build:hmr && (run-p wss build:watch)",
"dev:firefox": "yarn build:hmr && (run-p wss build:firefox:watch)",
"test": "jest",
"commitlint": "commitlint --edit",
"lint": "eslint src --ext .ts",
"lint:fix": "pnpm lint --fix",
"lint:fix": "yarn lint --fix",
"prettier": "prettier . --write",
"prepare": "husky install"
},
Expand Down
Loading

0 comments on commit 242ee4a

Please sign in to comment.