jiek 0.4.7-alpha.14 → 0.4.7-alpha.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. package/bin/jiek.js +4 -7
  2. package/dist/{cli.d.cts → cli.d.mts} +0 -15
  3. package/dist/cli.d.mts.map +1 -0
  4. package/dist/cli.d.ts +0 -15
  5. package/dist/cli.d.ts.map +1 -0
  6. package/dist/cli.js +222 -4408
  7. package/dist/cli.js.map +1 -0
  8. package/dist/cli.min.js +1 -19
  9. package/dist/cli.min.js.map +1 -0
  10. package/dist/cli.min.mjs +1 -0
  11. package/dist/cli.min.mjs.map +1 -0
  12. package/dist/cli.mjs +803 -0
  13. package/dist/cli.mjs.map +1 -0
  14. package/dist/{index.d.cts → index.d.mts} +0 -15
  15. package/dist/index.d.mts.map +1 -0
  16. package/dist/index.d.ts +0 -15
  17. package/dist/index.d.ts.map +1 -0
  18. package/dist/index.js +3 -1
  19. package/dist/index.js.map +1 -0
  20. package/dist/index.min.js +1 -1
  21. package/dist/index.min.js.map +1 -0
  22. package/dist/index.min.mjs +1 -0
  23. package/dist/index.min.mjs.map +1 -0
  24. package/dist/index.mjs +3 -0
  25. package/dist/index.mjs.map +1 -0
  26. package/dist/rollup/index.d.mts.map +1 -0
  27. package/dist/rollup/index.d.ts.map +1 -0
  28. package/dist/rollup/index.js +69 -4189
  29. package/dist/rollup/index.js.map +1 -0
  30. package/dist/rollup/index.min.js +1 -19
  31. package/dist/rollup/index.min.js.map +1 -0
  32. package/dist/rollup/index.min.mjs +1 -0
  33. package/dist/rollup/index.min.mjs.map +1 -0
  34. package/dist/rollup/index.mjs +551 -0
  35. package/dist/rollup/index.mjs.map +1 -0
  36. package/package.json +19 -11
  37. package/src/commands/base.ts +2 -1
  38. package/src/commands/build.ts +2 -4
  39. package/src/commands/publish.ts +2 -16
  40. package/src/pkg.ts +1 -0
  41. package/src/rollup/index.ts +3 -5
  42. package/src/utils/filterSupport.ts +0 -2
  43. package/src/utils/getExports.ts +7 -11
  44. package/src/utils/tsRegister.ts +0 -4
  45. package/dist/cli.cjs +0 -5041
  46. package/dist/cli.min.cjs +0 -19
  47. package/dist/index.cjs +0 -5
  48. package/dist/index.min.cjs +0 -1
  49. package/dist/rollup/index.cjs +0 -4688
  50. package/dist/rollup/index.min.cjs +0 -19
  51. /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
  }
@@ -95,18 +95,3 @@ declare module 'jiek' {
95
95
  };
96
96
  }
97
97
  }
98
-
99
- declare module 'jiek' {
100
- interface Config {
101
- publish?: {
102
- /**
103
- * @default false
104
- */
105
- withSuffix?: boolean;
106
- /**
107
- * @default true
108
- */
109
- withSource?: boolean;
110
- };
111
- }
112
- }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.d.mts","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/dist/cli.d.ts CHANGED
@@ -95,18 +95,3 @@ declare module 'jiek' {
95
95
  };
96
96
  }
97
97
  }
98
-
99
- declare module 'jiek' {
100
- interface Config {
101
- publish?: {
102
- /**
103
- * @default false
104
- */
105
- withSuffix?: boolean;
106
- /**
107
- * @default true
108
- */
109
- withSource?: boolean;
110
- };
111
- }
112
- }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.d.ts","sources":[],"sourcesContent":[],"names":[],"mappings":""}