Skip to content

Commit

Permalink
chore: make sure polyfills are built for pnpm dev (vercel#41062)
Browse files Browse the repository at this point in the history
Re-lands vercel#40335 but without modifying the lock file.


## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have a helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have a helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `pnpm lint`
- [ ] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
  • Loading branch information
balazsorban44 authored and BowlingX committed Oct 5, 2022
1 parent f6d28ac commit d644c63
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -11,7 +11,7 @@
"clean": "pnpm lerna clean -y && pnpm lerna bootstrap && pnpm lerna exec 'rm -rf ./dist'",
"build": "turbo run build",
"lerna": "lerna",
"dev": "lerna run dev --stream --parallel",
"dev": "turbo run dev --parallel",
"test-types": "pnpm tsc",
"test-unit": "pnpm jest test/unit/",
"test-dev": "cross-env NEXT_TEST_MODE=dev pnpm testheadless",
Expand All @@ -23,7 +23,7 @@
"genstats": "cross-env LOCAL_STATS=true node .github/actions/next-stats-action/src/index.js",
"git-reset": "git reset --hard HEAD",
"git-clean": "git clean -d -x -e node_modules -e packages -f",
"lint-typescript": "lerna run typescript",
"lint-typescript": "turbo run typescript",
"lint-eslint": "eslint . --ext js,jsx,ts,tsx --max-warnings=0 --config .eslintrc.json --no-eslintrc",
"lint-no-typescript": "run-p prettier-check lint-eslint",
"lint": "run-p test-types lint-typescript prettier-check lint-eslint lint-language",
Expand Down
1 change: 1 addition & 0 deletions packages/next-polyfill-module/package.json
Expand Up @@ -10,6 +10,7 @@
},
"scripts": {
"build": "microbundle -i src/index.js -o dist/polyfill-module.js -f iife --no-sourcemap --external none --no-pkg-main",
"dev": "pnpm build",
"prepublishOnly": "cd ../../ && turbo run build"
},
"devDependencies": {
Expand Down
1 change: 1 addition & 0 deletions packages/next-polyfill-nomodule/package.json
Expand Up @@ -10,6 +10,7 @@
},
"scripts": {
"build": "microbundle -i src/index.js -o dist/polyfill-nomodule.js -f iife --no-sourcemap --external none --no-pkg-main",
"dev": "pnpm build",
"prepublishOnly": "cd ../../ && turbo run build"
},
"devDependencies": {
Expand Down
8 changes: 7 additions & 1 deletion turbo.json
@@ -1,4 +1,5 @@
{
"$schema": "https://turborepo.org/schema.json",
"pipeline": {
"build-native": {
"dependsOn": ["^build-native"],
Expand All @@ -15,6 +16,11 @@
"build": {
"dependsOn": ["^build"],
"outputs": ["dist/**"]
}
},
"dev": {
"dependsOn": ["^dev"],
"outputs": ["dist/**"]
},
"typescript": {}
}
}

0 comments on commit d644c63

Please sign in to comment.