mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-27 07:58:45 +03:00
Update playwright test
This commit is contained in:
parent
4fa991be16
commit
f24e4acae2
@ -199,7 +199,7 @@
|
|||||||
],
|
],
|
||||||
"bin": "./script/cli.js",
|
"bin": "./script/cli.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "./script/build-dist.sh && ./script/build-module.js",
|
"build": "./script/build-dist.sh && ./script/build-esm.js",
|
||||||
"build+test": "npm run build && npm run test",
|
"build+test": "npm run build && npm run test",
|
||||||
"fuzz": "jazzer ./test/jazzer-fuzz-test.js --sync",
|
"fuzz": "jazzer ./test/jazzer-fuzz-test.js --sync",
|
||||||
"test": "./script/test-all.sh",
|
"test": "./script/test-all.sh",
|
||||||
|
@ -7,7 +7,7 @@ const generateMJS = (module) => {
|
|||||||
let text = fs.readFileSync(src, 'utf-8');
|
let text = fs.readFileSync(src, 'utf-8');
|
||||||
|
|
||||||
replacements.push(
|
replacements.push(
|
||||||
[/const (.+?)\s*=\s*require\((.+)\)/ig, 'import $1 from $2'],
|
[/const (.+?)\s*=\s*require\(\'(.+)\'\)/ig, 'import $1 from \'$2.mjs\''],
|
||||||
[/module\.exports =/ig, 'export']
|
[/module\.exports =/ig, 'export']
|
||||||
);
|
);
|
||||||
replacements.forEach(rep => {
|
replacements.forEach(rep => {
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user