-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 fix(all): up env and fix cache issue in lib
- Loading branch information
1 parent
edb2831
commit f7a8528
Showing
8 changed files
with
64 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { build } from '@backan/builder' | ||
|
||
import { | ||
cliDistPath, | ||
getPkg, | ||
} from './core.mjs' | ||
|
||
const run = async () => { | ||
|
||
const pkg = await getPkg() | ||
|
||
await build( { | ||
input : cliDistPath, | ||
name : pkg.extra.id, | ||
} ) | ||
|
||
} | ||
run() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { createRequire } from 'module' | ||
import { | ||
dirname, | ||
join as joinPath, | ||
} from 'path' | ||
import { fileURLToPath } from 'url' | ||
|
||
export { joinPath } | ||
|
||
export const workspacePath = joinPath( dirname( fileURLToPath( import.meta.url ) ), '..' ) | ||
export const pkgPath = joinPath( workspacePath, 'package.json' ) | ||
export const cliSrcPath = joinPath( workspacePath, 'src', 'cli.js' ) | ||
export const distPathOnly = joinPath( 'build', 'in' ) | ||
export const cliDistDir = joinPath( workspacePath, distPathOnly ) | ||
export const cliDistPath = joinPath( workspacePath, distPathOnly, 'cli.cjs' ) | ||
|
||
const require = createRequire( import.meta.url ) | ||
export const getPkg = async () => require( pkgPath ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters