Skip to content

Commit

Permalink
renamed script to _scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Jun 13, 2024
1 parent d596498 commit e7a6696
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
_bin
_site
_cache
npm
_npm
demo
8 changes: 4 additions & 4 deletions scripts/build_npm.ts → _scripts/build_npm.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { build } from "jsr:@deno/[email protected]";
import { emptyDir } from "jsr:@std/[email protected]/empty-dir";

await emptyDir("./npm");
await emptyDir("./_npm");

const version = Deno.args[0]?.replace(/^v/, "");

Expand All @@ -18,7 +18,7 @@ await build({
"./plugins/auto_trim.ts",
],
scriptModule: false,
outDir: "./npm",
outDir: "./_npm",
shims: { deno: true },
compilerOptions: { target: "ES2022" },
typeCheck: "both",
Expand All @@ -38,7 +38,7 @@ await build({
"npm:@types/[email protected]": "estree",
},
postBuild() {
Deno.copyFileSync("LICENSE", "npm/LICENSE");
Deno.copyFileSync("README.md", "npm/README.md");
Deno.copyFileSync("LICENSE", "_npm/LICENSE");
Deno.copyFileSync("README.md", "_npm/README.md");
},
});
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"test": "deno test --allow-read test",
"bench": "deno bench --allow-read",
"docs": "cd docs && deno task serve",
"build": "deno run --allow-run=npm --allow-env --allow-sys --allow-read --allow-write --allow-net=jsr.io scripts/build_npm.ts",
"build": "deno run --allow-run=npm --allow-env --allow-sys --allow-read --allow-write --allow-net=jsr.io _scripts/build_npm.ts",
"update-deps": "rm -rf npm && deno run -A 'https://deno.land/x/[email protected]/cli.ts' update deno.json **/*.ts"
},
"lock": false,
Expand Down

0 comments on commit e7a6696

Please sign in to comment.