200 lines
5.4 KiB
JSON
200 lines
5.4 KiB
JSON
{
|
|
"name": "@woocommerce/data",
|
|
"version": "5.0.0",
|
|
"description": "WooCommerce Admin data store and utilities",
|
|
"author": "Automattic",
|
|
"license": "GPL-3.0-or-later",
|
|
"keywords": [
|
|
"wordpress",
|
|
"woocommerce",
|
|
"data"
|
|
],
|
|
"engines": {
|
|
"node": "^20.11.1",
|
|
"pnpm": "9.1.3"
|
|
},
|
|
"homepage": "https://github.com/woocommerce/woocommerce/tree/trunk/packages/js/data/README.md",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/woocommerce/woocommerce.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/woocommerce/woocommerce/issues"
|
|
},
|
|
"main": "build/index.js",
|
|
"module": "build-module/index.js",
|
|
"types": "build-types",
|
|
"files": [
|
|
"build",
|
|
"build-module",
|
|
"build-types"
|
|
],
|
|
"scripts": {
|
|
"build": "pnpm --if-present --workspace-concurrency=Infinity --stream --filter=\"$npm_package_name...\" '/^build:project:.*$/'",
|
|
"build:project": "pnpm --if-present '/^build:project:.*$/'",
|
|
"build:project:cjs": "wireit",
|
|
"build:project:esm": "wireit",
|
|
"changelog": "XDEBUG_MODE=off composer install --quiet && composer exec -- changelogger",
|
|
"lint": "pnpm --if-present '/^lint:lang:.*$/'",
|
|
"lint:fix": "pnpm --if-present '/^lint:fix:lang:.*$/'",
|
|
"lint:fix:lang:js": "eslint src --fix",
|
|
"lint:lang:js": "eslint src",
|
|
"prepack": "pnpm build",
|
|
"test:js": "jest --config ./jest.config.json --passWithNoTests",
|
|
"watch:build": "pnpm --if-present --workspace-concurrency=Infinity --filter=\"$npm_package_name...\" --parallel '/^watch:build:project:.*$/'",
|
|
"watch:build:project": "pnpm --if-present run '/^watch:build:project:.*$/'",
|
|
"watch:build:project:cjs": "wireit",
|
|
"watch:build:project:esm": "wireit"
|
|
},
|
|
"lint-staged": {
|
|
"*.(t|j)s?(x)": [
|
|
"pnpm lint:fix",
|
|
"pnpm test-staged"
|
|
]
|
|
},
|
|
"dependencies": {
|
|
"@woocommerce/date": "workspace:*",
|
|
"@woocommerce/navigation": "workspace:*",
|
|
"@woocommerce/tracks": "workspace:*",
|
|
"@wordpress/api-fetch": "wp-6.0",
|
|
"@wordpress/compose": "wp-6.0",
|
|
"@wordpress/core-data": "wp-6.0",
|
|
"@wordpress/data": "wp-6.0",
|
|
"@wordpress/data-controls": "wp-6.0",
|
|
"@wordpress/deprecated": "wp-6.0",
|
|
"@wordpress/element": "wp-6.0",
|
|
"@wordpress/hooks": "wp-6.0",
|
|
"@wordpress/i18n": "wp-6.0",
|
|
"@wordpress/url": "wp-6.0",
|
|
"md5": "^2.3.0",
|
|
"qs": "^6.11.2",
|
|
"rememo": "^4.0.2"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"devDependencies": {
|
|
"@automattic/data-stores": "^2.0.1",
|
|
"@babel/core": "^7.23.5",
|
|
"@babel/runtime": "^7.23.5",
|
|
"@testing-library/react": "12.1.3",
|
|
"@testing-library/react-hooks": "7.0.2",
|
|
"react-test-renderer": "17.0.2",
|
|
"@types/jest": "27.5.x",
|
|
"@types/lodash": "^4.14.202",
|
|
"@types/md5": "^2.3.5",
|
|
"@types/node": "^16.18.68",
|
|
"@types/qs": "^6.9.10",
|
|
"@types/react": "17.0.x",
|
|
"@types/wordpress__compose": "4.0.1",
|
|
"@types/wordpress__core-data": "2.4.5",
|
|
"@types/wordpress__data": "6.0.0",
|
|
"@types/wordpress__data-controls": "~2.2.0",
|
|
"@woocommerce/eslint-plugin": "workspace:*",
|
|
"@woocommerce/internal-js-tests": "workspace:*",
|
|
"concurrently": "^7.6.0",
|
|
"eslint": "^8.55.0",
|
|
"jest": "27.5.x",
|
|
"jest-cli": "27.5.x",
|
|
"redux": "^4.2.1",
|
|
"rimraf": "5.0.5",
|
|
"ts-jest": "29.1.x",
|
|
"typescript": "5.3.x",
|
|
"wireit": "0.14.3"
|
|
},
|
|
"peerDependencies": {
|
|
"@wordpress/core-data": "wp-6.0",
|
|
"moment": "^2.18.1",
|
|
"react": "17.0.x",
|
|
"react-dom": "17.0.x"
|
|
},
|
|
"config": {
|
|
"ci": {
|
|
"lint": {
|
|
"command": "lint",
|
|
"changes": "src/**/*.{js,jsx,ts,tsx}"
|
|
},
|
|
"tests": [
|
|
{
|
|
"name": "JavaScript",
|
|
"command": "test:js",
|
|
"changes": [
|
|
"jest.config.js",
|
|
"babel.config.js",
|
|
"tsconfig.json",
|
|
"src/**/*.{js,jsx,ts,tsx}",
|
|
"typings/**/*.ts"
|
|
],
|
|
"cascade": "test:js",
|
|
"events": [
|
|
"pull_request",
|
|
"push"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"wireit": {
|
|
"build:project:cjs": {
|
|
"command": "tsc --project tsconfig-cjs.json",
|
|
"clean": "if-file-deleted",
|
|
"files": [
|
|
"tsconfig-cjs.json",
|
|
"src/**/*.{js,jsx,ts,tsx}",
|
|
"typings/**/*.ts"
|
|
],
|
|
"output": [
|
|
"build"
|
|
],
|
|
"dependencies": [
|
|
"dependencyOutputs"
|
|
]
|
|
},
|
|
"watch:build:project:cjs": {
|
|
"command": "tsc --project tsconfig-cjs.json --watch",
|
|
"service": true
|
|
},
|
|
"build:project:esm": {
|
|
"command": "tsc --project tsconfig.json",
|
|
"clean": "if-file-deleted",
|
|
"files": [
|
|
"tsconfig.json",
|
|
"src/**/*.{js,jsx,ts,tsx}",
|
|
"typings/**/*.ts"
|
|
],
|
|
"output": [
|
|
"build-module",
|
|
"build-types"
|
|
],
|
|
"dependencies": [
|
|
"dependencyOutputs"
|
|
]
|
|
},
|
|
"watch:build:project:esm": {
|
|
"command": "tsc --project tsconfig.json --watch",
|
|
"service": true
|
|
},
|
|
"dependencyOutputs": {
|
|
"allowUsuallyExcludedPaths": true,
|
|
"files": [
|
|
"node_modules/@woocommerce/internal-js-tests/build",
|
|
"node_modules/@woocommerce/internal-js-tests/build-module",
|
|
"node_modules/@woocommerce/internal-js-tests/jest-preset.js",
|
|
"node_modules/@woocommerce/eslint-plugin/configs",
|
|
"node_modules/@woocommerce/eslint-plugin/rules",
|
|
"node_modules/@woocommerce/eslint-plugin/index.js",
|
|
"node_modules/@woocommerce/tracks/build",
|
|
"node_modules/@woocommerce/tracks/build-module",
|
|
"node_modules/@woocommerce/tracks/build-types",
|
|
"node_modules/@woocommerce/navigation/build",
|
|
"node_modules/@woocommerce/navigation/build-module",
|
|
"node_modules/@woocommerce/navigation/build-types",
|
|
"node_modules/@woocommerce/date/build",
|
|
"node_modules/@woocommerce/date/build-module",
|
|
"node_modules/@woocommerce/date/build-types",
|
|
"package.json"
|
|
]
|
|
}
|
|
}
|
|
}
|