Skip to content

Commit 2c49715

Browse files
committed
more attempts at deno+npm support
1 parent cf01dd6 commit 2c49715

File tree

9 files changed

+48
-51
lines changed

9 files changed

+48
-51
lines changed

packages/annotated-json/package.json

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@quarto/annotated-json",
3-
"version": "0.1.3",
3+
"version": "0.1.4",
44
"description": "A data structure for storing and manipulation a JSON object together with source locations of its constituent parts.",
55
"license": "MIT",
66
"author": {
@@ -14,27 +14,21 @@
1414
"type": "git",
1515
"url": "git+https://github.com/quarto-dev/quarto.git"
1616
},
17-
"main": "dist/index.js",
18-
"types": "dist/index.d.ts",
19-
"exports": {
20-
".": {
21-
"types": "./dist/index.d.ts",
22-
"import": "./dist/index.js",
23-
"require": "./dist/index.js"
24-
}
25-
},
17+
"main": "dist/cjs/index.js",
18+
"types": "dist/cjs/index.d.ts",
2619
"files": ["dist"],
2720
"dependencies": {
2821
"tsconfig": "*",
2922
"typescript": "^5.4.2",
30-
"@quarto/mapped-string": "^0.1.7",
31-
"@quarto/tidyverse-errors": "^0.1.3"
23+
"@quarto/mapped-string": "^0.1.8",
24+
"@quarto/tidyverse-errors": "^0.1.9"
3225
},
3326
"devDependencies": {
3427
"tsx": "^4.7.1"
3528
},
3629
"scripts": {
37-
"build": "tsc",
30+
"build": "npm run build:cjs",
31+
"build:cjs": "tsc -p tsconfig.cjs.json",
3832
"test": "node --import tsx --test test/*.test.ts"
3933
}
4034
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"module": "commonjs",
5+
"outDir": "./dist/cjs"
6+
}
7+
}

packages/annotated-json/tsconfig.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@
66
"declaration": true,
77
"declarationMap": true,
88
"rootDir": "./src",
9-
"outDir": "./dist",
10-
"module": "commonjs",
119
"esModuleInterop": true,
12-
"target": "es2018",
10+
"target": "ES2020",
1311
"moduleResolution": "node",
14-
"allowJs": true
12+
"allowJs": true,
1513
},
1614
}

packages/json-validator/package.json

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@quarto/json-validator",
3-
"version": "0.1.6",
3+
"version": "0.1.7",
44
"description": "A validation library for JSON objects with an emphasis on good error messages.",
55
"author": {
66
"name": "Posit PBC"
@@ -14,31 +14,25 @@
1414
"url": "git+https://github.com/quarto-dev/quarto.git"
1515
},
1616
"license": "MIT",
17-
"main": "dist/index.js",
18-
"types": "dist/index.d.ts",
19-
"exports": {
20-
".": {
21-
"types": "./dist/index.d.ts",
22-
"import": "./dist/index.js",
23-
"require": "./dist/index.js"
24-
}
25-
},
17+
"main": "dist/cjs/index.js",
18+
"types": "dist/cjs/index.d.ts",
2619
"files": ["dist"],
2720
"dependencies": {
2821
"tsconfig": "*",
2922
"build": "*",
3023
"typescript": "^5.4.2",
3124
"regexpp": "^3.2.0",
3225
"ansi-colors": "^4.1.3",
33-
"@quarto/mapped-string": "^0.1.7",
34-
"@quarto/tidyverse-errors": "^0.1.3",
35-
"@quarto/annotated-json": "^0.1.3"
26+
"@quarto/mapped-string": "^0.1.8",
27+
"@quarto/tidyverse-errors": "^0.1.9",
28+
"@quarto/annotated-json": "^0.1.4"
3629
},
3730
"devDependencies": {
3831
"tsx": "^4.7.1"
3932
},
4033
"scripts": {
41-
"build": "tsc",
34+
"build": "npm run build:cjs",
35+
"build:cjs": "tsc -p tsconfig.cjs.json",
4236
"test": "node --import tsx --test test/*.test.ts"
4337
}
4438
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"module": "commonjs",
5+
"outDir": "./dist/cjs"
6+
}
7+
}

packages/json-validator/tsconfig.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@
66
"declaration": true,
77
"declarationMap": true,
88
"rootDir": "./src",
9-
"outDir": "./dist",
10-
"module": "commonjs",
119
"esModuleInterop": true,
12-
"target": "es2018",
10+
"target": "ES2020",
1311
"moduleResolution": "node",
14-
"allowJs": true
12+
"allowJs": true,
1513
},
1614
}

packages/mapped-string/package.json

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@quarto/mapped-string",
3-
"version": "0.1.7",
3+
"version": "0.1.8",
44
"description": "A string data structure with integrated source maps.",
55
"license": "MIT",
66
"author": {
@@ -14,27 +14,21 @@
1414
"type": "git",
1515
"url": "git+https://github.com/quarto-dev/quarto.git"
1616
},
17-
"main": "dist/index.js",
18-
"types": "dist/index.d.ts",
19-
"exports": {
20-
".": {
21-
"types": "./dist/index.d.ts",
22-
"import": "./dist/index.js",
23-
"require": "./dist/index.js"
24-
}
25-
},
17+
"main": "dist/cjs/index.js",
18+
"types": "dist/cjs/index.d.ts",
2619
"files": ["dist"],
2720
"dependencies": {
2821
"tsconfig": "*",
2922
"typescript": "^5.4.2",
3023
"ansi-colors": "^4.1.3",
31-
"@quarto/tidyverse-errors": "^0.1.3"
24+
"@quarto/tidyverse-errors": "^0.1.9"
3225
},
3326
"devDependencies": {
3427
"tsx": "^4.7.1"
3528
},
3629
"scripts": {
37-
"build": "tsc",
30+
"build": "npm run build:cjs",
31+
"build:cjs": "tsc -p tsconfig.cjs.json",
3832
"test": "node --import tsx --test test/*.test.ts"
3933
}
4034
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"module": "commonjs",
5+
"outDir": "./dist/cjs"
6+
}
7+
}

packages/mapped-string/tsconfig.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@
66
"declaration": true,
77
"declarationMap": true,
88
"rootDir": "./src",
9-
"outDir": "./dist",
10-
"module": "commonjs",
119
"esModuleInterop": true,
12-
"target": "es2018",
10+
"target": "ES2020",
1311
"moduleResolution": "node",
14-
"allowJs": true
12+
"allowJs": true,
1513
},
1614
}

0 commit comments

Comments
 (0)