jiek 0.4.7-alpha.1 → 0.4.7-alpha.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. package/bin/jiek.js +7 -4
  2. package/dist/cli.cjs +5028 -0
  3. package/dist/cli.js +4277 -95
  4. package/dist/cli.min.cjs +19 -0
  5. package/dist/cli.min.js +19 -1
  6. package/dist/index.cjs +5 -0
  7. package/dist/index.js +1 -3
  8. package/dist/index.min.cjs +1 -0
  9. package/dist/index.min.js +1 -1
  10. package/dist/rollup/index.cjs +4670 -0
  11. package/dist/rollup/index.js +4180 -66
  12. package/dist/rollup/index.min.cjs +19 -0
  13. package/dist/rollup/index.min.js +19 -1
  14. package/package.json +13 -11
  15. package/src/commands/base.ts +1 -2
  16. package/src/commands/build.ts +4 -2
  17. package/src/rollup/index.ts +2 -2
  18. package/src/utils/filterSupport.ts +2 -0
  19. package/src/utils/tsRegister.ts +4 -0
  20. package/dist/cli.d.mts.map +0 -1
  21. package/dist/cli.d.ts.map +0 -1
  22. package/dist/cli.js.map +0 -1
  23. package/dist/cli.min.js.map +0 -1
  24. package/dist/cli.min.mjs +0 -1
  25. package/dist/cli.min.mjs.map +0 -1
  26. package/dist/cli.mjs +0 -803
  27. package/dist/cli.mjs.map +0 -1
  28. package/dist/index.d.mts.map +0 -1
  29. package/dist/index.d.ts.map +0 -1
  30. package/dist/index.js.map +0 -1
  31. package/dist/index.min.js.map +0 -1
  32. package/dist/index.min.mjs +0 -1
  33. package/dist/index.min.mjs.map +0 -1
  34. package/dist/index.mjs +0 -3
  35. package/dist/index.mjs.map +0 -1
  36. package/dist/rollup/index.d.mts.map +0 -1
  37. package/dist/rollup/index.d.ts.map +0 -1
  38. package/dist/rollup/index.js.map +0 -1
  39. package/dist/rollup/index.min.js.map +0 -1
  40. package/dist/rollup/index.min.mjs +0 -1
  41. package/dist/rollup/index.min.mjs.map +0 -1
  42. package/dist/rollup/index.mjs +0 -551
  43. package/dist/rollup/index.mjs.map +0 -1
  44. package/src/pkg.ts +0 -1
  45. /package/dist/{cli.d.mts → cli.d.cts} +0 -0
  46. /package/dist/{index.d.mts → index.d.cts} +0 -0
  47. /package/dist/rollup/{index.d.mts → index.d.cts} +0 -0
package/bin/jiek.js CHANGED
@@ -1,10 +1,13 @@
1
1
  #!/usr/bin/env node
2
- const fs = require('node:fs')
3
- const path = require('node:path')
2
+ import { existsSync } from 'node:fs'
3
+ import { resolve, dirname } from 'node:path'
4
+ import { createRequire } from 'node:module'
4
5
 
5
- if (fs.existsSync(path.join(__dirname, '../.jiek-dev-tag'))) {
6
+ const __dirname = dirname(import.meta.url.replace('file://', ''))
7
+ if (existsSync(resolve(__dirname, '../.jiek-dev-tag'))) {
8
+ const require = createRequire(import.meta.url)
6
9
  require('esbuild-register')
7
10
  require('../src/cli.ts')
8
11
  } else {
9
- require('../dist/cli.cjs')
12
+ import('jiek/cli')
10
13
  }