Skip to content

Commit efe926f

Browse files
committed
chore
1 parent d6194ff commit efe926f

6 files changed

Lines changed: 234 additions & 21 deletions

File tree

‎.gitignore‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
11
.npm
2-
3-
deno.lock

‎.vscode/extensions.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"recommendations": [
33
"denoland.vscode-deno",
4-
"streetsidesoftware.code-spell-checker"
4+
"streetsidesoftware.code-spell-checker",
5+
"github.vscode-github-actions"
56
]
67
}

‎README.md‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,3 @@ Creates a new container from a module definition.
385385
### `@inject(id: ServiceIdentifier, transformer?: (instance: T) => any)`
386386

387387
Property decorator for dependency injection.
388-
389-
## License
390-
391-
MIT

‎deno.json‎

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
{
22
"name": "@denostack/monopole",
3+
"description": "",
34
"version": "0.4.0",
45
"tasks": {
56
"test": "deno task test:unit && deno task test:lint && deno task test:format && deno task test:types",
67
"test:format": "deno fmt --check",
78
"test:lint": "deno lint",
8-
"test:unit": "deno test -A",
9-
"test:types": "deno check mod.ts",
10-
"build:npm": "deno run --allow-sys --allow-env --allow-read --allow-write --allow-net --allow-run scripts/build_npm.ts"
9+
"test:unit": "deno test",
10+
"test:types": "find . -name '*.ts' -not -path './.npm/*' | xargs deno check",
11+
"build:npm": "deno run --allow-env --allow-read --allow-write --allow-run scripts/build_npm.ts"
1112
},
1213
"imports": {
1314
"@deno/dnt": "jsr:@deno/dnt@^0.42.3",
14-
"@std/assert": "jsr:@std/assert@^1.0.11",
15-
"@std/fmt": "jsr:@std/fmt@^1.0.5",
16-
"@std/testing": "jsr:@std/testing@^1.0.9"
15+
"@std/assert": "jsr:@std/assert@^1.0.15",
16+
"@std/fmt": "jsr:@std/fmt@^1.0.8",
17+
"@std/testing": "jsr:@std/testing@^1.0.16"
1718
},
1819
"exports": {
1920
".": "./mod.ts"
@@ -24,5 +25,12 @@
2425
"fmt": {
2526
"exclude": [".npm"]
2627
},
27-
"lock": false
28+
"publish": {
29+
"exclude": [
30+
".github",
31+
".vscode",
32+
"scripts",
33+
"examples"
34+
]
35+
}
2836
}

‎deno.lock‎

Lines changed: 211 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎scripts/build_npm.ts‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
import { build, emptyDir } from "@deno/dnt";
22
import { bgGreen } from "@std/fmt/colors";
3+
import denoJson from "../deno.json" with { type: "json" };
34

4-
const denoInfo = JSON.parse(
5-
Deno.readTextFileSync(new URL("../deno.json", import.meta.url)),
6-
);
7-
const version = denoInfo.version;
5+
const version = denoJson.version;
86

97
console.log(bgGreen(`version: ${version}`));
108

@@ -44,7 +42,8 @@ await build({
4442
url: "https://github.com/denostack/monopole/issues",
4543
},
4644
},
45+
postBuild() {
46+
Deno.copyFileSync("LICENSE", ".npm/LICENSE");
47+
Deno.copyFileSync("README.md", ".npm/README.md");
48+
},
4749
});
48-
49-
// post build steps
50-
Deno.copyFileSync("README.md", ".npm/README.md");

0 commit comments

Comments
 (0)