File tree Expand file tree Collapse file tree 2 files changed +24
-15
lines changed
typescript-packages/loader Expand file tree Collapse file tree 2 files changed +24
-15
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"version" : " 2.0.0" ,
3
3
"tasks" : [
4
+ {
5
+ "label" : " Install Node Modules" ,
6
+ "type" : " shell" ,
7
+ "command" : " pnpm install --ignore-scripts" ,
8
+ "options" : {
9
+ "cwd" : " ${workspaceFolder}/"
10
+ },
11
+ "presentation" : {
12
+ "echo" : false ,
13
+ "clear" : true
14
+ },
15
+ "problemMatcher" : []
16
+ },
4
17
{
5
18
"type" : " npm" ,
6
- "script" : " dev" ,
7
- "problemMatcher" : [
8
- " $tsc-watch"
9
- ],
10
- "label" : " npm: dev" ,
11
- "detail" : " tsc -b -w" ,
12
- "isBackground" : true
19
+ "script" : " build" ,
20
+ "group" : " build" ,
21
+ "problemMatcher" : [],
22
+ "label" : " Build Millennium SDK" ,
23
+ "detail" : " build the Millennium software developement kit" ,
24
+ "dependsOn" : [" Install Node Modules" ]
13
25
}
14
26
]
15
- }
27
+ }
Original file line number Diff line number Diff line change
1
+ import fs from 'fs' ;
2
+ import del from 'rollup-plugin-del' ;
1
3
import replace from '@rollup/plugin-replace' ;
2
4
import resolve from '@rollup/plugin-node-resolve' ;
3
5
import commonjs from '@rollup/plugin-commonjs' ;
4
6
import terser from '@rollup/plugin-terser' ;
5
7
import typescript from '@rollup/plugin-typescript' ;
6
8
import externalGlobals from 'rollup-plugin-external-globals' ;
7
- import del from 'rollup-plugin-del' ;
8
-
9
- import client from '../client/package.json' assert { type : 'json ' } ;
10
- import browser from '../browser/package.json' assert { type : 'json ' } ;
11
-
12
9
import injectProcessEnv from 'rollup-plugin-inject-process-env' ;
13
10
14
- const clientVersion = client . version ;
15
- const browserVersion = browser . version ;
11
+ const clientVersion = JSON . parse ( fs . readFileSync ( new URL ( '../ client/package.json' , import . meta . url ) ) ) . version ;
12
+ const browserVersion = JSON . parse ( fs . readFileSync ( new URL ( '../ browser/package.json' , import . meta . url ) ) ) . version ;
16
13
17
14
export default {
18
15
input : 'src/index.ts' ,
You can’t perform that action at this time.
0 commit comments