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

Move core files to src folder and move JS files to TypeScript #44405

Merged
merged 27 commits into from
Jan 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
60a62b6
Move core code to src folder
timneutkens Dec 28, 2022
bf492f4
Update build step
timneutkens Dec 28, 2022
6a0539b
Update tests to import from src
timneutkens Dec 28, 2022
9760db8
Update to use src
timneutkens Dec 28, 2022
92d236f
Update tsec exemptions
timneutkens Dec 28, 2022
4a7930f
Ignore src
timneutkens Dec 28, 2022
adbe295
Add src to prettierignore
timneutkens Dec 28, 2022
70347e1
Add src to prettierignore for compiled
timneutkens Dec 28, 2022
e214aba
Update compiled folder location
timneutkens Dec 28, 2022
6bf93d3
Update src in taskfile
timneutkens Dec 28, 2022
f3b3010
Update precompiled
timneutkens Dec 28, 2022
5592eb1
Use dist constants
timneutkens Dec 29, 2022
e147db6
Use capital for CliCommand type
timneutkens Dec 29, 2022
7dd86d4
Migrate leftover .js files to TypeScript
timneutkens Dec 29, 2022
c1fcbe2
Update more files to TypeScript
timneutkens Dec 29, 2022
d893f11
Update more files to TypeScript
timneutkens Dec 29, 2022
a19a72c
Update more files to TypeScript
timneutkens Dec 29, 2022
1b32094
Update tsec config
timneutkens Dec 29, 2022
8de5250
Fix double declare
timneutkens Dec 29, 2022
f2b5c87
Fix types failing
timneutkens Dec 29, 2022
727d4a9
Use NEXT_VERSION instead of requiring package.json
timneutkens Dec 29, 2022
282b977
Add as string
timneutkens Dec 29, 2022
f7cd521
Fix lint error
timneutkens Dec 29, 2022
b2ed3bc
Disable lint for line
timneutkens Dec 29, 2022
e276a9b
Fix type error
timneutkens Dec 29, 2022
2d8232d
Fix usage of isEqualLocals
timneutkens Dec 29, 2022
5f5da1e
Merge branch 'canary' of github.com:vercel/next.js into add/src-folder
timneutkens Jan 1, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ examples/with-flow/**
examples/with-jest/**
examples/with-mobx-state-tree/**
examples/with-mobx/**
packages/next/bundles/webpack/packages/*.runtime.js
packages/next/bundles/webpack/packages/lazy-compilation-*.js
packages/next/compiled/**/*
packages/next/src/bundles/webpack/packages/*.runtime.js
packages/next/src/bundles/webpack/packages/lazy-compilation-*.js
packages/next/src/compiled/**/*
packages/react-refresh-utils/**/*.js
packages/react-dev-overlay/lib/**
**/__tmp__/**
Expand Down
6 changes: 3 additions & 3 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ node_modules
**/.next/**
**/_next/**
**/dist/**
packages/next/bundles/webpack/packages/*.runtime.js
packages/next/bundles/webpack/packages/lazy-compilation-*.js
packages/next/compiled/**
packages/next/src/bundles/webpack/packages/*.runtime.js
packages/next/src/bundles/webpack/packages/lazy-compilation-*.js
packages/next/src/compiled/**
timneutkens marked this conversation as resolved.
Show resolved Hide resolved
packages/react-refresh-utils/**/*.js
packages/react-refresh-utils/**/*.d.ts
packages/react-dev-overlay/lib/**
Expand Down
4 changes: 0 additions & 4 deletions packages/next/build/polyfills/fetch/index.js

This file was deleted.

13 changes: 0 additions & 13 deletions packages/next/build/swc/index.d.ts

This file was deleted.

7 changes: 0 additions & 7 deletions packages/next/build/swc/options.d.ts

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions packages/next/shared/lib/isomorphic/path.d.ts

This file was deleted.

File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import {
import { getPageStaticInfo } from './analysis/get-page-static-info'
import { normalizePathSep } from '../shared/lib/page-path/normalize-path-sep'
import { normalizePagePath } from '../shared/lib/page-path/normalize-page-path'
import { ServerRuntime } from '../types'
import { ServerRuntime } from '../../types'
import { normalizeAppPath } from '../shared/lib/router/utils/app-paths'
import { encodeMatchers } from './webpack/loaders/next-middleware-loader'
import { EdgeFunctionLoaderOptions } from './webpack/loaders/next-edge-function-loader'
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ SOFTWARE.
export default new Proxy(
{},
{
get: function getter(target, key) {
get: function getter(_target, key) {
if (key === '__esModule') {
return false
}
Expand Down
4 changes: 4 additions & 0 deletions packages/next/src/build/polyfills/fetch/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/* globals self */
const fetchModule = self.fetch.bind(self)
module.exports = fetchModule
module.exports.default = module.exports
File renamed without changes.
Loading