Skip to content

Commit

Permalink
Merge pull request #19398 from Platiplus/18732-migrating-codemod-to-t…
Browse files Browse the repository at this point in the history
…s-up

Build: Bundle lib/codemod with ts-up
  • Loading branch information
ndelangen authored Oct 17, 2022
2 parents 36e2503 + 3ecbe3b commit 77638cd
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
31 changes: 20 additions & 11 deletions code/lib/codemod/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,21 @@
},
"license": "MIT",
"sideEffects": false,
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/index.mjs",
"types": "./dist/index.d.ts"
},
"./package.json": "./package.json"
},
"main": "dist/index.js",
"module": "dist/index.mjs",
"jsnext:main": "src/index.js",
"files": [
"dist/**/*",
"README.md",
"*.js",
"*.d.ts",
"!__testfixtures__"
],
"types": "dist/index.d.ts",
"scripts": {
"check": "../../../scripts/node_modules/.bin/tsc --noEmit",
"prep": "node ../../../scripts/prepare.js"
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@babel/types": "^7.12.11",
Expand All @@ -45,7 +47,8 @@
"jscodeshift": "^0.13.1",
"lodash": "^4.17.21",
"prettier": ">=2.2.1 <=2.3.0",
"recast": "^0.19.0"
"recast": "^0.19.0",
"util": "^0.12.4"
},
"devDependencies": {
"jest": "^26.6.3",
Expand All @@ -55,5 +58,11 @@
"publishConfig": {
"access": "public"
},
"bundler": {
"platform": "node",
"entries": [
"./src/index.js"
]
},
"gitHead": "438114fcf62a763f0e8c07e2c34890dd987ca431"
}
1 change: 1 addition & 0 deletions code/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7402,6 +7402,7 @@ __metadata:
prettier: ">=2.2.1 <=2.3.0"
recast: ^0.19.0
typescript: ~4.6.3
util: ^0.12.4
languageName: unknown
linkType: soft

Expand Down

0 comments on commit 77638cd

Please sign in to comment.