mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-08 04:55:06 +09:00
Current solution often fails with > You cannot publish over the previously published versions Here I added small script which compares committed version and version on npm and publish if do not match. All scripts are run by turbo. So publishing new package is just changing package script now.
52 lines
1.3 KiB
JSON
52 lines
1.3 KiB
JSON
{
|
|
"name": "@webstudio-is/css-data",
|
|
"version": "0.1.0",
|
|
"description": "CSS Data",
|
|
"author": "Webstudio <github@webstudio.is>",
|
|
"homepage": "https://webstudio.is",
|
|
"type": "module",
|
|
"scripts": {
|
|
"typecheck": "tsc --noEmit",
|
|
"checks": "yarn typecheck && yarn lint",
|
|
"dev": "tsup --watch",
|
|
"build:cjs": "tsc --module commonjs --outDir lib/cjs && find lib/cjs -name '*.js' | while read NAME; do mv $NAME ${NAME%.js}.cjs; done",
|
|
"build": "rm -fr lib tsconfig.tsbuildinfo && tsc && yarn build:cjs",
|
|
"build:mdn-data": "tsx ./bin/mdn-data.ts ./src",
|
|
"lint": "eslint ./src --ext .ts,.tsx --max-warnings 0",
|
|
"publish-to-npm": "bash ../../bin/publish-to-npm.sh"
|
|
},
|
|
"dependencies": {},
|
|
"devDependencies": {
|
|
"mdn-data": "2.0.23",
|
|
"tsup": "^6.1.3",
|
|
"typescript": "4.7.4",
|
|
"@types/css-tree": "^1.0.7",
|
|
"css-tree": "^2.1.0",
|
|
"camelcase": "^6.3.0",
|
|
"zod": "^3.19.1"
|
|
},
|
|
"peerDependencies": {
|
|
"zod": "^3.19.1"
|
|
},
|
|
"exports": {
|
|
"import": "./lib/index.js",
|
|
"require": "./lib/cjs/index.cjs"
|
|
},
|
|
"types": "lib/index.d.ts",
|
|
"files": [
|
|
"lib/*",
|
|
"README.md",
|
|
"!*.test.*"
|
|
],
|
|
"license": "MIT",
|
|
"private": false,
|
|
"sideEffects": false,
|
|
"tsup": {
|
|
"entry": [
|
|
"src/index.ts"
|
|
],
|
|
"format": "esm",
|
|
"outDir": "lib"
|
|
}
|
|
}
|