Skip to content

Commit

Permalink
try #70592
Browse files Browse the repository at this point in the history
  • Loading branch information
devjiwonchoi committed Sep 29, 2024
1 parent 2ba4b79 commit 2637d43
Show file tree
Hide file tree
Showing 323 changed files with 19 additions and 15 deletions.
5 changes: 3 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ packages/react-refresh-utils/**/*.js
packages/react-dev-overlay/lib/**
**/__tmp__/**
.github/actions/next-stats-action/.work
packages/next-codemod/transforms/__testfixtures__/**/*
packages/next-codemod/transforms/__tests__/**/*
packages/next-codemod/dist/**
packages/next-codemod/src/transforms/__testfixtures__/**/*
packages/next-codemod/src/transforms/__tests__/**/*
packages/next-codemod/**/*.js
packages/next-codemod/**/*.d.ts
packages/next-env/**/*.d.ts
Expand Down
5 changes: 3 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ crates/next-custom-transforms/tests/fixture/react-server-components/server-graph
packages/next-swc/native/**/*
packages/next-swc/docs/assets/**/*

packages/next-codemod/transforms/__testfixtures__/**
packages/next-codemod/transforms/__tests__/**
packages/next-codemod/dist/**
packages/next-codemod/src/transforms/__testfixtures__/**/*
packages/next-codemod/src/transforms/__tests__/**/*
packages/next-codemod/**/*.js
packages/next-codemod/**/*.d.ts

Expand Down
4 changes: 2 additions & 2 deletions packages/next-codemod/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
*.d.ts
*.js
*.js.map
!transforms/__tests__/**/*.js
!transforms/__testfixtures__/**/*.js
!src/transforms/__tests__/**/*.js
!src/transforms/__testfixtures__/**/*.js
16 changes: 9 additions & 7 deletions packages/next-codemod/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,22 @@
"prompts": "2.4.2"
},
"files": [
"transforms/*.js",
"transforms/lib/**/*.js",
"bin/*.js",
"lib/**/*.js",
"lib/cra-to-next/gitignore"
"dist/transforms/*.js",
"dist/transforms/lib/**/*.js",
"dist/bin/*.js",
"dist/lib/**/*.js",
"dist/lib/cra-to-next/gitignore"
],
"scripts": {
"build": "pnpm tsc -d -p tsconfig.json",
"build": "pnpm tsc -d -p tsconfig.json && pnpm build-dist && pnpm copy-testfixtures",
"build-dist": "rm -rf dist && pnpm tsc -d -p tsconfig.json --outDir dist",
"copy-testfixtures": "cp -r ./src/transforms/__tests__ ./dist/transforms && cp -r ./src/transforms/__testfixtures__ ./dist/transforms",
"prepublishOnly": "cd ../../ && turbo run build",
"dev": "pnpm tsc -d -w -p tsconfig.json",
"test": "jest"
},
"bin": {
"next-codemod": "./bin/next-codemod.js"
"next-codemod": "./dist/bin/next-codemod.js"
},
"devDependencies": {
"@types/jscodeshift": "0.11.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const onPromptState = (state: {
}
}

const packageJson = require('../package.json')
const packageJson = require('../../package.json')
const program = new Command(packageJson.name)
.description('Codemods for updating Next.js apps.')
.version(
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 2637d43

Please sign in to comment.