Skip to content

Commit a4020c6

Browse files
committed
update to use import attributes rather than import assertions
1 parent e276c8b commit a4020c6

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

bin/meross-info.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
'use strict';
44

5-
import pkg from '../package.json' assert { type: 'json' };
5+
import pkg from '../package.json' with { type: 'json' };
66
import { program } from 'commander';
77
import TerminalKit from 'terminal-kit';
88
const { terminal } = TerminalKit;

bin/meross-setup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
'use strict';
44

5-
import pkg from '../package.json' assert { type: 'json' };
5+
import pkg from '../package.json' with { type: 'json' };
66
import { program } from 'commander';
77
import TerminalKit from 'terminal-kit';
88
const { terminal } = TerminalKit;

bin/meross.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
'use strict'
44

5-
import pkg from '../package.json' assert { type: 'json' };
5+
import pkg from '../package.json' with { type: 'json' };
66
import { program } from 'commander';
77

88
program
9-
.version(pkg.version)
9+
.version(pkg.version)
1010

1111
program
12-
.command('info [options]', 'get information about compatable Meross smart device')
13-
.command('setup [options]', 'setup compatable Meross smart device')
12+
.command('info [options]', 'get information about compatable Meross smart device')
13+
.command('setup [options]', 'setup compatable Meross smart device')
1414

1515
program.parse(process.argv)

0 commit comments

Comments
 (0)