difftreelog
feat(web) npm publishing
in: master
4 files changed
bindings/jrsonnet-web/.gitignorediffbeforeafterboth--- a/bindings/jrsonnet-web/.gitignore
+++ b/bindings/jrsonnet-web/.gitignore
@@ -1 +1,2 @@
/lib
+/npm
bindings/jrsonnet-web/deno.jsondiffbeforeafterboth--- a/bindings/jrsonnet-web/deno.json
+++ b/bindings/jrsonnet-web/deno.json
@@ -1,13 +1,21 @@
{
"name": "@jrsonnet/jrsonnet",
+ "license": "MIT",
+ "version": "0.0.1",
"tasks": {
"wasmbuild": "deno run -A @deno/wasmbuild -p jrsonnet-web --skip-opt"
},
"imports": {
+ "@deno/dnt": "jsr:@deno/dnt@^0.42.3",
"@deno/wasmbuild": "jsr:@deno/wasmbuild@^0.21.1",
"@std/assert": "jsr:@std/assert@^1.0.19"
},
"exports": {
".": "./mod.ts"
+ },
+ "publish": {
+ "exclude": [
+ "!lib"
+ ]
}
}
bindings/jrsonnet-web/deno.lockdiffbeforeafterboth13 packageslockfile v5
Might be heavy and slow!
@david/path
0.2.0jsr↘ 2↖ 2checksumf2d7aa7f02ce5a55e27c09f9f1381794acb09d328f8d3c8a2e3ab3ffc294dccddepends on@david/temp
0.1.1jsr↘ 1↖ 1checksum3974e3aa76536bd831294b72f5b70bfb67af3f4119ae334360e321f6ded18840depends onused by@deno/wasmbuild
0.21.1jsr↘ 7↖ 1checksumf60afdffefbd61067cb8a0083cde7d22f5eb74084b074c672a87b8e92042b456depends onused by@std/assert
1.0.19jsr↘ 1↖ 1checksumeaada96ee120cb980bc47e040f82814d786fe8162ecc53c91d8df60b8755991edepends onused by@std/cli
1.0.29jsr↘ 0↖ 1checksumfa4ef29130baa834d8a13b7d138240c3a2fcfba740bfb7afa646a360a15ec84fused by@std/encoding
1.0.10jsr↘ 0↖ 1checksum8783c6384a2d13abd5e9e87a7ae0520a30e9f56aeeaa3bdf910a3eaaf5c811a1used by@std/fmt
1.0.10jsr↘ 0↖ 1checksum90dfba288802ac6de82fb31d0917eb9e4450b9925b954d5e51fc29ac07419db5used by@std/fs
1.0.23jsr↘ 2↖ 2checksum3ecbae4ce4fee03b180fa710caff36bb5adb66631c46a6460aaad49515565a37depends on@std/internal
1.0.13jsr↘ 0↖ 3checksum2f9546691d4ac2d32859c82dff284aaeac980ddeca38430d07941e7e288725c0@std/path
1.1.4jsr↘ 1↖ 2checksum1d2d43f39efb1b42f0b1882a25486647cb851481862dc7313390b2bb044314b5depends on@std/streams
1.1.0jsr↘ 0↖ 1checksum2f7024d841f343fd478afe0c958a3f0f068ef2a0d2bcc954f550f97ac1fa22e3used by@std/tar
0.1.10jsr↘ 1↖ 1checksum6bf907f3a4bc8bfef42973ba132d946756a6161ef6b914a9e1c06debe664db17depends onused byworkspace
workspace↘ 2↖ 0depends on
17 packageslockfile v5
Might be heavy and slow!
@david/code-block-writer
13.0.3jsr↘ 0↖ 1checksumf98c77d320f5957899a61bfb7a9bead7c6d83ad1515daee92dbacc861e13bb7fused by@david/path
0.2.0jsr↘ 2↖ 2checksumf2d7aa7f02ce5a55e27c09f9f1381794acb09d328f8d3c8a2e3ab3ffc294dccddepends on@david/temp
0.1.1jsr↘ 1↖ 1checksum3974e3aa76536bd831294b72f5b70bfb67af3f4119ae334360e321f6ded18840depends onused by@deno/dnt
0.42.3jsr↘ 5↖ 1checksum62a917a0492f3c8af002dce90605bb0d41f7d29debc06aca40dba72ab65d8ae3depends onused by@deno/wasmbuild
0.21.1jsr↘ 7↖ 1checksumf60afdffefbd61067cb8a0083cde7d22f5eb74084b074c672a87b8e92042b456depends onused by@std/assert
1.0.19jsr↘ 1↖ 1checksumeaada96ee120cb980bc47e040f82814d786fe8162ecc53c91d8df60b8755991edepends onused by@std/cli
1.0.29jsr↘ 0↖ 1checksumfa4ef29130baa834d8a13b7d138240c3a2fcfba740bfb7afa646a360a15ec84fused by@std/encoding
1.0.10jsr↘ 0↖ 1checksum8783c6384a2d13abd5e9e87a7ae0520a30e9f56aeeaa3bdf910a3eaaf5c811a1used by@std/fmt
1.0.10jsr↘ 0↖ 2checksum90dfba288802ac6de82fb31d0917eb9e4450b9925b954d5e51fc29ac07419db5@std/fs
1.0.23jsr↘ 2↖ 4checksum3ecbae4ce4fee03b180fa710caff36bb5adb66631c46a6460aaad49515565a37depends on@std/internal
1.0.13jsr↘ 0↖ 3checksum2f9546691d4ac2d32859c82dff284aaeac980ddeca38430d07941e7e288725c0@std/path
1.1.4jsr↘ 1↖ 4checksum1d2d43f39efb1b42f0b1882a25486647cb851481862dc7313390b2bb044314b5depends on@std/streams
1.1.0jsr↘ 0↖ 1checksum2f7024d841f343fd478afe0c958a3f0f068ef2a0d2bcc954f550f97ac1fa22e3used by@std/tar
0.1.10jsr↘ 1↖ 1checksum6bf907f3a4bc8bfef42973ba132d946756a6161ef6b914a9e1c06debe664db17depends onused by@ts-morph/bootstrap
0.27.0jsr↘ 1↖ 1checksumb8d7bc8f7942ce853dde4161b28f9aa96769cef3d8eebafb379a81800b9e2448depends onused by@ts-morph/common
0.27.0jsr↘ 2↖ 1checksumc7b73592d78ce8479b356fd4f3d6ec3c460d77753a8680ff196effea7a939052depends onused byworkspace
workspace↘ 3↖ 0
bindings/jrsonnet-web/scripts/build_npm.tsdiffbeforeafterboth--- /dev/null
+++ b/bindings/jrsonnet-web/scripts/build_npm.ts
@@ -0,0 +1,29 @@
+import { build, emptyDir } from "@deno/dnt";
+
+await emptyDir("./npm");
+
+await build({
+ entryPoints: ["./mod.ts"],
+ outDir: "./npm",
+ shims: {
+ // see JS docs for overview and more options
+ deno: true,
+ },
+ package: {
+ // package.json properties
+ name: "jrsonnet",
+ version: Deno.args[0],
+ description: "Jrsonnet.",
+ license: "MIT",
+ repository: {
+ type: "git",
+ url: "git+https://github.com/CertainLach/jrsonnet.git",
+ },
+ bugs: {
+ url: "https://github.com/CertainLach/jrsonnet/issues",
+ },
+ },
+ postBuild() {
+ Deno.copyFileSync("../../LICENSE", "npm/LICENSE");
+ },
+});