Add coexistence checks to all enqueue methods to prevent loading both React and Grid.js assets simultaneously. Changes: - ReactAdmin.php: Only enqueue React assets when ?react=1 - Init.php: Skip Grid.js when React active on admin pages - Form.php, Coupon.php, Access.php: Restore classic assets when ?react=0 - Customer.php, Product.php, License.php: Add coexistence checks Now the toggle between Classic and React versions works correctly. Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
61 lines
1.5 KiB
JSON
61 lines
1.5 KiB
JSON
{
|
|
"name": "validate-npm-package-name",
|
|
"version": "5.0.1",
|
|
"description": "Give me a string and I'll tell you if it's a valid npm package name",
|
|
"main": "lib/",
|
|
"directories": {
|
|
"test": "test"
|
|
},
|
|
"devDependencies": {
|
|
"@npmcli/eslint-config": "^4.0.0",
|
|
"@npmcli/template-oss": "4.22.0",
|
|
"tap": "^16.0.1"
|
|
},
|
|
"scripts": {
|
|
"cov:test": "TAP_FLAGS='--cov' npm run test:code",
|
|
"test:code": "tap ${TAP_FLAGS:-'--'} test/*.js",
|
|
"test:style": "standard",
|
|
"test": "tap",
|
|
"lint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"",
|
|
"postlint": "template-oss-check",
|
|
"template-oss-apply": "template-oss-apply --force",
|
|
"lintfix": "npm run lint -- --fix",
|
|
"snap": "tap",
|
|
"posttest": "npm run lint"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/npm/validate-npm-package-name.git"
|
|
},
|
|
"keywords": [
|
|
"npm",
|
|
"package",
|
|
"names",
|
|
"validation"
|
|
],
|
|
"author": "GitHub Inc.",
|
|
"license": "ISC",
|
|
"bugs": {
|
|
"url": "https://github.com/npm/validate-npm-package-name/issues"
|
|
},
|
|
"homepage": "https://github.com/npm/validate-npm-package-name",
|
|
"files": [
|
|
"bin/",
|
|
"lib/"
|
|
],
|
|
"engines": {
|
|
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
|
|
},
|
|
"templateOSS": {
|
|
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
|
|
"version": "4.22.0",
|
|
"publish": true
|
|
},
|
|
"tap": {
|
|
"nyc-arg": [
|
|
"--exclude",
|
|
"tap-snapshots/**"
|
|
]
|
|
}
|
|
}
|