|
|
|
@ -2,12 +2,23 @@ |
|
|
|
|
"name": "@ldo/react", |
|
|
|
|
"version": "1.0.0-alpha.9", |
|
|
|
|
"description": "A React library for LDO.", |
|
|
|
|
"main": "dist/index.js", |
|
|
|
|
"type": "module", |
|
|
|
|
"main": "./dist/cjs/index.js", |
|
|
|
|
"module": "./dist/esm/index.js", |
|
|
|
|
"types": "./dist/types/index.d.ts", |
|
|
|
|
"exports": { |
|
|
|
|
".": { |
|
|
|
|
"types": "./dist/types/index.d.ts", |
|
|
|
|
"import": "./dist/esm/index.js", |
|
|
|
|
"require": "./dist/cjs/index.js" |
|
|
|
|
}, |
|
|
|
|
"./package.json": "./package.json" |
|
|
|
|
}, |
|
|
|
|
"scripts": { |
|
|
|
|
"build": "tsc --project tsconfig.build.json", |
|
|
|
|
"watch": "tsc --project tsconfig.build.json --watch", |
|
|
|
|
"test": "jest --coverage", |
|
|
|
|
"test:watch": "jest --watch", |
|
|
|
|
"build": "rimraf dist && npm run build:cjs && npm run build:esm", |
|
|
|
|
"build:cjs": "tsc --project tsconfig.cjs.json", |
|
|
|
|
"build:esm": "tsc --project tsconfig.esm.json", |
|
|
|
|
"test": "vitest run --coverage", |
|
|
|
|
"prepublishOnly": "npm run test && npm run build", |
|
|
|
|
"build:ldo": "ldo build --input src/shapes --output src/ldo", |
|
|
|
|
"lint": "eslint src/** --fix --no-error-on-unmatched-pattern" |
|
|
|
|