[{"data":1,"prerenderedAt":1346,"buildId":1347},["ShallowReactive",2],{"page:\u002Fdocs\u002F5.x\u002Fhow-to\u002Fpublish-a-plugin":3},{"id":4,"title":5,"body":6,"description":1329,"extension":897,"frontmatter":1330,"heading":1335,"meta":1337,"navigation":1339,"order":1333,"path":1340,"seo":1341,"sitemap":1342,"source":1343,"stem":1344,"__hash__":1345},"docs\u002Fdocs\u002F5.x\u002Fhow-to\u002Fpublish-a-plugin.md","Publish a plugin - npm and the Kubb registry",{"type":7,"value":8,"toc":1312},"minimark",[9,29,42,1267,1271,1283,1287,1291,1302],[10,11,12,13,17,18,23,24,28],"p",{},"Once your plugin is in the Kubb registry, users install it with ",[14,15,16],"code",{},"kubb add"," and find it on ",[19,20,22],"a",{"href":21},"\u002Fextensions","kubb.dev\u002Fextensions"," and in Kubb Studio. You package it, publish it, and submit it. Adapters and parsers follow the same steps. Start from a working plugin with a test, such as the one from ",[19,25,27],{"href":26},"\u002Fdocs\u002F5.x\u002Ftutorials\u002Fcreating-plugins","Create a plugin",".",[30,31,33,34,37,38,28],"blockquote",{"as":32},"tip","A package already on npm still needs the manifest and the ",[14,35,36],{},"docs\u002F"," folder in a published version. Add them, publish a new version, then go to ",[19,39,41],{"href":40},"#submit-to-the-registry","Submit to the registry",[43,44,46,51,58,95,102,560,563,625,629,638,798,836,847,851,857,888,895,930,938,942,945,975,993,997,1125,1128,1141,1215,1222,1231,1235,1244,1251,1254],"steps",{"level":45},"2",[47,48,50],"h2",{"id":49},"build-the-package","Build the package",[10,52,53,54,57],{},"Export the factory from the package entry point. Give relative imports a ",[14,55,56],{},".js"," extension so the compiled ESM works in Node:",[59,60,65],"pre",{"language":61,"filename":62,"code":63,"class":64},"typescript","src\u002Findex.ts","export { pluginExample } from '.\u002Fplugin.js'","highlights",[14,66,68],{"class":67},"language-typescript",[69,70,73,77,81,85,88,91],"span",{"class":71,"style":72},"line","display: inline",[69,74,76],{"style":75},"color:#d73a49;--hls-dark:#f97583","export ",[69,78,80],{"style":79},"color:#005cc5;--hls-dark:#79b8ff","{ ",[69,82,84],{"style":83},"color:#24292e;--hls-dark:#e1e4e8","pluginExample ",[69,86,87],{"style":79},"} ",[69,89,90],{"style":75},"from ",[69,92,94],{"style":93},"color:#032f62;--hls-dark:#9ecbff","'.\u002Fplugin.js'",[10,96,97,98,101],{},"Add a TypeScript build config and these ",[14,99,100],{},"package.json"," fields. Replace the package name with an available name you own:",[103,104,105,401],"code-tree",{"defaultValue":100},[59,106,109],{"language":107,"filename":100,"code":108,"class":64},"json","{\n \"name\": \"kubb-plugin-example\",\n \"version\": \"1.0.0\",\n \"type\": \"module\",\n \"files\": [\"dist\", \"kubb-extension.json\", \"docs\"],\n \"repository\": { \"type\": \"git\", \"url\": \"https:\u002F\u002Fgithub.com\u002Facme\u002Fkubb-plugin-example\" },\n \"scripts\": {\n \"build\": \"tsc -p tsconfig.json\",\n \"test\": \"vitest run src\u002Fplugin.test.ts\",\n \"prepack\": \"npm run build && npm test\"\n },\n \"exports\": {\n \".\": {\n \"types\": \".\u002Fdist\u002Findex.d.ts\",\n \"import\": \".\u002Fdist\u002Findex.js\"\n },\n \".\u002Fkubb-extension.json\": \".\u002Fkubb-extension.json\",\n \".\u002Fpackage.json\": \".\u002Fpackage.json\"\n },\n \"peerDependencies\": { \"kubb\": \"^5.0.0\" }\n}",[14,110,112,117,118,117,135,117,149,117,163,117,194,117,227,117,238,117,253,117,267,117,279,117,287,117,298,117,309,117,324,117,336,117,344,117,357,117,368,117,376,117,397],{"class":111},"language-json",[69,113,114],{"class":71,"style":72},[69,115,116],{"style":79},"{","\n",[69,119,120,123,126,129,132],{"class":71,"style":72},[69,121,122],{"style":79}," ",[69,124,125],{"style":79},"\"name\"",[69,127,128],{"style":75},": ",[69,130,131],{"style":93},"\"kubb-plugin-example\"",[69,133,134],{"style":75},",",[69,136,137,139,142,144,147],{"class":71,"style":72},[69,138,122],{"style":75},[69,140,141],{"style":79},"\"version\"",[69,143,128],{"style":75},[69,145,146],{"style":93},"\"1.0.0\"",[69,148,134],{"style":75},[69,150,151,153,156,158,161],{"class":71,"style":72},[69,152,122],{"style":75},[69,154,155],{"style":79},"\"type\"",[69,157,128],{"style":75},[69,159,160],{"style":93},"\"module\"",[69,162,134],{"style":75},[69,164,165,167,170,172,175,178,181,184,186,189,192],{"class":71,"style":72},[69,166,122],{"style":75},[69,168,169],{"style":79},"\"files\"",[69,171,128],{"style":75},[69,173,174],{"style":79},"[",[69,176,177],{"style":93},"\"dist\"",[69,179,180],{"style":75},", ",[69,182,183],{"style":93},"\"kubb-extension.json\"",[69,185,180],{"style":75},[69,187,188],{"style":93},"\"docs\"",[69,190,191],{"style":79},"]",[69,193,134],{"style":75},[69,195,196,198,201,203,205,207,209,212,214,217,219,222,225],{"class":71,"style":72},[69,197,122],{"style":75},[69,199,200],{"style":79},"\"repository\"",[69,202,128],{"style":75},[69,204,80],{"style":79},[69,206,155],{"style":79},[69,208,128],{"style":75},[69,210,211],{"style":93},"\"git\"",[69,213,180],{"style":75},[69,215,216],{"style":79},"\"url\"",[69,218,128],{"style":75},[69,220,221],{"style":93},"\"https:\u002F\u002Fgithub.com\u002Facme\u002Fkubb-plugin-example\" ",[69,223,224],{"style":79},"}",[69,226,134],{"style":75},[69,228,229,231,234,236],{"class":71,"style":72},[69,230,122],{"style":75},[69,232,233],{"style":79},"\"scripts\"",[69,235,128],{"style":75},[69,237,116],{"style":79},[69,239,240,243,246,248,251],{"class":71,"style":72},[69,241,242],{"style":79}," ",[69,244,245],{"style":79},"\"build\"",[69,247,128],{"style":75},[69,249,250],{"style":93},"\"tsc -p tsconfig.json\"",[69,252,134],{"style":75},[69,254,255,257,260,262,265],{"class":71,"style":72},[69,256,242],{"style":75},[69,258,259],{"style":79},"\"test\"",[69,261,128],{"style":75},[69,263,264],{"style":93},"\"vitest run src\u002Fplugin.test.ts\"",[69,266,134],{"style":75},[69,268,269,271,274,276],{"class":71,"style":72},[69,270,242],{"style":75},[69,272,273],{"style":79},"\"prepack\"",[69,275,128],{"style":75},[69,277,278],{"style":93},"\"npm run build && npm test\"",[69,280,281,283,285],{"class":71,"style":72},[69,282,122],{"style":93},[69,284,224],{"style":79},[69,286,134],{"style":75},[69,288,289,291,294,296],{"class":71,"style":72},[69,290,122],{"style":75},[69,292,293],{"style":79},"\"exports\"",[69,295,128],{"style":75},[69,297,116],{"style":79},[69,299,300,302,305,307],{"class":71,"style":72},[69,301,242],{"style":79},[69,303,304],{"style":79},"\".\"",[69,306,128],{"style":75},[69,308,116],{"style":79},[69,310,311,314,317,319,322],{"class":71,"style":72},[69,312,313],{"style":79}," ",[69,315,316],{"style":79},"\"types\"",[69,318,128],{"style":75},[69,320,321],{"style":93},"\".\u002Fdist\u002Findex.d.ts\"",[69,323,134],{"style":75},[69,325,326,328,331,333],{"class":71,"style":72},[69,327,313],{"style":75},[69,329,330],{"style":79},"\"import\"",[69,332,128],{"style":75},[69,334,335],{"style":93},"\".\u002Fdist\u002Findex.js\"",[69,337,338,340,342],{"class":71,"style":72},[69,339,242],{"style":93},[69,341,224],{"style":79},[69,343,134],{"style":75},[69,345,346,348,351,353,355],{"class":71,"style":72},[69,347,242],{"style":75},[69,349,350],{"style":79},"\".\u002Fkubb-extension.json\"",[69,352,128],{"style":75},[69,354,350],{"style":93},[69,356,134],{"style":75},[69,358,359,361,364,366],{"class":71,"style":72},[69,360,242],{"style":75},[69,362,363],{"style":79},"\".\u002Fpackage.json\"",[69,365,128],{"style":75},[69,367,363],{"style":93},[69,369,370,372,374],{"class":71,"style":72},[69,371,122],{"style":93},[69,373,224],{"style":79},[69,375,134],{"style":75},[69,377,378,380,383,385,387,390,392,395],{"class":71,"style":72},[69,379,122],{"style":75},[69,381,382],{"style":79},"\"peerDependencies\"",[69,384,128],{"style":75},[69,386,80],{"style":79},[69,388,389],{"style":79},"\"kubb\"",[69,391,128],{"style":75},[69,393,394],{"style":93},"\"^5.0.0\" ",[69,396,224],{"style":79},[69,398,399],{"class":71,"style":72},[69,400,224],{"style":79},[59,402,405],{"language":107,"filename":403,"code":404,"class":64},"tsconfig.json","{\n \"compilerOptions\": {\n \"target\": \"ES2022\",\n \"module\": \"NodeNext\",\n \"moduleResolution\": \"NodeNext\",\n \"strict\": true,\n \"declaration\": true,\n \"skipLibCheck\": true,\n \"rootDir\": \"src\",\n \"outDir\": \"dist\"\n },\n \"include\": [\"src\u002Findex.ts\", \"src\u002Fplugin.ts\"]\n}",[14,406,407,117,411,117,422,117,436,117,449,117,462,117,476,117,489,117,502,117,516,117,527,117,535,117,556],{"class":111},[69,408,409],{"class":71,"style":72},[69,410,116],{"style":79},[69,412,413,415,418,420],{"class":71,"style":72},[69,414,122],{"style":79},[69,416,417],{"style":79},"\"compilerOptions\"",[69,419,128],{"style":75},[69,421,116],{"style":79},[69,423,424,426,429,431,434],{"class":71,"style":72},[69,425,242],{"style":79},[69,427,428],{"style":79},"\"target\"",[69,430,128],{"style":75},[69,432,433],{"style":93},"\"ES2022\"",[69,435,134],{"style":75},[69,437,438,440,442,444,447],{"class":71,"style":72},[69,439,242],{"style":75},[69,441,160],{"style":79},[69,443,128],{"style":75},[69,445,446],{"style":93},"\"NodeNext\"",[69,448,134],{"style":75},[69,450,451,453,456,458,460],{"class":71,"style":72},[69,452,242],{"style":75},[69,454,455],{"style":79},"\"moduleResolution\"",[69,457,128],{"style":75},[69,459,446],{"style":93},[69,461,134],{"style":75},[69,463,464,466,469,471,474],{"class":71,"style":72},[69,465,242],{"style":75},[69,467,468],{"style":79},"\"strict\"",[69,470,128],{"style":75},[69,472,473],{"style":79},"true",[69,475,134],{"style":75},[69,477,478,480,483,485,487],{"class":71,"style":72},[69,479,242],{"style":75},[69,481,482],{"style":79},"\"declaration\"",[69,484,128],{"style":75},[69,486,473],{"style":79},[69,488,134],{"style":75},[69,490,491,493,496,498,500],{"class":71,"style":72},[69,492,242],{"style":75},[69,494,495],{"style":79},"\"skipLibCheck\"",[69,497,128],{"style":75},[69,499,473],{"style":79},[69,501,134],{"style":75},[69,503,504,506,509,511,514],{"class":71,"style":72},[69,505,242],{"style":75},[69,507,508],{"style":79},"\"rootDir\"",[69,510,128],{"style":75},[69,512,513],{"style":93},"\"src\"",[69,515,134],{"style":75},[69,517,518,520,523,525],{"class":71,"style":72},[69,519,242],{"style":75},[69,521,522],{"style":79},"\"outDir\"",[69,524,128],{"style":75},[69,526,177],{"style":93},[69,528,529,531,533],{"class":71,"style":72},[69,530,122],{"style":93},[69,532,224],{"style":79},[69,534,134],{"style":75},[69,536,537,539,542,544,546,549,551,554],{"class":71,"style":72},[69,538,122],{"style":75},[69,540,541],{"style":79},"\"include\"",[69,543,128],{"style":75},[69,545,174],{"style":79},[69,547,548],{"style":93},"\"src\u002Findex.ts\"",[69,550,180],{"style":75},[69,552,553],{"style":93},"\"src\u002Fplugin.ts\"",[69,555,191],{"style":79},[69,557,558],{"class":71,"style":72},[69,559,224],{"style":79},[10,561,562],{},"Before you publish, check that:",[564,565,566,576,592,598,611],"ul",{},[567,568,569,572,573,575],"li",{},[14,570,571],{},"files"," ships the build, the manifest, and the ",[14,574,36],{}," folder.",[567,577,578,581,582,585,586,588,589,591],{},[14,579,580],{},"exports"," lists ",[14,583,584],{},"kubb-extension.json"," and ",[14,587,100],{},", because an ",[14,590,580],{}," map hides every path it does not list.",[567,593,594,597],{},[14,595,596],{},"repository"," points to a GitHub repository you own, or one in an organization you belong to.",[567,599,600,603,604,607,608,610],{},[14,601,602],{},"kubb"," or ",[14,605,606],{},"@kubb\u002Fcore"," is a peer dependency, not a bundled one. Keep ",[14,609,602],{}," as a dev dependency too, to build and test locally.",[567,612,613,614,180,617,620,621,624],{},"A ",[14,615,616],{},"preinstall",[14,618,619],{},"install",", or ",[14,622,623],{},"postinstall"," script is allowed only when the overview explains what it does.",[47,626,628],{"id":627},"add-the-manifest","Add the manifest",[10,630,631,632,634,635,637],{},"Create ",[14,633,584],{}," at the package root. It tells the registry, ",[14,636,16],{},", and Studio what the package is and which factory to call:",[59,639,641],{"language":107,"filename":584,"code":640,"class":64},"{\n \"$schema\": \"https:\u002F\u002Fkubb.dev\u002Fschemas\u002Fkubb-extension.json\",\n \"kind\": \"plugin\",\n \"name\": \"plugin-example\",\n \"export\": \"pluginExample\",\n \"displayName\": \"Example\",\n \"description\": \"Writes a comment with the HTTP method and path of every operation.\",\n \"maintainers\": [{ \"name\": \"Acme\", \"github\": \"acme\" }],\n \"compatibility\": { \"kubb\": \">=5.8.3\", \"node\": \">=22\" }\n}",[14,642,643,117,647,117,661,117,675,117,688,117,702,117,716,117,730,117,764,117,794],{"class":111},[69,644,645],{"class":71,"style":72},[69,646,116],{"style":79},[69,648,649,651,654,656,659],{"class":71,"style":72},[69,650,122],{"style":79},[69,652,653],{"style":79},"\"$schema\"",[69,655,128],{"style":75},[69,657,658],{"style":93},"\"https:\u002F\u002Fkubb.dev\u002Fschemas\u002Fkubb-extension.json\"",[69,660,134],{"style":75},[69,662,663,665,668,670,673],{"class":71,"style":72},[69,664,122],{"style":75},[69,666,667],{"style":79},"\"kind\"",[69,669,128],{"style":75},[69,671,672],{"style":93},"\"plugin\"",[69,674,134],{"style":75},[69,676,677,679,681,683,686],{"class":71,"style":72},[69,678,122],{"style":75},[69,680,125],{"style":79},[69,682,128],{"style":75},[69,684,685],{"style":93},"\"plugin-example\"",[69,687,134],{"style":75},[69,689,690,692,695,697,700],{"class":71,"style":72},[69,691,122],{"style":75},[69,693,694],{"style":79},"\"export\"",[69,696,128],{"style":75},[69,698,699],{"style":93},"\"pluginExample\"",[69,701,134],{"style":75},[69,703,704,706,709,711,714],{"class":71,"style":72},[69,705,122],{"style":75},[69,707,708],{"style":79},"\"displayName\"",[69,710,128],{"style":75},[69,712,713],{"style":93},"\"Example\"",[69,715,134],{"style":75},[69,717,718,720,723,725,728],{"class":71,"style":72},[69,719,122],{"style":75},[69,721,722],{"style":79},"\"description\"",[69,724,128],{"style":75},[69,726,727],{"style":93},"\"Writes a comment with the HTTP method and path of every operation.\"",[69,729,134],{"style":75},[69,731,732,734,737,739,742,744,746,749,751,754,756,759,762],{"class":71,"style":72},[69,733,122],{"style":75},[69,735,736],{"style":79},"\"maintainers\"",[69,738,128],{"style":75},[69,740,741],{"style":79},"[{ ",[69,743,125],{"style":79},[69,745,128],{"style":75},[69,747,748],{"style":93},"\"Acme\"",[69,750,180],{"style":75},[69,752,753],{"style":79},"\"github\"",[69,755,128],{"style":75},[69,757,758],{"style":93},"\"acme\" ",[69,760,761],{"style":79},"}]",[69,763,134],{"style":75},[69,765,766,768,771,773,775,777,779,782,784,787,789,792],{"class":71,"style":72},[69,767,122],{"style":75},[69,769,770],{"style":79},"\"compatibility\"",[69,772,128],{"style":75},[69,774,80],{"style":79},[69,776,389],{"style":79},[69,778,128],{"style":75},[69,780,781],{"style":93},"\">=5.8.3\"",[69,783,180],{"style":75},[69,785,786],{"style":79},"\"node\"",[69,788,128],{"style":75},[69,790,791],{"style":93},"\">=22\" ",[69,793,224],{"style":79},[69,795,796],{"class":71,"style":72},[69,797,224],{"style":79},[564,799,800,817],{},[567,801,802,803,806,807,585,810,813,814,816],{},"Set ",[14,804,805],{},"name"," to the plugin's ",[14,808,809],{},"meta.name",[14,811,812],{},"export"," to the factory that ",[14,815,62],{}," exports.",[567,818,819,820,823,824,827,828,28],{},"Give ",[14,821,822],{},"meta.compatibility"," in ",[14,825,826],{},"src\u002Fplugin.ts"," the same ranges, so Kubb checks them at runtime too. With a bundler, ",[19,829,831,832,835],{"href":830},"\u002Fdocs\u002F5.x\u002Freference\u002Fkit\u002Fmanifest#import-compatibility-into-meta","import ",[14,833,834],{},"compatibility"," from the manifest",[10,837,838,842,843,846],{},[19,839,841],{"href":840},"\u002Fdocs\u002F5.x\u002Freference\u002Fkit\u002Fmanifest","Extension manifest"," lists every field and the ",[14,844,845],{},"options"," Studio shows as a form.",[47,848,850],{"id":849},"write-the-docs","Write the docs",[10,852,853,854,856],{},"Create a ",[14,855,36],{}," folder next to the manifest. kubb.dev renders it as the extension's page:",[59,858,861],{"language":859,"filename":36,"code":860,"class":64},"text","docs\u002F\n├── overview.md required\n├── options.md optional, the full option reference\n└── guides\u002F\n └── \u003Cid>.md optional, one file per task",[14,862,864,117,868,117,873,117,878,117,883],{"class":863},"language-text",[69,865,866],{"class":71,"style":72},[69,867,36],{"style":83},[69,869,870],{"class":71,"style":72},[69,871,872],{"style":83},"├── overview.md required",[69,874,875],{"class":71,"style":72},[69,876,877],{"style":83},"├── options.md optional, the full option reference",[69,879,880],{"class":71,"style":72},[69,881,882],{"style":83},"└── guides\u002F",[69,884,885],{"class":71,"style":72},[69,886,887],{"style":83}," └── \u003Cid>.md optional, one file per task",[10,889,890,891,894],{},"Start each file with a ",[14,892,893],{},"#"," title and a one-paragraph description:",[59,896,900],{"language":897,"filename":898,"code":899,"class":64},"md","docs\u002Foverview.md","# Example\n\nWrites a comment with the HTTP method and path of every operation.\n\n## Setup\n\nRuns on its own and needs no other plugin.",[14,901,903,117,909,117,911,117,916,117,918,117,923,117,925],{"class":902},"language-md",[69,904,905],{"class":71,"style":72},[69,906,908],{"style":907},"color:#6f42c1;--hls-dark:#b392f0","# Example",[69,910],{"class":71,"style":72},[69,912,913],{"class":71,"style":72},[69,914,915],{"style":83},"Writes a comment with the HTTP method and path of every operation.",[69,917],{"class":71,"style":72},[69,919,920],{"class":71,"style":72},[69,921,922],{"style":907},"## Setup",[69,924],{"class":71,"style":72},[69,926,927],{"class":71,"style":72},[69,928,929],{"style":83},"Runs on its own and needs no other plugin.",[10,931,932,933,937],{},"Leave install commands out of the overview. The page already shows them, and validation fails on them. ",[19,934,936],{"href":935},"\u002Fdocs\u002F5.x\u002Freference\u002Fkit\u002Fextension-docs","Extension docs"," has the rules for the overview, guide names, and Markdown. Also ship a README with installation and a Kubb config example, and a license file.",[47,939,941],{"id":940},"check-the-tarball","Check the tarball",[10,943,944],{},"Build, list the files npm includes, and create a local tarball:",[59,946,950],{"language":947,"filename":948,"code":949,"class":64},"shell","Terminal","npm run build\nnpm pack --dry-run\nnpm pack",[14,951,953,117,961,117,968],{"class":952},"language-shell",[69,954,955,958],{"class":71,"style":72},[69,956,957],{"style":907},"npm ",[69,959,960],{"style":83},"run build",[69,962,963,965],{"class":71,"style":72},[69,964,957],{"style":907},[69,966,967],{"style":83},"pack --dry-run",[69,969,970,972],{"class":71,"style":72},[69,971,957],{"style":907},[69,973,974],{"style":83},"pack",[10,976,977,978,180,981,180,983,985,986,988,989,992],{},"Check that the dry run lists ",[14,979,980],{},"dist\u002F",[14,982,584],{},[14,984,36],{},", and ",[14,987,100],{},", with no fixtures, tests, or generated client files. ",[14,990,991],{},"prepack"," runs the build and the test first.",[47,994,996],{"id":995},"publish-a-version","Publish a version",[998,999,1000,1026],"tabs",{},[1001,1002,1004,1007],"tabs-item",{"label":1003},"npm",[10,1005,1006],{},"Set a version that npm does not have yet, then sign in and publish:",[59,1008,1010],{"language":947,"filename":948,"code":1009,"class":64},"npm login\nnpm publish --access public",[14,1011,1012,117,1019],{"class":952},[69,1013,1014,1016],{"class":71,"style":72},[69,1015,957],{"style":907},[69,1017,1018],{"style":83},"login",[69,1020,1021,1023],{"class":71,"style":72},[69,1022,957],{"style":907},[69,1024,1025],{"style":83},"publish --access public",[1001,1027,1029,1039,1122],{"label":1028},"GitHub release",[10,1030,1031,1032,1034,1035,1038],{},"If the package is not on npm, users install it from a GitHub release. ",[14,1033,16],{}," installs ",[14,1036,1037],{},"github:\u003Cowner>\u002F\u003Crepo>#\u003Ccommit>",", so nothing builds on the user's machine. The release must meet these rules:",[564,1040,1041,1051,1070,1109],{},[567,1042,1043,1044,1047,1048,28],{},"The package sits at the repository root. A scoped name uses your GitHub owner, such as ",[14,1045,1046],{},"@acme\u002F"," for ",[14,1049,1050],{},"github.com\u002Facme",[567,1052,1053,1055,1056,180,1059,985,1062,1064,1065,1067,1068,28],{},[14,1054,980],{}," is committed. ",[14,1057,1058],{},"main",[14,1060,1061],{},"module",[14,1063,580],{}," point to committed files, and ",[14,1066,571],{}," lists them and ",[14,1069,584],{},[567,1071,1072,1074,1075,180,1077,180,1079,180,1081,180,1084,180,1086,180,1089,620,1092,1095,1096,1099,1100,1102,1103,1106,1107,28],{},[14,1073,100],{}," has no ",[14,1076,616],{},[14,1078,619],{},[14,1080,623],{},[14,1082,1083],{},"prepare",[14,1085,991],{},[14,1087,1088],{},"prepublish",[14,1090,1091],{},"publish",[14,1093,1094],{},"build"," script, and no ",[14,1097,1098],{},"workspaces",". Rename ",[14,1101,1094],{},", for example to ",[14,1104,1105],{},"compile",", and drop ",[14,1108,991],{},[567,1110,1111,1112,1114,1115,1118,1119,28],{},"The tag equals the ",[14,1113,100],{}," version, with or without a leading ",[14,1116,1117],{},"v",", such as ",[14,1120,1121],{},"v1.0.0",[10,1123,1124],{},"Commit the manifest, the docs, and the build, then create a GitHub release from that commit.",[47,1126,41],{"id":1127},"submit-to-the-registry",[10,1129,1130,1131,1135,1136,1140],{},"Open a ",[19,1132,1134],{"href":1133},"https:\u002F\u002Fgithub.com\u002Fkubb-labs\u002Fregistry\u002Fissues\u002Fnew?template=submit-extension.yml","submission issue"," on kubb-labs\u002Fregistry. In ",[1137,1138,1139],"strong",{},"Source",", enter one of these:",[1142,1143,1144,1157],"table",{},[1145,1146,1147],"thead",{},[1148,1149,1150,1154],"tr",{},[1151,1152,1153],"th",{},"You have",[1151,1155,1156],{},"Enter",[1158,1159,1160,1175,1185,1195,1205],"tbody",{},[1148,1161,1162,1170],{},[1163,1164,1165,1166,1169],"td",{},"An npm package (pins ",[14,1167,1168],{},"latest",")",[1163,1171,1172],{},[14,1173,1174],{},"kubb-plugin-example",[1148,1176,1177,1180],{},[1163,1178,1179],{},"A specific npm version",[1163,1181,1182],{},[14,1183,1184],{},"kubb-plugin-example@1.0.0",[1148,1186,1187,1190],{},[1163,1188,1189],{},"An npm page",[1163,1191,1192],{},[14,1193,1194],{},"https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fkubb-plugin-example",[1148,1196,1197,1200],{},[1163,1198,1199],{},"A package on npm, by its folder in a GitHub monorepo",[1163,1201,1202],{},[14,1203,1204],{},"https:\u002F\u002Fgithub.com\u002Facme\u002Fkubb-plugins\u002Ftree\u002Fmain\u002Fpackages\u002Fexample",[1148,1206,1207,1210],{},[1163,1208,1209],{},"A GitHub release, package not on npm",[1163,1211,1212],{},[14,1213,1214],{},"https:\u002F\u002Fgithub.com\u002Facme\u002Fkubb-plugin-example\u002Ftree\u002Fv1.0.0",[10,1216,1217,1218,1221],{},"In ",[1137,1219,1220],{},"Categories",", tick every category that fits. The first tick is the main one.",[10,1223,1224,1225,1118,1228,28],{},"Within minutes, a workflow opens a review pull request with the record and links it on your issue. If the workflow reports a problem instead, fix it and edit the issue to submit again. Your id is ",[14,1226,1227],{},"\u003Cowner>\u002F\u003Cslug>",[14,1229,1230],{},"acme\u002Fkubb-plugin-example",[47,1232,1234],{"id":1233},"review","Wait for the review",[10,1236,1237,1238,28],{},"Checks on the pull request validate the record and the docs, and load your extension with install scripts off. A maintainer then reviews the package against ",[19,1239,1241],{"href":1240},"https:\u002F\u002Fgithub.com\u002Fkubb-labs\u002Fregistry\u002Fblob\u002Fmain\u002FREVIEW.md",[14,1242,1243],{},"REVIEW.md",[10,1245,1246,1247,28],{},"After the pull request exists, editing the issue no longer submits it again. When a check fails or the maintainer asks for changes, publish a fixed version and reply in the pull request. See ",[19,1248,1250],{"href":1249},"#registry-checks","Registry checks",[10,1252,1253],{},"After the merge, the registry lists the extension within minutes. Users install it with:",[59,1255,1257],{"language":947,"filename":948,"code":1256,"class":64},"kubb add acme\u002Fkubb-plugin-example",[14,1258,1259],{"class":952},[69,1260,1261,1264],{"class":71,"style":72},[69,1262,1263],{"style":907},"kubb ",[69,1265,1266],{"style":83},"add acme\u002Fkubb-plugin-example",[47,1268,1270],{"id":1269},"release-a-new-version","Release a new version",[10,1272,1273,1274,1276,1277,28],{},"A new version does not change what ",[14,1275,16],{}," installs. Every Monday, a workflow opens a pull request that moves each pin to the latest npm version or GitHub release, with the same review. After the merge, users get it with ",[19,1278,1280],{"href":1279},"\u002Fdocs\u002F5.x\u002Freference\u002Fcommands\u002Fupdate",[14,1281,1282],{},"kubb update",[47,1284,1286],{"id":1285},"less-common-cases","Less common cases",[1288,1289,1250],"h3",{"id":1290},"registry-checks",[10,1292,1293,1294,585,1296,1298,1299,1301],{},"When the registry reviews a version you submit, it reads ",[14,1295,584],{},[14,1297,36],{}," from the npm tarball or GitHub release, plus ",[14,1300,100],{}," for a GitHub release. Ship these files before you submit.",[10,1303,1304,1305,585,1308,28],{},"See ",[19,1306,941],{"href":1307},"#check-the-tarball",[19,1309,1311],{"href":1310},"\u002Fdocs\u002F5.x\u002Freference\u002Fkit\u002Fmanifest#manifest-validation","Manifest validation",{"title":1313,"searchDepth":1314,"depth":1314,"links":1315},"",5,[1316,1318,1319,1320,1321,1322,1323,1324,1325],{"id":49,"depth":1317,"text":50},2,{"id":627,"depth":1317,"text":628},{"id":849,"depth":1317,"text":850},{"id":940,"depth":1317,"text":941},{"id":995,"depth":1317,"text":996},{"id":1127,"depth":1317,"text":41},{"id":1233,"depth":1317,"text":1234},{"id":1269,"depth":1317,"text":1270},{"id":1285,"depth":1317,"text":1286,"children":1326},[1327],{"id":1290,"depth":1328,"text":1250},3,"Package a Kubb plugin with a kubb-extension.json manifest and docs, publish it to npm or a GitHub release, and submit it to the Kubb registry.",{"layout":1331,"title":5,"description":1329,"outline":1332,"order":1333,"navigation":1334},"doc",[1317,1328],4,{"title":1335,"icon":1336},"Publish a plugin","i-iconoir-upload",{"layout":1331,"outline":1338},[1317,1328],{"title":1335,"icon":1336},"\u002Fdocs\u002F5.x\u002Fhow-to\u002Fpublish-a-plugin",{"title":5,"description":1329},{"loc":1340},"kubb-labs\u002Fkubb\u002Fdocs\u002F5.x\u002Fhow-to\u002Fpublish-a-plugin.md","docs\u002F5.x\u002Fhow-to\u002Fpublish-a-plugin","rj81-UUv2Rta54dLf6Rc3S4QUGXhkEB5CVEM-ZcwJ_Y",1795727672965,"1b64b1eb-29b7-4f90-ad41-6f24721e1669"]