@beeff/tuco 1.0.0-rc0 → 1.0.0-rc1

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/lib/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from './tuco.js';
2
+ export { default } from './tuco.js';
package/lib/index.js ADDED
@@ -0,0 +1,3 @@
1
+ export * from './tuco.js';
2
+ export { default } from './tuco.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,24 @@
1
1
  {
2
2
  "name": "@beeff/tuco",
3
- "version": "1.0.0-rc0",
3
+ "version": "1.0.0-rc1",
4
4
  "description": "Minimalist library to use with simple query grammars, built on parser combinators.",
5
+ "main": "lib/index.js",
6
+ "types": "lib/index.d.ts",
7
+ "type": "module",
8
+ "sideEffects": false,
9
+ "scripts": {
10
+ "clean": "rm -rf lib",
11
+ "build": "npm run clean && npm run compile",
12
+ "compile": "../node_modules/.bin/tsc --project ./tsconfig.build.json",
13
+ "build:test": "../node_modules/.bin/tsc --project ./tsconfig.json",
14
+ "test": "npm run build:test && ../node_modules/.bin/mocha"
15
+ },
16
+ "files": [
17
+ "lib/*",
18
+ "LICENSE",
19
+ "readme.md",
20
+ "CHANGELOG.md"
21
+ ],
5
22
  "repository": {
6
23
  "type": "git",
7
24
  "url": "https://github.com/Pavel-Husakouski/tuco.js"
@@ -9,32 +26,9 @@
9
26
  "author": {
10
27
  "name": "Pavel Husakouski"
11
28
  },
12
- "main": "./lib/tuco.js",
13
- "types": "./lib/tuco.d.ts",
14
- "files": [
15
- "lib",
16
- "README.md",
17
- "CHANGELOG.md",
18
- "LICENSE"
19
- ],
20
- "type": "module",
21
- "tags": [
22
- "query",
23
- "expression",
24
- "grammar",
25
- "parser",
26
- "combinators"
27
- ],
28
- "licenses": [
29
- {
30
- "type": "MIT",
31
- "url": "https://raw.githubusercontent.com/hollander/tuco.js/master/LICENSE"
32
- }
33
- ],
34
- "scripts": {
35
- "test": "node --import tsx ./node_modules/mocha/bin/mocha.js",
36
- "typecheck": "tsc --noEmit",
37
- "build": "tsc -p tsconfig.build.json"
29
+ "license": "MIT",
30
+ "publishConfig": {
31
+ "access": "public"
38
32
  },
39
33
  "devDependencies": {
40
34
  "@beeff/loose-match": "^1.0.0",
@@ -43,8 +37,5 @@
43
37
  "mocha": "^12.0.3",
44
38
  "tsx": "^4.23.15",
45
39
  "typescript": "^7.0.2"
46
- },
47
- "publishConfig": {
48
- "access": "public"
49
40
  }
50
41
  }
@@ -17,15 +17,16 @@ const parser = or(word('first'), word('second'));
17
17
  parser('firstsecond'); // { value: 'first', rest: 'second' }
18
18
  ```
19
19
 
20
- Look at `test/demo*.ts` for more details.
20
+ Look at `pckg.test/test/demo*.spec.ts` for more details.
21
21
 
22
22
  Development
23
23
  -----------
24
24
 
25
25
  * npm install
26
- * npm test # mocha + tsx
27
- * npm run typecheck # tsc --noEmit
28
- * npm run build # tsc -> lib/ (JS + .d.ts + sourcemaps)
26
+ * npm test # build core + run all workspace tests (mocha + tsx)
27
+ * npm run test:core # core unit tests
28
+ * npm run test:test # demo grammar tests
29
+ * npm run build # compile pckg.core -> lib/ (JS + .d.ts + sourcemaps)
29
30
 
30
31
  Priorities
31
32
  ----------