mirror of
https://github.com/classchartsapi/classcharts-api-js.git
synced 2026-05-14 11:58:13 +00:00
feat: format using biomejs
This commit is contained in:
parent
602529171f
commit
778e5e3fe4
16 changed files with 1077 additions and 1000 deletions
|
|
@ -6,49 +6,52 @@ if (!Deno.args[0]) throw new Error("No version specified");
|
|||
await emptyDir("./npm");
|
||||
|
||||
await build({
|
||||
entryPoints: [{
|
||||
name: ".",
|
||||
path: "./mod.ts",
|
||||
}, {
|
||||
name: "./types",
|
||||
path: "./src/types.ts",
|
||||
}],
|
||||
outDir: "./npm",
|
||||
importMap: "./deno.jsonc",
|
||||
shims: {
|
||||
deno: true,
|
||||
},
|
||||
packageManager: "pnpm",
|
||||
compilerOptions: {
|
||||
lib: ["DOM", "ESNext"],
|
||||
},
|
||||
typeCheck: "both",
|
||||
package: {
|
||||
name: "classcharts-api",
|
||||
version: String(Deno.args[0]).replace("v", ""),
|
||||
author: {
|
||||
name: "James Cook",
|
||||
email: "james@jaminit.co.uk",
|
||||
},
|
||||
description:
|
||||
"A Typescript wrapper for getting information from the ClassCharts API",
|
||||
license: "ISC",
|
||||
keywords: ["node", "typescript", "classcharts", "class charts"],
|
||||
bugs: {
|
||||
url: "https://github.com/classchartsapi/classcharts-api-js/issues",
|
||||
},
|
||||
repository: {
|
||||
type: "git",
|
||||
url: "https://github.com/classchartsapi/classcharts-api-js.git",
|
||||
},
|
||||
homepage: "https://classchartsapi.github.io/classcharts-api-js/",
|
||||
engines: {
|
||||
node: ">=18",
|
||||
},
|
||||
sideEffects: false,
|
||||
},
|
||||
postBuild() {
|
||||
Deno.copyFileSync("LICENSE", "npm/LICENSE");
|
||||
Deno.copyFileSync("README.md", "npm/README.md");
|
||||
},
|
||||
entryPoints: [
|
||||
{
|
||||
name: ".",
|
||||
path: "./mod.ts",
|
||||
},
|
||||
{
|
||||
name: "./types",
|
||||
path: "./src/types.ts",
|
||||
},
|
||||
],
|
||||
outDir: "./npm",
|
||||
importMap: "./deno.jsonc",
|
||||
shims: {
|
||||
deno: true,
|
||||
},
|
||||
packageManager: "pnpm",
|
||||
compilerOptions: {
|
||||
lib: ["DOM", "ESNext"],
|
||||
},
|
||||
typeCheck: "both",
|
||||
package: {
|
||||
name: "classcharts-api",
|
||||
version: String(Deno.args[0]).replace("v", ""),
|
||||
author: {
|
||||
name: "James Cook",
|
||||
email: "james@jaminit.co.uk",
|
||||
},
|
||||
description:
|
||||
"A Typescript wrapper for getting information from the ClassCharts API",
|
||||
license: "ISC",
|
||||
keywords: ["node", "typescript", "classcharts", "class charts"],
|
||||
bugs: {
|
||||
url: "https://github.com/classchartsapi/classcharts-api-js/issues",
|
||||
},
|
||||
repository: {
|
||||
type: "git",
|
||||
url: "https://github.com/classchartsapi/classcharts-api-js.git",
|
||||
},
|
||||
homepage: "https://classchartsapi.github.io/classcharts-api-js/",
|
||||
engines: {
|
||||
node: ">=18",
|
||||
},
|
||||
sideEffects: false,
|
||||
},
|
||||
postBuild() {
|
||||
Deno.copyFileSync("LICENSE", "npm/LICENSE");
|
||||
Deno.copyFileSync("README.md", "npm/README.md");
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue