attr-transform.macro
Version:
jsx attribute pre-processor
104 lines (103 loc) • 3.3 kB
JSON
{
"name": "attr-transform.macro",
"version": "0.0.14",
"description": "jsx attribute pre-processor",
"type": "module",
"source": "./src/macro.ts",
"types": "./types/*.d.ts",
"main": "./build/macro.cjs",
"module": "./build/macro.es.js",
"unpkg": "./build/macro.umd.js",
"exports": {
"require": {
"default": "./build/macro.cjs",
"types": "./build/macro.d.ts"
},
"import": {
"default": "./build/macro.es.js",
"types": "./build/macro.d.ts"
}
},
"files": [
"build",
"types"
],
"scripts": {
"build": "microbundle",
"dev": "concurrently yarn:dev:* -p none",
"dev:macro": "NODE_ENV=dev nodemon -q --watch './src/**/*.ts' --watch package.json -x \"yarn build:macro\" --delay .2",
"dev:sandbox1": "NODE_ENV=dev nodemon -q --watch './sandbox/in1.tsx' --watch attr-transform.config.js --watch build/attr-transform.macro.js -x \"yarn build:sandbox1\" --delay .2",
"dev:sandbox2": "NODE_ENV=dev nodemon -q --watch './sandbox/in2.tsx' --watch attr-transform.config.js --watch build/attr-transform.macro.js -x \"yarn build:sandbox2\" --delay .2",
"build:macro": "microbundle",
"build:sandbox1": "babel sandbox/in1.tsx -o sandbox/out/in1.jsx",
"build:sandbox2": "babel sandbox/in2.tsx -o sandbox/out/in2.jsx",
"test": "yarn build && jest",
"test:update": "yarn build && jest --u",
"prepublishOnly": "yarn build"
},
"repository": {
"type": "git",
"url": "git+https://github.com/alfnielsen/attr-transform.macro.git"
},
"keywords": [
"babel-plugin-macros",
"twin.macro",
"tailwind",
"jsx",
"jsx-attribute",
"preprocessor",
"jsx-attribute-preprocessor",
"jsx-attribute-transform",
"css-in-js"
],
"author": "alfnielsen",
"license": "MIT",
"bugs": {
"url": "https://github.com/alfnielsen/attr-transform.macro/issues"
},
"homepage": "https://github.com/alfnielsen/attr-transform.macro#readme",
"dependencies": {
"@babel/template": "^7.22.5",
"babel-plugin-macros": "^3.1.0",
"cli-color": "^2.0.3",
"node-x-path": "^0.0.32"
},
"devDependencies": {
"@babel/cli": "^7.22.5",
"@babel/core": "^7.22.5",
"@babel/parser": "^7.22.5",
"@babel/plugin-syntax-jsx": "^7.22.5",
"@babel/plugin-transform-react-jsx": "^7.22.5",
"@babel/preset-env": "^7.22.5",
"@babel/preset-react": "^7.22.5",
"@babel/preset-typescript": "^7.22.5",
"@babel/template": "^7.22.5",
"@babel/traverse": "^7.22.5",
"@babel/types": "^7.22.5",
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@testing-library/react": "^14.0.0",
"@types/babel-plugin-macros": "^3.1.0",
"@types/babel__traverse": "^7.20.1",
"@types/cli-color": "^2.0.2",
"@types/jest": "^29.5.2",
"@types/node": "^20.3.0",
"@types/react": "^18.2.11",
"babel-plugin-tester": "^11.0.4",
"concurrently": "^8.2.0",
"glob-all": "^3.3.1",
"jest": "^29.5.0",
"jest-diff": "^29.5.0",
"microbundle": "^0.15.1",
"nodemon": "^2.0.22",
"react": "^18.2.0",
"resolve": "^1.22.2",
"rome": "12.1.3",
"tailwindcss": "^3.3.2",
"ts-jest": "^29.1.0",
"ts-node": "^10.9.1",
"twin.macro": "^3.3.1",
"typescript": "^5.1.3",
"x-stringify": "^0.0.5"
}
}