Skip to content

Commit ea5e69a

Browse files
committed
feat(playwright-ct-angular): ✨ add playwright bin entry
1 parent 13b58e8 commit ea5e69a

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

packages/playwright-ct-angular/package.json

+3
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,8 @@
1313
"@angular/platform-browser-dynamic": "^16.0.0 || ^17.0.0",
1414
"rxjs": "^7.0.0",
1515
"zone.js": "*"
16+
},
17+
"bin": {
18+
"playwright": "cli.js"
1619
}
1720
}

packages/playwright-ct-angular/project.json

+5
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@
3131
"packages/playwright-ct-angular/src/transform-angular.ts"
3232
],
3333
"assets": [
34+
{
35+
"glob": "cli.js",
36+
"input": "packages/playwright-ct-angular/src",
37+
"output": "."
38+
},
3439
{
3540
"glob": "register-source.mjs",
3641
"input": "packages/playwright-ct-angular/src",
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env node
2+
/**
3+
* Copyright (c) Microsoft Corporation.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
18+
const { program } = require('@playwright/experimental-ct-core/lib/program');
19+
20+
program.parse(process.argv);

0 commit comments

Comments
 (0)