-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d596498
commit e7a6696
Showing
3 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
_bin | ||
_site | ||
_cache | ||
npm | ||
_npm | ||
demo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/, ""); | ||
|
||
|
@@ -18,7 +18,7 @@ await build({ | |
"./plugins/auto_trim.ts", | ||
], | ||
scriptModule: false, | ||
outDir: "./npm", | ||
outDir: "./_npm", | ||
shims: { deno: true }, | ||
compilerOptions: { target: "ES2022" }, | ||
typeCheck: "both", | ||
|
@@ -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"); | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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, | ||
|