Skip to content

Commit

Permalink
Add a separate entry point for playwright interface
Browse files Browse the repository at this point in the history
  • Loading branch information
dilirity committed Jul 29, 2024
1 parent 3f586d8 commit 5c69332
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
12 changes: 12 additions & 0 deletions projects/js-packages/critical-css-gen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,24 @@
"import": "./build-node/back-end.js",
"require": "./build-node/back-end.js",
"default": "./build-node/back-end.js"
},
"./playwright": {
"types": "./build-node/browser-interface-playwright.d.ts",
"import": "./build-node/browser-interface-playwright.js"
}
},
"dependencies": {
"clean-css": "^5.3.1",
"css-tree": "^2.3.1"
},
"peerDependencies": {
"playwright-core": "^1.45.1"
},
"peerDependenciesMeta": {
"playwright-core": {
"optional": true
}
},
"engines": {
"node": ">=18.0.0"
}
Expand Down
1 change: 0 additions & 1 deletion projects/js-packages/critical-css-gen/src/back-end.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export { BrowserInterfacePlaywright } from './browser-interface-playwright.js';
export { BrowserInterfaceIframe } from './browser-interface-iframe.js';
export { BrowserInterface } from './browser-interface.js';
export { generateCriticalCSS } from './generate-critical-css.js';
Expand Down
2 changes: 1 addition & 1 deletion projects/js-packages/critical-css-gen/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "jetpack-js-tools/tsconfig.tsc.json",
"include": [ "src/back-end.ts" ],
"include": [ "src/back-end.ts", "src/browser-interface-playwright.ts" ],
"exclude": [ "node_modules/**/*" ],
"compilerOptions": {
"outDir": "./build-node",
Expand Down

0 comments on commit 5c69332

Please sign in to comment.