Volta.js is a tool to manage easily several versions of Node locally. This tool is able to switch automatically to the right Node version by parsing package.json of the project. So we run volta pin node@16.15 for each of cunningham package.
61 lines
1.7 KiB
JSON
61 lines
1.7 KiB
JSON
{
|
|
"name": "@openfun/cunningham-tokens",
|
|
"private": false,
|
|
"version": "0.1.1",
|
|
"license": "MIT",
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"bin": {
|
|
"cunningham": "./dist/bin/Main.js"
|
|
},
|
|
"main": "./dist/lib/index.js",
|
|
"types": "./dist/lib/index.d.ts",
|
|
"exports": {
|
|
"./default-tokens": "./dist/cunningham-tokens.css",
|
|
".": {
|
|
"require": "./dist/lib/index.js",
|
|
"import": "./dist/lib/index.js",
|
|
"types": "./dist/lib/index.d.ts"
|
|
}
|
|
},
|
|
"files": [
|
|
"dist/"
|
|
],
|
|
"scripts": {
|
|
"lint": "eslint . 'src/**/*.{ts,tsx}'",
|
|
"dev": "nodemon --watch 'src/bin' --ext '*' --exec 'yarn build'",
|
|
"build-bin": "cd src/bin && tsc -p tsconfig.json && tsc-alias && chmod +x ../../dist/bin/Main.js",
|
|
"build-lib": "cp dist/cunningham-tokens.ts src/lib && cd src/lib && tsc -p tsconfig.json",
|
|
"build": "yarn build-bin && yarn build-default-theme && yarn build-lib && cd ../.. && ln -sf ../../packages/tokens/dist/bin/Main.js node_modules/.bin/cunningham",
|
|
"build-default-theme": "./dist/bin/Main.js -o dist -s html -g css,js,ts --utility-classes",
|
|
"test": "FORCE_COLOR=1 jest --runInBand --verbose src"
|
|
},
|
|
"dependencies": {
|
|
"chalk": "4.1.2",
|
|
"commander": "10.0.0",
|
|
"deepmerge": "4.3.1",
|
|
"figlet": "1.5.2",
|
|
"ts-node": "10.9.1"
|
|
},
|
|
"devDependencies": {
|
|
"@types/figlet": "1.5.5",
|
|
"@types/jest": "29.5.0",
|
|
"@types/node": "18.15.11",
|
|
"eslint-config-custom": "*",
|
|
"jest": "29.5.0",
|
|
"nodemon": "2.0.22",
|
|
"prettier": "2.8.7",
|
|
"ts-jest": "29.0.5",
|
|
"tsc-alias": "1.8.4",
|
|
"typescript": "5.0.2"
|
|
},
|
|
"engines": {
|
|
"node": ">=16.0.0"
|
|
},
|
|
"volta": {
|
|
"node": "16.15.1",
|
|
"yarn": "1.22.19"
|
|
}
|
|
}
|