jiek 0.4.7-alpha.13 → 0.4.7-alpha.3

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 +4 -7
  2. package/dist/cli.d.mts.map +1 -0
  3. package/dist/cli.d.ts.map +1 -0
  4. package/dist/cli.js +95 -4277
  5. package/dist/cli.js.map +1 -0
  6. package/dist/cli.min.js +1 -19
  7. package/dist/cli.min.js.map +1 -0
  8. package/dist/cli.min.mjs +1 -0
  9. package/dist/cli.min.mjs.map +1 -0
  10. package/dist/cli.mjs +803 -0
  11. package/dist/cli.mjs.map +1 -0
  12. package/dist/index.d.mts.map +1 -0
  13. package/dist/index.d.ts.map +1 -0
  14. package/dist/index.js +3 -1
  15. package/dist/index.js.map +1 -0
  16. package/dist/index.min.js +1 -1
  17. package/dist/index.min.js.map +1 -0
  18. package/dist/index.min.mjs +1 -0
  19. package/dist/index.min.mjs.map +1 -0
  20. package/dist/index.mjs +3 -0
  21. package/dist/index.mjs.map +1 -0
  22. package/dist/rollup/index.d.mts.map +1 -0
  23. package/dist/rollup/index.d.ts.map +1 -0
  24. package/dist/rollup/index.js +68 -4183
  25. package/dist/rollup/index.js.map +1 -0
  26. package/dist/rollup/index.min.js +1 -19
  27. package/dist/rollup/index.min.js.map +1 -0
  28. package/dist/rollup/index.min.mjs +1 -0
  29. package/dist/rollup/index.min.mjs.map +1 -0
  30. package/dist/rollup/index.mjs +551 -0
  31. package/dist/rollup/index.mjs.map +1 -0
  32. package/package.json +11 -13
  33. package/src/commands/base.ts +2 -1
  34. package/src/commands/build.ts +2 -4
  35. package/src/pkg.ts +1 -0
  36. package/src/rollup/index.ts +3 -5
  37. package/src/utils/filterSupport.ts +0 -2
  38. package/src/utils/tsRegister.ts +0 -4
  39. package/dist/cli.cjs +0 -5037
  40. package/dist/cli.min.cjs +0 -19
  41. package/dist/index.cjs +0 -5
  42. package/dist/index.min.cjs +0 -1
  43. package/dist/rollup/index.cjs +0 -4683
  44. package/dist/rollup/index.min.cjs +0 -19
  45. /package/dist/{cli.d.cts → cli.d.mts} +0 -0
  46. /package/dist/{index.d.cts → index.d.mts} +0 -0
  47. /package/dist/rollup/{index.d.cts → index.d.mts} +0 -0
package/bin/jiek.js CHANGED
@@ -1,13 +1,10 @@
1
1
  #!/usr/bin/env node
2
- import { existsSync } from 'node:fs'
3
- import { resolve, dirname } from 'node:path'
4
- import { createRequire } from 'node:module'
2
+ const fs = require('node:fs')
3
+ const path = require('node:path')
5
4
 
6
- const __dirname = dirname(import.meta.url.replace('file://', ''))
7
- if (existsSync(resolve(__dirname, '../.jiek-dev-tag'))) {
8
- const require = createRequire(import.meta.url)
5
+ if (fs.existsSync(path.join(__dirname, '../.jiek-dev-tag'))) {
9
6
  require('esbuild-register')
10
7
  require('../src/cli.ts')
11
8
  } else {
12
- import('jiek/cli')
9
+ require('jiek/cli')
13
10
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.d.mts","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.d.ts","sources":[],"sourcesContent":[],"names":[],"mappings":""}