unusable-pack 2.0.0 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
@@ -0,0 +1,20 @@
1
+ {
2
+ // These tasks will run in order when initializing your CodeSandbox project.
3
+ "setupTasks": [
4
+ {
5
+ "name": "Install Dependencies",
6
+ "command": "yarn install"
7
+ },
8
+ {
9
+ "name": "Install Deno runtime",
10
+ "command": "npm install -g deno"
11
+ },
12
+ {
13
+ "name": "Install release-it tool globally",
14
+ "command": "npm install -g release-it @release-it/bumper @release-it/conventional-changelog"
15
+ }
16
+ ],
17
+
18
+ // These tasks can be run from CodeSandbox. Running one will open a log in the app.
19
+ "tasks": {}
20
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "title": "Node.js",
3
+ "description": "The official Node.js template by the CodeSandbox team",
4
+ "iconUrl": "https://raw.githubusercontent.com/codesandbox/sandbox-templates/main/node/.codesandbox/icon.png",
5
+ "tags": ["node", "javascript", "playground"],
6
+ "published": true
7
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "name": "Devcontainer",
3
+ "image": "ghcr.io/codesandbox/devcontainers/typescript-node:latest"
4
+ }
package/.release-it.json CHANGED
@@ -1,18 +1,17 @@
1
1
  {
2
2
  "$schema": "https://unpkg.com/release-it@19/schema/release-it.json",
3
3
  "git": {
4
- "commit": false,
5
- "push": false,
4
+ "commitMessage": "chore(release): new version ${version}",
6
5
  "tagName": "v${version}",
7
- "requireCleanWorkingDir": false,
8
- "requireCommits": true
6
+ "requireCommits": true,
7
+ "requireCleanWorkingDir": false
9
8
  },
10
9
  "npm": {
11
10
  "publish": true
12
11
  },
13
12
  "plugins": {
14
13
  "@release-it/bumper": {
15
- "out": "../deno.json"
14
+ "out": "deno.json"
16
15
  },
17
16
  "@release-it/conventional-changelog": {
18
17
  "preset": "angular",
package/CHANGELOG.md CHANGED
@@ -1,11 +1,5 @@
1
1
  # Changelog
2
2
 
3
- # 2.0.0 (2026-02-10)
3
+ ## [2.0.2](/compare/v2.0.0...v2.0.2) (2026-02-14)
4
4
 
5
- ## 1.9.11 (2026-02-10)
6
-
7
- ## 1.9.10 (2026-02-10)
8
-
9
- ## 2.0.2 (2026-02-10)
10
-
11
- ## 2.0.1 (2026-02-10)
5
+ ## 0.0.2 (2026-02-14)
package/deno.json ADDED
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "unusable-pack",
3
+ "version": "2.0.2",
4
+ "exports": "./mod.ts",
5
+ "tasks": {
6
+ "build": "deno run -A scripts/build_npm.ts",
7
+ "dev": "deno test --watch"
8
+ },
9
+ "license": "MIT",
10
+ "imports": {
11
+ "@deno/dnt": "jsr:@deno/dnt@^0.42.3",
12
+ "@std/assert": "jsr:@std/assert@1"
13
+ }
14
+ }
package/deno.lock ADDED
@@ -0,0 +1,74 @@
1
+ {
2
+ "version": "5",
3
+ "specifiers": {
4
+ "jsr:@david/code-block-writer@^13.0.3": "13.0.3",
5
+ "jsr:@deno/dnt@~0.42.3": "0.42.3",
6
+ "jsr:@std/assert@1": "1.0.18",
7
+ "jsr:@std/fmt@1": "1.0.9",
8
+ "jsr:@std/fs@1": "1.0.22",
9
+ "jsr:@std/internal@^1.0.12": "1.0.12",
10
+ "jsr:@std/path@1": "1.1.4",
11
+ "jsr:@std/path@^1.1.4": "1.1.4",
12
+ "jsr:@ts-morph/bootstrap@0.27": "0.27.0",
13
+ "jsr:@ts-morph/common@0.27": "0.27.0"
14
+ },
15
+ "jsr": {
16
+ "@david/code-block-writer@13.0.3": {
17
+ "integrity": "f98c77d320f5957899a61bfb7a9bead7c6d83ad1515daee92dbacc861e13bb7f"
18
+ },
19
+ "@deno/dnt@0.42.3": {
20
+ "integrity": "62a917a0492f3c8af002dce90605bb0d41f7d29debc06aca40dba72ab65d8ae3",
21
+ "dependencies": [
22
+ "jsr:@david/code-block-writer",
23
+ "jsr:@std/fmt",
24
+ "jsr:@std/fs",
25
+ "jsr:@std/path@1",
26
+ "jsr:@ts-morph/bootstrap"
27
+ ]
28
+ },
29
+ "@std/assert@1.0.18": {
30
+ "integrity": "270245e9c2c13b446286de475131dc688ca9abcd94fc5db41d43a219b34d1c78",
31
+ "dependencies": [
32
+ "jsr:@std/internal"
33
+ ]
34
+ },
35
+ "@std/fmt@1.0.9": {
36
+ "integrity": "2487343e8899fb2be5d0e3d35013e54477ada198854e52dd05ed0422eddcabe0"
37
+ },
38
+ "@std/fs@1.0.22": {
39
+ "integrity": "de0f277a58a867147a8a01bc1b181d0dfa80bfddba8c9cf2bacd6747bcec9308",
40
+ "dependencies": [
41
+ "jsr:@std/internal",
42
+ "jsr:@std/path@^1.1.4"
43
+ ]
44
+ },
45
+ "@std/internal@1.0.12": {
46
+ "integrity": "972a634fd5bc34b242024402972cd5143eac68d8dffaca5eaa4dba30ce17b027"
47
+ },
48
+ "@std/path@1.1.4": {
49
+ "integrity": "1d2d43f39efb1b42f0b1882a25486647cb851481862dc7313390b2bb044314b5",
50
+ "dependencies": [
51
+ "jsr:@std/internal"
52
+ ]
53
+ },
54
+ "@ts-morph/bootstrap@0.27.0": {
55
+ "integrity": "b8d7bc8f7942ce853dde4161b28f9aa96769cef3d8eebafb379a81800b9e2448",
56
+ "dependencies": [
57
+ "jsr:@ts-morph/common"
58
+ ]
59
+ },
60
+ "@ts-morph/common@0.27.0": {
61
+ "integrity": "c7b73592d78ce8479b356fd4f3d6ec3c460d77753a8680ff196effea7a939052",
62
+ "dependencies": [
63
+ "jsr:@std/fs",
64
+ "jsr:@std/path@1"
65
+ ]
66
+ }
67
+ },
68
+ "workspace": {
69
+ "dependencies": [
70
+ "jsr:@deno/dnt@~0.42.3",
71
+ "jsr:@std/assert@1"
72
+ ]
73
+ }
74
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "$schema": "https://unpkg.com/release-it@19/schema/release-it.json",
3
+ "git": {
4
+ "commitMessage": "chore(release): new version ${version}",
5
+ "tagName": "v${version}",
6
+ "requireCommits": true,
7
+ "requireCleanWorkingDir": false
8
+ },
9
+ "npm": {
10
+ "publish": true
11
+ },
12
+ "plugins": {
13
+ "@release-it/bumper": {
14
+ "out": "deno.json"
15
+ },
16
+ "@release-it/conventional-changelog": {
17
+ "preset": "angular",
18
+ "infile": "CHANGELOG.md"
19
+ }
20
+ }
21
+ }
package/dist/README.md ADDED
@@ -0,0 +1,6 @@
1
+ # unusable-pack
2
+
3
+ Actually, this is an useless package. Cause it does not provide any functionality.
4
+
5
+ **Notes:**
6
+ unusable-pack has migrated to Deno runtime internally.
@@ -0,0 +1,76 @@
1
+ {
2
+ "name": "unusable-pack",
3
+ "version": "2.0.1",
4
+ "lockfileVersion": 3,
5
+ "requires": true,
6
+ "packages": {
7
+ "": {
8
+ "name": "unusable-pack",
9
+ "version": "2.0.1",
10
+ "dependencies": {
11
+ "@deno/shim-deno": "~0.18.0"
12
+ },
13
+ "devDependencies": {
14
+ "@types/node": "^20.9.0",
15
+ "picocolors": "^1.0.0"
16
+ }
17
+ },
18
+ "node_modules/@deno/shim-deno": {
19
+ "version": "0.18.2",
20
+ "resolved": "https://registry.npmjs.org/@deno/shim-deno/-/shim-deno-0.18.2.tgz",
21
+ "integrity": "sha512-oQ0CVmOio63wlhwQF75zA4ioolPvOwAoK0yuzcS5bDC1JUvH3y1GS8xPh8EOpcoDQRU4FTG8OQfxhpR+c6DrzA==",
22
+ "dependencies": {
23
+ "@deno/shim-deno-test": "^0.5.0",
24
+ "which": "^4.0.0"
25
+ }
26
+ },
27
+ "node_modules/@deno/shim-deno-test": {
28
+ "version": "0.5.0",
29
+ "resolved": "https://registry.npmjs.org/@deno/shim-deno-test/-/shim-deno-test-0.5.0.tgz",
30
+ "integrity": "sha512-4nMhecpGlPi0cSzT67L+Tm+GOJqvuk8gqHBziqcUQOarnuIax1z96/gJHCSIz2Z0zhxE6Rzwb3IZXPtFh51j+w=="
31
+ },
32
+ "node_modules/@types/node": {
33
+ "version": "20.19.33",
34
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.33.tgz",
35
+ "integrity": "sha512-Rs1bVAIdBs5gbTIKza/tgpMuG1k3U/UMJLWecIMxNdJFDMzcM5LOiLVRYh3PilWEYDIeUDv7bpiHPLPsbydGcw==",
36
+ "dev": true,
37
+ "dependencies": {
38
+ "undici-types": "~6.21.0"
39
+ }
40
+ },
41
+ "node_modules/isexe": {
42
+ "version": "3.1.5",
43
+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-3.1.5.tgz",
44
+ "integrity": "sha512-6B3tLtFqtQS4ekarvLVMZ+X+VlvQekbe4taUkf/rhVO3d/h0M2rfARm/pXLcPEsjjMsFgrFgSrhQIxcSVrBz8w==",
45
+ "engines": {
46
+ "node": ">=18"
47
+ }
48
+ },
49
+ "node_modules/picocolors": {
50
+ "version": "1.1.1",
51
+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
52
+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
53
+ "dev": true
54
+ },
55
+ "node_modules/undici-types": {
56
+ "version": "6.21.0",
57
+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",
58
+ "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",
59
+ "dev": true
60
+ },
61
+ "node_modules/which": {
62
+ "version": "4.0.0",
63
+ "resolved": "https://registry.npmjs.org/which/-/which-4.0.0.tgz",
64
+ "integrity": "sha512-GlaYyEb07DPxYCKhKzplCWBJtvxZcZMrL+4UkrTSJHHPyZU4mYYTv3qaOe77H7EODLSSopAUFAc6W8U4yqvscg==",
65
+ "dependencies": {
66
+ "isexe": "^3.1.1"
67
+ },
68
+ "bin": {
69
+ "node-which": "bin/which.js"
70
+ },
71
+ "engines": {
72
+ "node": "^16.13.0 || >=18.0.0"
73
+ }
74
+ }
75
+ }
76
+ }
package/mod.ts ADDED
@@ -0,0 +1,3 @@
1
+ export function getPlatform(): string {
2
+ return Deno.build.os;
3
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unusable-pack",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "Just an unusable package. Don't use it.",
5
5
  "main": "./script/mod.js",
6
6
  "module": "./esm/mod.js",
@@ -0,0 +1,26 @@
1
+ import { build, emptyDir } from "@deno/dnt";
2
+
3
+ await emptyDir("./dist");
4
+
5
+ const version = Deno.args[0] || "0.0.0";
6
+
7
+ const packageName = Deno.env.get("PACKAGE_NAME");
8
+
9
+ if (!packageName)
10
+ await build({
11
+ entryPoints: ["./mod.ts"],
12
+ outDir: "./dist",
13
+ shims: {
14
+ deno: true, // Injects Deno compatibility shims for Node
15
+ },
16
+ package: {
17
+ name: "unusable-pack",
18
+ version: version.replace(/^v/, ""), // Ensures "v1.0.0" becomes "1.0.0"
19
+ description: "Just an unusable package. Don't use it.",
20
+ },
21
+ postBuild() {
22
+ Deno.copyFileSync("README.md", "dist/README.md");
23
+ Deno.copyFileSync(".release-it.json", "dist/.release-it.json");
24
+ Deno.copyFileSync(".npmrc", "dist/.npmrc");
25
+ },
26
+ });
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes