File tree Expand file tree Collapse file tree 10 files changed +33
-21
lines changed
Expand file tree Collapse file tree 10 files changed +33
-21
lines changed Original file line number Diff line number Diff line change 1+ export NODE_OPTIONS := --experimental-vm-modules --redirect-warnings=artifacts/node-warnings
2+
13JS_SIZE_LIMIT_REQ += artifacts/dist
24
35# ###############################################################################
Original file line number Diff line number Diff line change @@ -3,6 +3,12 @@ import config from "@snout/jest-config";
33export default {
44 ...config ,
55 transform : {
6- "\\.tsx?$" : [ "ts-jest" , { tsconfig : "test/tsconfig.json" } ] ,
6+ "^.+\\.tsx?$" : [
7+ "ts-jest" ,
8+ {
9+ useESM : true ,
10+ tsconfig : "test/tsconfig.json" ,
11+ } ,
12+ ] ,
713 } ,
814} ;
Original file line number Diff line number Diff line change 2020 "main" : " artifacts/dist/index.js" ,
2121 "types" : " artifacts/dist/index.d.ts" ,
2222 "exports" : {
23- "." : " ./artifacts/dist/index.js"
23+ "." : {
24+ "types" : " ./artifacts/dist/index.d.ts" ,
25+ "import" : " ./artifacts/dist/index.js" ,
26+ "default" : " ./artifacts/dist/index.js"
27+ }
2428 },
2529 "sideEffects" : false ,
2630 "files" : [
3539 "size-limit-clean" : " rm -rf artifacts/dist"
3640 },
3741 "dependencies" : {
38- "@snout/regexp" : " ^0.3.0 "
42+ "@snout/regexp" : " ^0.3.2 "
3943 },
4044 "peerDependencies" : {
4145 "@snout/router-path" : " ^0.6.0"
4246 },
4347 "devDependencies" : {
4448 "@size-limit/preset-small-lib" : " ^8.0.0" ,
4549 "@snout/eslint-config" : " ^3.2.2" ,
46- "@snout/jest-config" : " ^2.1 .0" ,
50+ "@snout/jest-config" : " ^3.0 .0" ,
4751 "@snout/router-path" : " ^0.7.2" ,
48- "@snout/tsconfig" : " ^2 .0.0" ,
52+ "@snout/tsconfig" : " ^3 .0.0" ,
4953 "prettier" : " ^2.7.1" ,
5054 "prettier-plugin-organize-imports" : " ^3.0.0" ,
5155 "size-limit" : " ^8.0.0" ,
52- "typescript" : " ^4.4.3 "
56+ "typescript" : " ^4.8.4 "
5357 }
5458}
Original file line number Diff line number Diff line change 1- export { int } from "./coercion" ;
2- export { optional } from "./optional" ;
3- export { any , some } from "./repeating" ;
4- export { createSlash , slash } from "./slash" ;
1+ export { int } from "./coercion.js " ;
2+ export { optional } from "./optional.js " ;
3+ export { any , some } from "./repeating.js " ;
4+ export { createSlash , slash } from "./slash.js " ;
Original file line number Diff line number Diff line change 11import { path } from "@snout/router-path" ;
2- import { any } from "../../src/repeating" ;
2+ import { any } from "../../src/repeating.js " ;
33
44describe ( "any()" , ( ) => {
55 it ( "should allow building from an array" , ( ) => {
Original file line number Diff line number Diff line change 1- import { int } from "../../src/coercion" ;
2- import * as index from "../../src/index" ;
3- import { optional } from "../../src/optional" ;
4- import { any , some } from "../../src/repeating" ;
5- import { createSlash , slash } from "../../src/slash" ;
1+ import { int } from "../../src/coercion.js " ;
2+ import * as index from "../../src/index.js " ;
3+ import { optional } from "../../src/optional.js " ;
4+ import { any , some } from "../../src/repeating.js " ;
5+ import { createSlash , slash } from "../../src/slash.js " ;
66
77describe ( "module index" , ( ) => {
88 it ( "should provide access to int()" , ( ) => {
Original file line number Diff line number Diff line change 11import { path } from "@snout/router-path" ;
2- import { int } from "../../src/coercion" ;
2+ import { int } from "../../src/coercion.js " ;
33
44describe ( "int()" , ( ) => {
55 it ( "should allow building from a number" , ( ) => {
Original file line number Diff line number Diff line change 11import { normalizeParam , path } from "@snout/router-path" ;
2- import { int } from "../../src/coercion" ;
3- import { optional } from "../../src/optional" ;
2+ import { int } from "../../src/coercion.js " ;
3+ import { optional } from "../../src/optional.js " ;
44
55describe ( "optional()" , ( ) => {
66 it ( "should allow building with or without a defined arg" , ( ) => {
Original file line number Diff line number Diff line change 11import { path } from "@snout/router-path" ;
2- import { createSlash , slash } from "../../src/slash" ;
2+ import { createSlash , slash } from "../../src/slash.js " ;
33
44describe ( "createSlash()" , ( ) => {
55 it ( "should allow building with a boolean indicating whether to include the slash" , ( ) => {
Original file line number Diff line number Diff line change 11import { path } from "@snout/router-path" ;
2- import { some } from "../../src/repeating" ;
2+ import { some } from "../../src/repeating.js " ;
33
44describe ( "some()" , ( ) => {
55 it ( "should allow building from an array" , ( ) => {
You can’t perform that action at this time.
0 commit comments