@mcastiello/figmatic
Version:
108 lines (107 loc) • 2.65 kB
JSON
{
"name": "@mcastiello/figmatic",
"version": "0.2.6",
"author": "Marco Castiello <marco.castiello@gmail.com>",
"license": "MIT",
"source": "src/index.ts",
"main": "dist/index.cjs",
"module": "dist/index.modern.mjs",
"types": "dist/index.d.ts",
"type": "module",
"repository": {
"url": "git@github.com:mcastiello/figmatic.git",
"type": "git"
},
"typesVersions": {
"*": {
".": [
"dist/index.d.ts"
]
}
},
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"import": "./dist/index.modern.mjs",
"default": "./dist/index.js"
}
},
"keywords": [
"Figma",
"Parser",
"WebComponent",
"Export Components",
"Code Generator"
],
"engines": {
"node": ">20.0.0"
},
"scripts": {
"clean": "rimraf ./dist ./coverage",
"compile": "microbundle build --compress --no-sourcemap --format modern,cjs --tsconfig tsconfig.build.json",
"build": "yarn clean && yarn compile",
"debug": "tsx ./src/test.ts",
"test": "jest --coverage",
"quality:fix": "eslint --fix src/**/*.ts",
"quality:check": "eslint src/**/*.ts"
},
"dependencies": {
"@mcastiello/event-bus": "^0.1.3"
},
"devDependencies": {
"@types/jest": "^29.5.14",
"@types/node": "^22.13.9",
"@typescript-eslint/eslint-plugin": "^8.25.0",
"@typescript-eslint/parser": "^8.25.0",
"eslint": "^8.57.1",
"eslint-config-prettier": "^10.0.2",
"eslint-plugin-prettier": "^5.2.3",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"microbundle": "^0.15.1",
"prettier": "^3.5.2",
"rimraf": "^6.0.1",
"ts-jest": "^29.2.6",
"tsx": "^4.19.3",
"typescript": "~5.7.3"
},
"jest": {
"preset": "ts-jest",
"testPathIgnorePatterns": [
"/node_modules",
"/dist"
],
"transform": {
"^.+\\.ts?$": [
"ts-jest",
{ "useESM": true, "isolatedModules": true }
]
},
"testRegex": "src/.*\\.(test|spec)?\\.(ts)$",
"moduleFileExtensions": [
"js",
"ts"
],
"setupFiles": [
"./jest.setup.js"
],
"testEnvironment": "jsdom",
"collectCoverageFrom": [
"src/**/*.ts",
"!src/types/*.ts",
"!src/resources/parse/parser.ts",
"!src/resources/parse/plugin.ts",
"!src/resources/parse/processor.ts",
"!src/resources/parse/parsed-node.ts",
"!src/resources/utilities/api.ts",
"!src/resources/components-collection.ts",
"!src/**/index.ts",
"!src/**/mock.ts"
],
"moduleDirectories": [
"node_modules",
"src"
]
}
}