{"_id":"@ben-elan/calcite-codemod","_rev":"15-fd7f115cddc4a5bf49a89a447a27a35f","name":"@ben-elan/calcite-codemod","dist-tags":{"rc":"2.0.0-rc.0","latest":"2.0.5"},"versions":{"2.0.0-rc.0":{"name":"@ben-elan/calcite-codemod","version":"2.0.0-rc.0","description":"Codemod scripts for automatically updating after breaking changes to Calcite Design System","license":"MIT","author":{"name":"Ben Elan"},"main":"./dist/index.js","bin":{"calcite-codemod":"dist/index.js"},"scripts":{"build":"esbuild ./src/index.js --outdir=./dist --bundle --format=cjs --minify --platform=node","postbuild":"npm run copy-assets","copy-assets":"cp -r ./assets/legacy-tokens.css ./dist/","test":"echo \"Error: no test specified\" && exit 1"},"devDependencies":{"esbuild":"^0.19.8","replace-in-file":"^7.0.2"},"volta":{"node":"20.10.0"},"_id":"@ben-elan/calcite-codemod@2.0.0-rc.0","gitHead":"634dc8e0b89e4bc65fe8b897057f885a1fa90d83","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-q3ThY+D68buwhjdQdT5GT4KDQRrqt7xGvapOf4lZOLQKNq9c/sCTt6EYJBt4q2WCmB+7o95kz6NwNbqEHN74/A==","shasum":"077de16cac8bb4a16e56b4e4b6eb39607aebeb11","tarball":"https://registry.npmjs.org/@ben-elan/calcite-codemod/-/calcite-codemod-2.0.0-rc.0.tgz","fileCount":5,"unpackedSize":79769,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCRyr2ngaIPTUULkI/Dk31wpWNeyTNPS6TFmy0/Z2hzfAIhAJMoPcmXJ/fZ9Tt68Dj6CkEOltHJ+3FGQbZCqlJIhIDm"}]},"_npmUser":{"name":"ben-elan","email":"benelan@protonmail.com"},"directories":{},"maintainers":[{"name":"ben-elan","email":"benelan@protonmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/calcite-codemod_2.0.0-rc.0_1701764271257_0.6010177267290793"},"_hasShrinkwrap":false,"deprecated":"Use `calcite-codemod` instead - https://www.npmjs.com/package/calcite-codemod"},"2.0.0":{"name":"@ben-elan/calcite-codemod","version":"2.0.0","description":"Codemod scripts for automatically updating after breaking changes to Calcite Design System","license":"MIT","author":{"name":"Ben Elan"},"main":"./dist/index.js","bin":{"calcite-codemod":"dist/index.js"},"scripts":{"build":"esbuild ./src/index.js --outdir=./dist --bundle --format=cjs --minify --platform=node","postbuild":"npm run copy-assets","copy-assets":"cp -r ./assets/legacy-tokens.css ./dist/","test":"echo \"Error: no test specified\" && exit 1"},"devDependencies":{"esbuild":"^0.19.8","replace-in-file":"^7.0.2"},"volta":{"node":"20.10.0"},"_id":"@ben-elan/calcite-codemod@2.0.0","gitHead":"42ec2f3e6acf3715257044fb67e441552853668b","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-kKcBc4pjzBmnYRAQ5FM1yYSoUwuoyHRx2bFg7kd2xOr+Pq3zJx1y7uHGyRx4Cpu4LI3dBK2lZnpuwaiLg/MalQ==","shasum":"e06a09d81cf9427a965585763d030dc944e0a636","tarball":"https://registry.npmjs.org/@ben-elan/calcite-codemod/-/calcite-codemod-2.0.0.tgz","fileCount":5,"unpackedSize":80084,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICd7IbQ97Ga77+O/Abp2uuYIwRJ0SgsXCKwEVWWCY3/kAiANLVl/afRWbjz6sCuxGuorC+FB2+94mbdh+pI2mWzGPA=="}]},"_npmUser":{"name":"ben-elan","email":"benelan@protonmail.com"},"directories":{},"maintainers":[{"name":"ben-elan","email":"benelan@protonmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/calcite-codemod_2.0.0_1701765829744_0.2930568689578821"},"_hasShrinkwrap":false,"deprecated":"Use `calcite-codemod` instead - https://www.npmjs.com/package/calcite-codemod"},"2.0.1":{"name":"@ben-elan/calcite-codemod","version":"2.0.1","description":"Codemod scripts for automatically updating applications after breaking changes to Calcite Design System packages","keywords":["calcite","calcite-components","calcite-design-system","cli","codemod","node"],"homepage":"https://github.com/benelan/calcite-codemod","bugs":{"url":"https://github.com/benelan/calcite-codemod/issues"},"repository":{"type":"git","url":"git+https://github.com/benelan/calcite-codemod.git"},"license":"MIT","author":{"name":"Ben Elan"},"main":"./dist/index.js","bin":{"calcite-codemod":"dist/index.js"},"scripts":{"build":"esbuild ./src/index.js --outdir=./dist --bundle --format=cjs --minify --platform=node","postbuild":"npm run copy-assets","copy-assets":"cp -r ./assets/legacy-tokens.css ./dist/","test":"echo \"Error: no test specified\" && exit 1"},"devDependencies":{"esbuild":"^0.19.8","replace-in-file":"^7.0.2"},"volta":{"node":"20.10.0"},"_id":"@ben-elan/calcite-codemod@2.0.1","gitHead":"0d09cbebdeb73103dac2bac15e29dfbef8745ab2","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-pwYyoxR/pJcx45CqRsfpQRt2q2VwmOh/tf48zoOZrhVupuXIdbyQasO6y+zFqkuP0e9CPVnQ/6U+ZLn74aRCFQ==","shasum":"a9a83772723d2eeaa205c962124fde0db4614870","tarball":"https://registry.npmjs.org/@ben-elan/calcite-codemod/-/calcite-codemod-2.0.1.tgz","fileCount":5,"unpackedSize":80609,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD9khe5icF5jC/6gGhHOaEwyrciAVaosGuS3xFg/uUwJQIgJFnWB83VULsJK/t8pm1HFwmHYKE1XnMOSeiDuHnbN40="}]},"_npmUser":{"name":"ben-elan","email":"benelan@protonmail.com"},"directories":{},"maintainers":[{"name":"ben-elan","email":"benelan@protonmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/calcite-codemod_2.0.1_1701766883965_0.5472412826778066"},"_hasShrinkwrap":false,"deprecated":"Use `calcite-codemod` instead - https://www.npmjs.com/package/calcite-codemod"},"2.0.2":{"name":"@ben-elan/calcite-codemod","version":"2.0.2","description":"Codemod scripts for automatically updating applications after breaking changes to Calcite Design System packages","keywords":["calcite","calcite-components","calcite-design-system","cli","codemod","node"],"homepage":"https://github.com/benelan/calcite-codemod","bugs":{"url":"https://github.com/benelan/calcite-codemod/issues"},"repository":{"type":"git","url":"git+https://github.com/benelan/calcite-codemod.git"},"license":"MIT","author":{"name":"Ben Elan"},"main":"./dist/index.js","bin":{"calcite-codemod":"dist/index.js"},"scripts":{"build":"esbuild ./src/index.js --outdir=./dist --bundle --format=cjs --minify --platform=node","postbuild":"npm run copy-assets","copy-assets":"cp -r ./assets/legacy-tokens.css ./dist/","test":"echo \"Error: no test specified\" && exit 1"},"devDependencies":{"esbuild":"^0.19.8","replace-in-file":"^7.0.2"},"volta":{"node":"20.10.0"},"_id":"@ben-elan/calcite-codemod@2.0.2","gitHead":"1c533af33b4230b210fd94cc62045a8e07198d7e","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-9VavDaSZAb9TqL8s1I/uT5kNFo5oQgeThQFv854aFfb8FA9cjPFH+AUKcGHeXTo4KN3fqFT2TrGKOeJRUWbi2Q==","shasum":"759aaa5a3e153a110070410a9272c2bbccafa9fd","tarball":"https://registry.npmjs.org/@ben-elan/calcite-codemod/-/calcite-codemod-2.0.2.tgz","fileCount":5,"unpackedSize":80577,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAs/XlLfQ+GdkqGkMhk0YG6nKKK7TvmC/oAcZKfaadfLAiB6cyKpJJYokHZxieeKIKPj4Jlx13tYlWrd/RVpyVuWNg=="}]},"_npmUser":{"name":"ben-elan","email":"benelan@protonmail.com"},"directories":{},"maintainers":[{"name":"ben-elan","email":"benelan@protonmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/calcite-codemod_2.0.2_1701768022849_0.9227518654256839"},"_hasShrinkwrap":false,"deprecated":"Use `calcite-codemod` instead - https://www.npmjs.com/package/calcite-codemod"},"2.0.3":{"name":"@ben-elan/calcite-codemod","version":"2.0.3","description":"Codemod scripts for automatically updating applications after breaking changes to Calcite Design System packages","keywords":["calcite","calcite-components","calcite-design-system","cli","codemod","node"],"homepage":"https://github.com/benelan/calcite-codemod","bugs":{"url":"https://github.com/benelan/calcite-codemod/issues"},"repository":{"type":"git","url":"git+https://github.com/benelan/calcite-codemod.git"},"license":"MIT","author":{"name":"Ben Elan"},"main":"./dist/index.js","bin":{"calcite-codemod":"dist/index.js"},"scripts":{"build":"esbuild ./src/index.js --outdir=./dist --bundle --format=cjs --minify --platform=node","postbuild":"npm run copy-assets","copy-assets":"cp -r ./assets/legacy-tokens.css ./dist/","test":"echo \"Error: no test specified\" && exit 1"},"devDependencies":{"esbuild":"^0.19.8","replace-in-file":"^7.0.2"},"volta":{"node":"20.10.0"},"_id":"@ben-elan/calcite-codemod@2.0.3","gitHead":"c07df69bc55368df5a1677647838eb83c11d1d81","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-TVwI2J7PvpdCvbJc1rDF1VpYyxdElsR31Y2ibFNVAuoJCwBMRSRTPRGnBWQ7nhuAAQMYv1fBnpCUkPN1RS2WQA==","shasum":"6696f0f9852b168cd7a3a808989f1e4a4661d017","tarball":"https://registry.npmjs.org/@ben-elan/calcite-codemod/-/calcite-codemod-2.0.3.tgz","fileCount":7,"unpackedSize":149127,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBFKJGOxdbSBiVuvZM/iLVOfy9l+RwoNynRzn8GyIvgoAiEAnu4SGfY3z1v3ljmkdO/GtXCPhK7eAd1V5wuciGF03sI="}]},"_npmUser":{"name":"ben-elan","email":"benelan@protonmail.com"},"directories":{},"maintainers":[{"name":"ben-elan","email":"benelan@protonmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/calcite-codemod_2.0.3_1701802917884_0.0813569223946422"},"_hasShrinkwrap":false,"deprecated":"Use `calcite-codemod` instead - https://www.npmjs.com/package/calcite-codemod"},"2.0.4":{"name":"@ben-elan/calcite-codemod","version":"2.0.4","description":"Codemod scripts for automatically updating applications after breaking changes to Calcite Design System packages","keywords":["calcite","calcite-components","calcite-design-system","cli","codemod","node"],"homepage":"https://github.com/benelan/calcite-codemod","bugs":{"url":"https://github.com/benelan/calcite-codemod/issues"},"repository":{"type":"git","url":"git+https://github.com/benelan/calcite-codemod.git"},"license":"MIT","author":{"name":"Ben Elan"},"main":"./dist/index.js","bin":{"calcite-codemod":"dist/index.js"},"scripts":{"build":"rm -rf dist && npm run bundle && npm run copy-assets","bundle":"esbuild ./src/index.js --outdir=./dist --bundle --format=cjs --minify --platform=node","copy-assets":"cp -r ./assets/legacy-tokens.css ./dist/","test":"echo \"Error: no test specified\" && exit 1"},"devDependencies":{"esbuild":"^0.19.8","replace-in-file":"^7.0.2"},"volta":{"node":"20.10.0"},"_id":"@ben-elan/calcite-codemod@2.0.4","gitHead":"49029ef5d965622f52214f2f77c5a6b74c120726","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-fPHHfRyncK8iLfefLTTpFduPqNPqaqvwDEpMiRIDVydyb3SRNjQatWnBoGM/FiF0UakK1ftur9EdlQEOXpMmSg==","shasum":"70f40ad76d1c1e92b2d68bc1935ca44162d8ab2b","tarball":"https://registry.npmjs.org/@ben-elan/calcite-codemod/-/calcite-codemod-2.0.4.tgz","fileCount":5,"unpackedSize":80619,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDZ6+xckFMOK2SL7iGdp7WiLVX+5AFVtdNHPYh8LsiPswIgYQ6JlE1gCENjZmB5T/12AsavkXd0juzkqlIoszBf3XY="}]},"_npmUser":{"name":"ben-elan","email":"benelan@protonmail.com"},"directories":{},"maintainers":[{"name":"ben-elan","email":"benelan@protonmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/calcite-codemod_2.0.4_1701805332342_0.7295430640912208"},"_hasShrinkwrap":false,"deprecated":"Use `calcite-codemod` instead - https://www.npmjs.com/package/calcite-codemod"},"2.0.5":{"name":"@ben-elan/calcite-codemod","version":"2.0.5","description":"Codemod scripts for automatically updating applications after breaking changes to Calcite Design System packages","keywords":["calcite","calcite-components","calcite-design-system","cli","codemod","node"],"homepage":"https://github.com/benelan/calcite-codemod","bugs":{"url":"https://github.com/benelan/calcite-codemod/issues"},"repository":{"type":"git","url":"git+https://github.com/benelan/calcite-codemod.git"},"license":"MIT","author":{"name":"Ben Elan"},"main":"./dist/index.js","bin":{"calcite-codemod":"dist/index.js"},"scripts":{"build":"rm -rf dist && npm run bundle && npm run copy-assets","bundle":"esbuild ./src/index.js --outdir=./dist --bundle --format=cjs --minify --platform=node","copy-assets":"cp -r ./assets/legacy-tokens.css ./dist/","test":"echo \"Error: no test specified\" && exit 1"},"devDependencies":{"esbuild":"^0.19.8","replace-in-file":"^7.0.2"},"volta":{"node":"20.10.0"},"_id":"@ben-elan/calcite-codemod@2.0.5","gitHead":"5d876118875f4efa8520aff16f3eb7077c1b5d26","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-yRsrQzGggIUN+pHKww5x8b6OI0Rr1A0oDJXXmMbIggIfIMw8MjKV71eBQYrtzkpSkHP6IVTPybDLo4mZzht/RQ==","shasum":"f4b1093b6df9e59dab9891fed432b6a848b605ac","tarball":"https://registry.npmjs.org/@ben-elan/calcite-codemod/-/calcite-codemod-2.0.5.tgz","fileCount":5,"unpackedSize":80896,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCHoY/H4Sbu+LM/qKHGamXlUprs3NLkCLdnhp+G9bCIdgIhAJ0m5ajrGkEArLh00jn70Lk6AizSld7qKGqd1p7NJ5sM"}]},"_npmUser":{"name":"ben-elan","email":"benelan@protonmail.com"},"directories":{},"maintainers":[{"name":"ben-elan","email":"benelan@protonmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/calcite-codemod_2.0.5_1701975451262_0.6493420529430063"},"_hasShrinkwrap":false,"deprecated":"Use `calcite-codemod` instead - https://www.npmjs.com/package/calcite-codemod"}},"time":{"created":"2023-12-05T08:17:51.133Z","2.0.0-rc.0":"2023-12-05T08:17:51.469Z","modified":"2023-12-13T23:01:21.692Z","2.0.0":"2023-12-05T08:43:50.014Z","2.0.1":"2023-12-05T09:01:24.228Z","2.0.2":"2023-12-05T09:20:23.030Z","2.0.3":"2023-12-05T19:01:58.074Z","2.0.4":"2023-12-05T19:42:12.602Z","2.0.5":"2023-12-07T18:57:31.411Z"},"maintainers":[{"email":"contact@benelan.dev","name":"benelan"}],"description":"Codemod scripts for automatically updating applications after breaking changes to Calcite Design System packages","author":{"name":"Ben Elan"},"license":"MIT","readme":"# Calcite Codemod\n\nThis is a small (unofficial) package for automatically updating code after breaking changes to Calcite Design System packages.\nThe major version of this package will always align with the major version of [`@esri/calcite-components`](https://www.npmjs.com/package/@esri/calcite-components) that it targets.\nHowever, this package may not be updated for every major release of [`@esri/calcite-components`](https://www.npmjs.com/package/@esri/calcite-components).\n\nThe current iteration of this package renames the CSS variables used to modify the styles of Calcite Components.\nPlease read the [v2 changelog section of Calcite Components](https://github.com/Esri/calcite-design-system/blob/main/packages/calcite-components/package.json) for a full list of breaking changes.\n\n## Installation\n\nInstall [the package](https://www.npmjs.com/package/@ben-elan/calcite-codemod) globally and use it anywhere:\n\n```bash\nnpm i -g @ben-elan/calcite-codemod@v2\n```\n\nUse it in a single application:\n\n```bash\nnpm i -D @ben-elan/calcite-codemod@v2\n```\n\nOr try it out before installing:\n\n```bash\nnpx @ben-elan/calcite-codemod \"styles.css\" \"index.html\" \"src/*.js\"\n```\n\n> **NOTE:** You cannot specify the version of a package when using `npx`, so make sure the current major version of `@ben-elan/calcite-codemod` aligns with your major version of `@esri/calcite-components`. Otherwise, use one of the previous installation methods above.\n\n## Using the CLI\n\n`@ben-elan/calcite-codemod` provides a command line interface (CLI), which renames the CSS Variables in your application.\nThe CLI requires one or more arguments specifying which files/directories to update. The arguments support glob syntax.\nFor more information, see this [Glob primer](https://github.com/isaacs/node-glob#glob-primer) by the package used internally for expanding globs.\n\nHere are a couple usage examples:\n\n```sh\n# replace occurrences of renamed CSS variables in style.css, index.html, and all js files in src/\ncalcite-codemod \"styles.css\" \"index.html\" \"src/*.js\"\n\n# replace all js/ts/jsx/tsx/css/scss files in src/ and all of its child directories\ncalcite-codemod \"src/**/*.{js,ts,jsx,tsx,css,scss}\"\n\n# same as the previous example, except a lot more confusing\ncalcite-codemod \"src/**/*.{{j,t}s{x,},{s,}css}\"\n```\n\n## Using the CSS\n\nThis package also contains a CSS file that maps all the old variable names to the new ones.\nAdd this to your application so you can update to Calcite Components v2 before renaming all the CSS Variables.\n\n```html\n<script\n  type=\"module\"\n  src=\"https://cdn.jsdelivr.net/npm/@esri/calcite-components@v2/dist/calcite/calcite.esm.js\"\n></script>\n<link\n  rel=\"stylesheet\"\n  type=\"text/css\"\n  href=\"https://cdn.jsdelivr.net/npm/@esri/calcite-components@v2/dist/calcite/calcite.css\"\n/>\n\n<!-- Make sure to add `legacy-tokens.css` after `calcite.css` -->\n<link\n  rel=\"stylesheet\"\n  type=\"text/css\"\n  href=\"https://cdn.jsdelivr.net/npm/@ben-elan/calcite-codemod@v2/dist/legacy-tokens.css\"\n/>\n```\n","readmeFilename":"README.md","homepage":"https://github.com/benelan/calcite-codemod","keywords":["calcite","calcite-components","calcite-design-system","cli","codemod","node"],"repository":{"type":"git","url":"git+https://github.com/benelan/calcite-codemod.git"},"bugs":{"url":"https://github.com/benelan/calcite-codemod/issues"}}