@substrate-system/image
Version:
An image component
104 lines (103 loc) • 3.59 kB
JSON
{
"name": "@substrate-system/image",
"description": "An image component",
"version": "0.0.23",
"type": "module",
"main": "dist/index.ts",
"bin": {
"image.stringify": "./bin/to-string.js",
"image.resize": "./bin/resize.js"
},
"scripts": {
"start": "npm run build && ./bin/resize.js ./example/100.jpg -o ./example && cd example && rm -rf ./node_modules && npm i && npm start",
"build-example": "npm run build && ./bin/resize.js ./example/100.jpg -o ./example && cd example && rm -rf ./node_modules && npm i && VITE_DEBUG_MODE=staging vite build --mode staging --base=\"/image\" && mkdir -p ./public && cp ./100* ./public",
"lint": "eslint \"./src/*.{ts,js}\"",
"test": "npm run lint && node test/cli.js | tap-spec && npm run test-html",
"test-html": "npm run lint && node test/index.js | tap-spec",
"build-cjs": "esbuild src/**/*.ts --tsconfig=tsconfig.build.json --format=cjs --keep-names --outdir=./dist --out-extension:.js=.cjs",
"build-bin": "mkdir -p ./dist/bin && rm -rf ./dist/bin/* && cp ./bin/to-string.js ./bin/resize.js ./dist/bin",
"build": "mkdir -p ./dist && rm -rf ./dist/* && npm run build-cjs && tsc --project tsconfig.build.json && npm run cp-css && npm run build-tonic && npm run build-bin",
"build-tonic": "cp ./src/cloudinary/tonic.js ./dist/cloudinary && cp ./src/tonic.js ./dist",
"cp-css": "cp ./src/*.css ./dist",
"toc": "markdown-toc --maxdepth 3 -i README.md",
"preversion": "npm run lint",
"version": "npm run toc && auto-changelog -p --template keepachangelog --breaking-pattern 'BREAKING CHANGE:' && git add CHANGELOG.md README.md",
"postversion": "git push --follow-tags && npm publish",
"prepublishOnly": "npm run build"
},
"directories": {
"example": "example",
"test": "test"
},
"dependencies": {
"@cloudinary/url-gen": "^1.14.0",
"@substrate-system/tonic": "^16.0.2",
"file-type": "^20.0.0",
"preact": "^10.26.5",
"sharp": "^0.34.1",
"yargs": "^17.7.2"
},
"devDependencies": {
"@substrate-system/tapzero": "^0.10.13",
"@types/yargs": "^17.0.24",
"@typescript-eslint/eslint-plugin": "^8.0.0",
"@typescript-eslint/parser": "^8.0.0",
"auto-changelog": "^2.4.0",
"esbuild": "^0.25.0",
"eslint": "^8.57.0",
"eslint-config-standard": "^17.1.0",
"htm": "^3.1.1",
"markdown-toc": "^1.2.0",
"postcss-import": "^16.1.0",
"postcss-nesting": "^13.0.0",
"tap-spec": "^5.0.0",
"tape-run": "^11.0.0",
"typescript": "^5.8.3",
"vite": "^6.2.6"
},
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"./*": {
"import": [
"./dist/*.js",
"./dist/*"
],
"require": [
"./dist/*.cjs"
]
},
"./bin/*": {
"import": "./dist/bin/*.js",
"require": "./dist/bin/*.cjs"
},
"./cloudinary": {
"import": "./dist/cloudinary/index.js",
"require": "./dist/cloudinary/index.cjs"
},
"./cloudinary/*": {
"import": "./dist/cloudinary/*.js",
"require": "./dist/cloudinary/*.cjs"
}
},
"keywords": [
"image",
"base64",
"cloudinary",
"picture",
"tonic",
"preact"
],
"author": "nichoth <nichoth@nichoth.com> (https://nichoth.com)",
"license": "SEE LICENSE IN LICENSE",
"repository": {
"type": "git",
"url": "git+https://github.com/substrate-system/image.git"
},
"bugs": {
"url": "https://github.com/substrate-system/image/issues"
},
"homepage": "https://github.com/substrate-system/image"
}