Reverted Wireit Package Changes

We're going to use an automatic script to make these changes.
This commit is contained in:
Christopher Allford 2023-11-02 13:13:32 -07:00
parent 429e896087
commit ab209bff91
2 changed files with 20 additions and 95 deletions

View File

@ -26,16 +26,15 @@
],
"sideEffects": false,
"scripts": {
"build": "pnpm --filter=\"$npm_package_name...\" run build:project",
"build:project": "pnpm run /^build:project:.*$/",
"build:project:esm": "wireit",
"changelog": "composer install && composer exec -- changelogger",
"lint": "pnpm run '/^lint:lang:.*$/'",
"lint:fix": "pnpm run '/^lint:fix:lang:.*$/'",
"lint:lang:js": "eslint --output-file eslint_report.json --format json src",
"lint:fix:lang:js": "eslint src --fix",
"prepack": "pnpm run build",
"watch:build": "pnpm run build:project --watch"
"turbo:build": "tsc --project tsconfig.json",
"prepare": "composer install",
"changelog": "composer exec -- changelogger",
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
"lint": "eslint --output-file eslint_report.json --format json src",
"start": "tsc --project tsconfig.json --watch",
"clean": "pnpm exec rimraf tsconfig.tsbuildinfo build build-*",
"lint:fix": "eslint src --fix",
"prepack": "pnpm run clean && pnpm run build"
},
"lint-staged": {
"*.(t|j)s?(x)": [
@ -72,25 +71,5 @@
},
"publishConfig": {
"access": "public"
},
"wireit": {
"build:project:esm": {
"command": "tsc --project tsconfig.json",
"files": [
"tsconfig.json",
"src/**/*.{js,jsx,ts,tsx}",
"typings/**/*.ts"
],
"dependencies": [
"dependencyOutputs"
],
"output": [
"build"
]
},
"dependencyOutputs": {
"allowUsuallyExcludedPaths": true,
"files": [ "required" ]
}
}
}

View File

@ -28,18 +28,17 @@
"access": "public"
},
"scripts": {
"build": "pnpm --filter=\"$npm_package_name...\" run build:project",
"build:project": "pnpm run /^build:project:.*$/",
"build:project:esm": "wireit",
"build:project:cjs": "wireit",
"build:project:css": "wireit",
"changelog": "composer install && composer exec -- changelogger",
"lint": "pnpm run '/^lint:lang:.*$/'",
"lint:fix": "pnpm run '/^lint:fix:lang:.*$/'",
"lint:lang:js": "eslint --output-file eslint_report.json --format json src",
"lint:fix:lang:js": "eslint src --fix",
"prepack": "pnpm run build",
"watch:build": "pnpm run build:project --watch"
"turbo:build": "pnpm run build:js && pnpm run build:css",
"prepare": "composer install",
"changelog": "composer exec -- changelogger",
"clean": "pnpm exec rimraf tsconfig.tsbuildinfo build build-*",
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
"lint": "eslint --output-file eslint_report.json --format json src",
"build:js": "tsc --project tsconfig.json && tsc --project tsconfig-cjs.json",
"build:css": "webpack",
"start": "concurrently \"tsc --project tsconfig.json --watch\" \"tsc --project tsconfig-cjs.json --watch\" \"webpack --watch\"",
"prepack": "pnpm run clean && pnpm run build",
"lint:fix": "eslint src --fix"
},
"devDependencies": {
"@types/react": "^17.0.71",
@ -67,58 +66,5 @@
"@types/react": "^17.0.71",
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"dependencies": {
"@woocommerce/components": "workspace:*",
"@wordpress/components": "wp-6.0",
"@wordpress/element": "wp-6.0"
},
"wireit": {
"build:project:esm": {
"command": "tsc --project tsconfig.json",
"files": [
"tsconfig.json",
"src/**/*.{js,jsx,ts,tsx}",
"typings/**/*.ts"
],
"dependencies": [
"dependencyOutputs"
],
"output": [
"build-types",
"build-module"
]
},
"build:project:cjs": {
"command": "tsc --project tsconfig-cjs.json",
"files": [
"tsconfig-cjs.json",
"src/**/*.{js,jsx,ts,tsx}",
"typings/**/*.ts"
],
"dependencies": [
"dependencyOutputs"
],
"output": [
"build"
]
},
"build:project:css": {
"command": "webpack",
"files": [
"webpack.config.js",
"src/**/*.scss"
],
"dependencies": [
"dependencyOutputs"
],
"output": [
"build-style"
]
},
"dependencyOutputs": {
"allowUsuallyExcludedPaths": true,
"files": [ "required" ]
}
}
}