File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
2- "extends" : " pebblekit-ts /config/tsconfig.json" ,
3- "include" : [" src/ts/**/*" , " node_modules/pebblekit-ts /lib/**/*" ]
2+ "extends" : " pkts /config/tsconfig.json" ,
3+ "include" : [" src/ts/**/*" , " node_modules/pkts /lib/**/*" ]
44}
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ export default {
1212 "termost" ,
1313 "path" ,
1414 "fs" ,
15+ "url" ,
1516 "@rollup/plugin-typescript" ,
1617 "@rollup/plugin-node-resolve" ,
1718 "@rollup/plugin-babel" ,
Original file line number Diff line number Diff line change @@ -25,11 +25,11 @@ export const checks: DoctorCheck[] = [
2525 ) ;
2626
2727 const hasPebbkitDependency =
28- packageJsonContent . dependencies ?. [ "pebblekit-ts" ] ||
29- packageJsonContent . devDependencies ?. [ "pebblekit-ts" ] ;
28+ packageJsonContent . dependencies ?. [ pkg . name ] ||
29+ packageJsonContent . devDependencies ?. [ pkg . name ] ;
3030
3131 if ( ! hasPebbkitDependency ) {
32- return "pebblekit-ts is not listed as a dependency" ;
32+ return ` ${ pkg . name } is not listed as a dependency` ;
3333 }
3434
3535 const buildScript = packageJsonContent . scripts ?. build ;
@@ -46,14 +46,14 @@ export const checks: DoctorCheck[] = [
4646 ) ;
4747
4848 const hasPebbkitDependency =
49- packageJsonContent . dependencies ?. [ "pebblekit-ts" ] ||
50- packageJsonContent . devDependencies ?. [ "pebblekit-ts" ] ;
49+ packageJsonContent . dependencies ?. [ pkg . name ] ||
50+ packageJsonContent . devDependencies ?. [ pkg . name ] ;
5151
5252 if ( ! hasPebbkitDependency ) {
5353 if ( ! packageJsonContent . dependencies ) {
5454 packageJsonContent . dependencies = { } ;
5555 }
56- packageJsonContent . dependencies [ "pebblekit-ts" ] = `^${ pkg . version } ` ;
56+ packageJsonContent . dependencies [ pkg . name ] = `^${ pkg . version } ` ;
5757 console . log (
5858 helpers . format (
5959 `Make sure to run "npm i" before building your project!!` ,
Original file line number Diff line number Diff line change 11import path from "path" ;
2+ import { fileURLToPath } from "url" ;
23
34export const projectDir = process . cwd ( ) ;
4- export const pktsDir = path . join ( projectDir , "node_modules" , "pebblekit-ts" ) ;
5+ export const pktsDir = path . join (
6+ path . dirname ( fileURLToPath ( import . meta. url ) ) ,
7+ ".."
8+ ) ;
You can’t perform that action at this time.
0 commit comments