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.lockdiffbeforeafterboth1{1{2 "version": "5",2 "version": "5",3 "specifiers": {3 "specifiers": {4 "jsr:@david/code-block-writer@^13.0.3": "13.0.3",4 "jsr:@david/path@0.2": "0.2.0",5 "jsr:@david/path@0.2": "0.2.0",5 "jsr:@david/temp@~0.1.1": "0.1.1",6 "jsr:@david/temp@~0.1.1": "0.1.1",7 "jsr:@deno/dnt@~0.42.3": "0.42.3",6 "jsr:@deno/wasmbuild@~0.21.1": "0.21.1",8 "jsr:@deno/wasmbuild@~0.21.1": "0.21.1",7 "jsr:@std/assert@^1.0.19": "1.0.19",9 "jsr:@std/assert@^1.0.19": "1.0.19",8 "jsr:@std/cli@^1.0.11": "1.0.29",10 "jsr:@std/cli@^1.0.11": "1.0.29",9 "jsr:@std/encoding@^1.0.6": "1.0.10",11 "jsr:@std/encoding@^1.0.6": "1.0.10",12 "jsr:@std/fmt@1": "1.0.10",10 "jsr:@std/fmt@^1.0.4": "1.0.10",13 "jsr:@std/fmt@^1.0.4": "1.0.10",11 "jsr:@std/fs@1": "1.0.23",14 "jsr:@std/fs@1": "1.0.23",12 "jsr:@std/fs@^1.0.10": "1.0.23",15 "jsr:@std/fs@^1.0.10": "1.0.23",13 "jsr:@std/internal@^1.0.12": "1.0.13",16 "jsr:@std/internal@^1.0.12": "1.0.13",14 "jsr:@std/path@1": "1.1.4",17 "jsr:@std/path@1": "1.1.4",15 "jsr:@std/path@^1.1.4": "1.1.4",18 "jsr:@std/path@^1.1.4": "1.1.4",16 "jsr:@std/streams@^1.0.17": "1.1.0",19 "jsr:@std/streams@^1.0.17": "1.1.0",17 "jsr:@std/tar@~0.1.4": "0.1.10"20 "jsr:@std/tar@~0.1.4": "0.1.10",21 "jsr:@ts-morph/bootstrap@0.27": "0.27.0",22 "jsr:@ts-morph/common@0.27": "0.27.0"18 },23 },19 "jsr": {24 "jsr": {25 "@david/code-block-writer@13.0.3": {26 "integrity": "f98c77d320f5957899a61bfb7a9bead7c6d83ad1515daee92dbacc861e13bb7f"27 },20 "@david/path@0.2.0": {28 "@david/path@0.2.0": {21 "integrity": "f2d7aa7f02ce5a55e27c09f9f1381794acb09d328f8d3c8a2e3ab3ffc294dccd",29 "integrity": "f2d7aa7f02ce5a55e27c09f9f1381794acb09d328f8d3c8a2e3ab3ffc294dccd",22 "dependencies": [30 "dependencies": [30 "jsr:@david/path"38 "jsr:@david/path"31 ]39 ]32 },40 },41 "@deno/dnt@0.42.3": {42 "integrity": "62a917a0492f3c8af002dce90605bb0d41f7d29debc06aca40dba72ab65d8ae3",43 "dependencies": [44 "jsr:@david/code-block-writer",45 "jsr:@std/fmt@1",46 "jsr:@std/fs@1",47 "jsr:@std/path@1",48 "jsr:@ts-morph/bootstrap"49 ]50 },33 "@deno/wasmbuild@0.21.1": {51 "@deno/wasmbuild@0.21.1": {34 "integrity": "f60afdffefbd61067cb8a0083cde7d22f5eb74084b074c672a87b8e92042b456",52 "integrity": "f60afdffefbd61067cb8a0083cde7d22f5eb74084b074c672a87b8e92042b456",35 "dependencies": [53 "dependencies": [36 "jsr:@david/path",54 "jsr:@david/path",37 "jsr:@david/temp",55 "jsr:@david/temp",38 "jsr:@std/cli",56 "jsr:@std/cli",39 "jsr:@std/encoding",57 "jsr:@std/encoding",40 "jsr:@std/fmt",58 "jsr:@std/fmt@^1.0.4",41 "jsr:@std/fs@^1.0.10",59 "jsr:@std/fs@^1.0.10",42 "jsr:@std/tar"60 "jsr:@std/tar"43 ]61 ]80 "integrity": "6bf907f3a4bc8bfef42973ba132d946756a6161ef6b914a9e1c06debe664db17",98 "integrity": "6bf907f3a4bc8bfef42973ba132d946756a6161ef6b914a9e1c06debe664db17",81 "dependencies": [99 "dependencies": [82 "jsr:@std/streams"100 "jsr:@std/streams"101 ]102 },103 "@ts-morph/bootstrap@0.27.0": {104 "integrity": "b8d7bc8f7942ce853dde4161b28f9aa96769cef3d8eebafb379a81800b9e2448",105 "dependencies": [106 "jsr:@ts-morph/common"107 ]108 },109 "@ts-morph/common@0.27.0": {110 "integrity": "c7b73592d78ce8479b356fd4f3d6ec3c460d77753a8680ff196effea7a939052",111 "dependencies": [112 "jsr:@std/fs@1",113 "jsr:@std/path@1"83 ]114 ]84 }115 }85 },116 },86 "workspace": {117 "workspace": {87 "dependencies": [118 "dependencies": [119 "jsr:@deno/dnt@~0.42.3",88 "jsr:@deno/wasmbuild@~0.21.1",120 "jsr:@deno/wasmbuild@~0.21.1",89 "jsr:@std/assert@^1.0.19"121 "jsr:@std/assert@^1.0.19"90 ]122 ]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");
+ },
+});