@gjsify/path 0.0.1 → 0.1.0

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.
package/package.json CHANGED
@@ -1,28 +1,46 @@
1
1
  {
2
2
  "name": "@gjsify/path",
3
- "version": "0.0.1",
4
- "description": "path core module for gjs",
3
+ "version": "0.1.0",
4
+ "description": "Node.js path module for Gjs",
5
+ "type": "module",
6
+ "module": "lib/esm/index.js",
7
+ "types": "lib/types/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./lib/types/index.d.ts",
11
+ "default": "./lib/esm/index.js"
12
+ },
13
+ "./posix": {
14
+ "types": "./lib/types/posix.d.ts",
15
+ "default": "./lib/esm/posix.js"
16
+ },
17
+ "./win32": {
18
+ "types": "./lib/types/win32.d.ts",
19
+ "default": "./lib/esm/win32.js"
20
+ }
21
+ },
5
22
  "scripts": {
6
- "test": "cgjs ./test"
23
+ "clear": "rm -rf lib tsconfig.tsbuildinfo tsconfig.types.tsbuildinfo test.gjs.mjs test.node.mjs || exit 0",
24
+ "check": "tsc --noEmit",
25
+ "build": "yarn build:gjsify && yarn build:types",
26
+ "build:gjsify": "gjsify build --library 'src/**/*.{ts,js}' --exclude 'src/**/*.spec.{mts,ts}' 'src/test.{mts,ts}'",
27
+ "build:types": "tsc",
28
+ "build:test": "yarn build:test:gjs && yarn build:test:node",
29
+ "build:test:gjs": "gjsify build src/test.mts --app gjs --outfile test.gjs.mjs",
30
+ "build:test:node": "gjsify build src/test.mts --app node --outfile test.node.mjs",
31
+ "test": "yarn build:gjsify && yarn build:test && yarn test:node && yarn test:gjs",
32
+ "test:gjs": "gjs -m test.gjs.mjs",
33
+ "test:node": "node test.node.mjs"
7
34
  },
8
35
  "keywords": [
9
36
  "gjs",
10
- "require",
11
- "commonjs",
12
- "npm",
13
37
  "node",
14
- "gtk",
15
- "native",
16
- "cgjs",
17
38
  "path"
18
39
  ],
19
- "author": "Andrea Giammarchi",
20
- "license": "ISC",
21
- "main": "index.js",
22
- "repository": "github:cgjs/cgjs",
23
- "bugs": "https://github.com/gjsify/fs/issues",
24
- "homepage": "https://github.com/gjsify/fs",
25
40
  "devDependencies": {
26
- "cgjs": "^0.1.28"
41
+ "@gjsify/cli": "^0.1.0",
42
+ "@gjsify/unit": "^0.1.0",
43
+ "@types/node": "^25.5.0",
44
+ "typescript": "^6.0.2"
27
45
  }
28
- }
46
+ }
@@ -0,0 +1,11 @@
1
+ // Reference: Node.js lib/path.js — character code constants for path operations
2
+
3
+ export const CHAR_DOT = 46; /* . */
4
+ export const CHAR_FORWARD_SLASH = 47; /* / */
5
+ export const CHAR_BACKWARD_SLASH = 92; /* \ */
6
+ export const CHAR_COLON = 58; /* : */
7
+ export const CHAR_QUESTION_MARK = 63; /* ? */
8
+ export const CHAR_LOWERCASE_A = 97; /* a */
9
+ export const CHAR_LOWERCASE_Z = 122; /* z */
10
+ export const CHAR_UPPERCASE_A = 65; /* A */
11
+ export const CHAR_UPPERCASE_Z = 90; /* Z */