@alleyinteractive/build-tool
Version:
An opinionated set of build configurations for wp-scripts
81 lines (80 loc) • 2.4 kB
JSON
{
"name": "@alleyinteractive/build-tool",
"version": "0.2.0",
"description": "An opinionated set of build configurations for wp-scripts",
"bin": {
"alley-build": "./dist/cjs/index.js"
},
"files": [
"CHANGELOG.md",
"dist/**/*",
"LICENSE",
"README.md"
],
"main": "./dist/cjs/index.js",
"types": "./dist/cjs/types/index.d.ts",
"scripts": {
"clean": "rm -rf dist",
"lint": "eslint -c .eslintrc.js --ext .ts .",
"test:watch": "jest --watch",
"test": "jest --passWithNoTests --silent",
"build": "npm run build:esm && npm run build:cjs",
"build:esm": "tsc -p ./config/tsconfig.esm.json && mv dist/esm/index.js dist/esm/index.mjs",
"build:cjs": "tsc -p ./config/tsconfig.cjs.json",
"prepublishOnly": "npm run build",
"prebuild": "npm run clean",
"start:cjs": "tsc -p ./config/tsconfig.cjs.json --watch",
"start:esm": "tsc -p ./config/tsconfig.esm.json --watch"
},
"repository": {
"type": "git",
"url": "git+https://github.com/alleyinteractive/alley-scripts.git"
},
"keywords": [
"webpack",
"@wordpress/scripts",
"wp-scripts",
"WordPress",
"build"
],
"author": "Alley Interactive",
"license": "GPL-2.0-or-later",
"bugs": {
"url": "https://github.com/alleyinteractive/alley-scripts/issues"
},
"homepage": "https://github.com/alleyinteractive/alley-scripts#readme",
"dependencies": {
"@wordpress/scripts": "^30.5.1",
"clean-webpack-plugin": "^4.0.0",
"copy-webpack-plugin": "^11.0.0",
"deep-extend": "^0.6.0",
"mini-css-extract-plugin": "^2.7.6",
"webpack": "^5.95.0",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^4.15.1"
},
"devDependencies": {
"@alleyinteractive/eslint-config": "*",
"@types/deep-extend": "^0.6.2"
},
"exports": {
".": {
"import": {
"types": "./dist/esm/types/index.d.ts",
"default": "./dist/esm/index.mjs"
},
"require": {
"types": "./dist/cjs/types/index.d.ts",
"default": "./dist/cjs/index.js"
}
},
"./dist/cjs/config/webpack.config": {
"types": "./dist/cjs/types/config/webpack.config.d.ts",
"default": "./dist/cjs/config/webpack.config.js"
},
"./dist/esm/config/webpack.config": {
"types": "./dist/esm/types/config/webpack.config.d.ts",
"default": "./dist/esm/config/webpack.config.js"
}
}
}