Skip to content

Commit

Permalink
$mol_build rename js to jam.js
Browse files Browse the repository at this point in the history
  • Loading branch information
zerkalica committed Oct 25, 2023
1 parent ea9843b commit 8ce097d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions build/build.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,19 +83,19 @@ namespace $ {
const file = $mol_file.absolute( path )
const name = file.name()

const script = file.parent().resolve( `-view.tree/${ name }.js` )
const js = file.parent().resolve( `-view.tree/${ name }.jam.js` )
const dts = file.parent().resolve( `-view.tree/${ name }.d.ts` )
const locale = file.parent().resolve( `-view.tree/${ name }.locale=en.json` )

const text = file.text()
const tree = this.$.$mol_tree2_from_string( text , name )
const res = this.$.$mol_view_tree2_to_full( tree )

script.text( res.js )
js.text( res.js )
dts.text( res.dts )
locale.text( JSON.stringify( res.locales , null , '\t' ) )

return [ script , dts, locale ]
return [ js , dts, locale ]
}

@ $mol_mem_key
Expand Down Expand Up @@ -684,7 +684,7 @@ namespace $ {
const checkDep = ( p : string )=> {

const isFile = /\.\w+$/.test( p )

var dep = ( p[ 0 ] === '/' )
? this.root().resolve( p + ( isFile ? '' : '/' + p.replace( /.*\// , '' ) ) )
: ( p[ 0 ] === '.' )
Expand Down Expand Up @@ -1735,7 +1735,7 @@ namespace $ {

$mol_build.dependors[ 'view.tree' ] = source => {
return {
[`/${ source.parent().relate() }/-view.tree/${ source.name() }.js`]: 0,
[`/${ source.parent().relate() }/-view.tree/${ source.name() }.jam.js`]: 0,
[`/${ source.parent().relate() }/-view.tree/${ source.name() }.d.ts`]: 0,
}
}
Expand Down

0 comments on commit 8ce097d

Please sign in to comment.