mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: move index.js into src and TS-ify (#6049)
It was causing some infra issues when trying to migrate tests to TypeScript (that's WIP in another branch that I'll have up soon). It's unusual to have the entire src in TS except for the main file, which then reaches into the compiled `lib` directory for the files it needs. Much better is to move the entry point into TypeScript itself and update the `main` entry in our `package.json` to point to the compiled output. This also has the advantange of hooking up all the TS type defs that we are shipping and will make that process easier too, along with making it easier to port our tests to TypeScript.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
"name": "puppeteer",
|
||||
"version": "4.0.0-post",
|
||||
"description": "A high-level API to control headless Chrome over the DevTools Protocol",
|
||||
"main": "index.js",
|
||||
"main": "lib/index.js",
|
||||
"repository": "github:puppeteer/puppeteer",
|
||||
"engines": {
|
||||
"node": ">=10.18.1"
|
||||
|
||||
Reference in New Issue
Block a user