File tree Expand file tree Collapse file tree 10 files changed +16
-14
lines changed Expand file tree Collapse file tree 10 files changed +16
-14
lines changed Original file line number Diff line number Diff line change 2222 "directory" : " packages/mf2-icu-mf1"
2323 },
2424 "main" : " lib/index.js" ,
25+ "type" : " module" ,
2526 "files" : [
2627 " lib/"
2728 ],
Original file line number Diff line number Diff line change 2222 "directory" : " packages/mf2-messageformat"
2323 },
2424 "main" : " lib/index.js" ,
25+ "type" : " module" ,
2526 "files" : [
2627 " lib/"
2728 ],
Original file line number Diff line number Diff line change 1- import type { Context } from '../format-context' ;
1+ import type { Context } from '../format-context.js ' ;
22import { lookupVariableRef } from './resolve-variable.js' ;
33import type { Literal , VariableRef } from '../data-model/types.js' ;
44
Original file line number Diff line number Diff line change 77 "noImplicitReturns" : true ,
88 "noUnusedLocals" : true ,
99 "noUnusedParameters" : true ,
10- "resolveJsonModule" : true ,
1110 "strict" : true ,
1211 "target" : " ES2022" ,
1312 "lib" : [" ES2022" ]
Original file line number Diff line number Diff line change 2222 "directory" : " packages/xliff"
2323 },
2424 "main" : " lib/index.js" ,
25+ "type" : " module" ,
2526 "files" : [
2627 " lib/"
2728 ],
Original file line number Diff line number Diff line change 11import type { Message } from 'messageformat' ;
22
3- export { mf2xliff } from './mf2xliff' ;
4- export { parse , stringify } from './xliff' ;
5- export { xliff2mf } from './xliff2mf' ;
6- export * from './xliff-spec' ;
3+ export { mf2xliff } from './mf2xliff.js ' ;
4+ export { parse , stringify } from './xliff.js ' ;
5+ export { xliff2mf } from './xliff2mf.js ' ;
6+ export * from './xliff-spec.js ' ;
77
88export type MessageResourceData = Map < string , Message | MessageResourceData > ;
99
Original file line number Diff line number Diff line change 77 isVariableRef
88} from 'messageformat' ;
99import type * as MF from 'messageformat' ;
10- import type { MessageFormatInfo , MessageResourceData } from './index' ;
11- import type * as X from './xliff-spec' ;
12- import { toNmtoken } from './nmtoken' ;
10+ import type { MessageFormatInfo , MessageResourceData } from './index.js ' ;
11+ import type * as X from './xliff-spec.js ' ;
12+ import { toNmtoken } from './nmtoken.js ' ;
1313
1414let _id = 0 ;
1515const nextId = ( ) => String ( ++ _id ) ;
File renamed without changes.
Original file line number Diff line number Diff line change 1- import type { Xliff , XliffDoc } from './xliff-spec' ;
2- import { parseXML , stringifyXML } from './xml' ;
1+ import type { Xliff , XliffDoc } from './xliff-spec.js ' ;
2+ import { parseXML , stringifyXML } from './xml.js ' ;
33
44export function parse ( src : string ) {
55 const doc = parseXML ( src ) ;
Original file line number Diff line number Diff line change 11import deepEqual from 'fast-deep-equal' ;
22import type * as MF from 'messageformat' ;
3- import type * as X from './xliff-spec' ;
4- import { parse } from './xliff' ;
5- import { fromNmtoken } from './nmtoken' ;
3+ import type * as X from './xliff-spec.js ' ;
4+ import { parse } from './xliff.js ' ;
5+ import { fromNmtoken } from './nmtoken.js ' ;
66
77export type ParsedUnit = {
88 /** The same `file` object is used for all units in the same file. */
You can’t perform that action at this time.
0 commit comments