jiek 0.1.1 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- package/{tests/fixtures/node_modules/.pnpm/@jiek+loader-esbuild@1.0.0_esbuild@0.20.2/node_modules/@jiek/loader-esbuild/LICENSE → LICENSE} +1 -1
- package/package.json +13 -8
- package/src/commands/build.ts +0 -91
- package/src/commands/publish.ts +0 -79
- package/src/index.ts +0 -6
- package/src/inner.ts +0 -11
- package/src/merge-package-json.ts +0 -19
- package/src/rollup/index.ts +0 -162
- package/src/rollup/plugins/globals.ts +0 -34
- package/src/rollup/plugins/skip.ts +0 -23
- package/src/rollup/utils/commonOptions.ts +0 -9
- package/src/rollup/utils/externalResolver.ts +0 -11
- package/src/rollup/utils/globalResolver.ts +0 -24
- package/src/rollup/utils/withMinify.ts +0 -16
- package/tests/build.spec.ts +0 -28
- package/tests/fixtures/node_modules/.bin/jiek +0 -17
- package/tests/fixtures/node_modules/.jiek/jiek+test-foo.rollup.config.js +0 -31
- package/tests/fixtures/node_modules/.modules.yaml +0 -95
- package/tests/fixtures/node_modules/.pnpm/@esbuild+darwin-arm64@0.20.2/node_modules/@esbuild/darwin-arm64/README.md +0 -3
- package/tests/fixtures/node_modules/.pnpm/@esbuild+darwin-arm64@0.20.2/node_modules/@esbuild/darwin-arm64/bin/esbuild +0 -0
- package/tests/fixtures/node_modules/.pnpm/@esbuild+darwin-arm64@0.20.2/node_modules/@esbuild/darwin-arm64/package.json +0 -20
- package/tests/fixtures/node_modules/.pnpm/@jiek+loader-esbuild@1.0.0_esbuild@0.20.2/node_modules/@jiek/loader-esbuild/loader.js +0 -3
- package/tests/fixtures/node_modules/.pnpm/@jiek+loader-esbuild@1.0.0_esbuild@0.20.2/node_modules/@jiek/loader-esbuild/package.json +0 -8
- package/tests/fixtures/node_modules/.pnpm/debug@4.3.4/node_modules/debug/LICENSE +0 -20
- package/tests/fixtures/node_modules/.pnpm/debug@4.3.4/node_modules/debug/README.md +0 -481
- package/tests/fixtures/node_modules/.pnpm/debug@4.3.4/node_modules/debug/package.json +0 -59
- package/tests/fixtures/node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/browser.js +0 -269
- package/tests/fixtures/node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/common.js +0 -274
- package/tests/fixtures/node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/index.js +0 -10
- package/tests/fixtures/node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/node.js +0 -263
- package/tests/fixtures/node_modules/.pnpm/esbuild-register@3.5.0_esbuild@0.20.2/node_modules/esbuild-register/LICENSE +0 -21
- package/tests/fixtures/node_modules/.pnpm/esbuild-register@3.5.0_esbuild@0.20.2/node_modules/esbuild-register/README.md +0 -50
- package/tests/fixtures/node_modules/.pnpm/esbuild-register@3.5.0_esbuild@0.20.2/node_modules/esbuild-register/dist/loader.d.ts +0 -3
- package/tests/fixtures/node_modules/.pnpm/esbuild-register@3.5.0_esbuild@0.20.2/node_modules/esbuild-register/dist/loader.js +0 -15
- package/tests/fixtures/node_modules/.pnpm/esbuild-register@3.5.0_esbuild@0.20.2/node_modules/esbuild-register/dist/node.d.ts +0 -23
- package/tests/fixtures/node_modules/.pnpm/esbuild-register@3.5.0_esbuild@0.20.2/node_modules/esbuild-register/dist/node.js +0 -4926
- package/tests/fixtures/node_modules/.pnpm/esbuild-register@3.5.0_esbuild@0.20.2/node_modules/esbuild-register/loader.js +0 -1
- package/tests/fixtures/node_modules/.pnpm/esbuild-register@3.5.0_esbuild@0.20.2/node_modules/esbuild-register/node_modules/.bin/esbuild +0 -14
- package/tests/fixtures/node_modules/.pnpm/esbuild-register@3.5.0_esbuild@0.20.2/node_modules/esbuild-register/package.json +0 -46
- package/tests/fixtures/node_modules/.pnpm/esbuild-register@3.5.0_esbuild@0.20.2/node_modules/esbuild-register/register.js +0 -3
- package/tests/fixtures/node_modules/.pnpm/esbuild@0.20.2/node_modules/esbuild/LICENSE.md +0 -21
- package/tests/fixtures/node_modules/.pnpm/esbuild@0.20.2/node_modules/esbuild/README.md +0 -3
- package/tests/fixtures/node_modules/.pnpm/esbuild@0.20.2/node_modules/esbuild/bin/esbuild +0 -0
- package/tests/fixtures/node_modules/.pnpm/esbuild@0.20.2/node_modules/esbuild/install.js +0 -288
- package/tests/fixtures/node_modules/.pnpm/esbuild@0.20.2/node_modules/esbuild/lib/main.d.ts +0 -703
- package/tests/fixtures/node_modules/.pnpm/esbuild@0.20.2/node_modules/esbuild/lib/main.js +0 -2436
- package/tests/fixtures/node_modules/.pnpm/esbuild@0.20.2/node_modules/esbuild/node_modules/.bin/esbuild +0 -14
- package/tests/fixtures/node_modules/.pnpm/esbuild@0.20.2/node_modules/esbuild/package.json +0 -46
- package/tests/fixtures/node_modules/.pnpm/lock.yaml +0 -291
- package/tests/fixtures/node_modules/.pnpm/ms@2.1.2/node_modules/ms/index.js +0 -162
- package/tests/fixtures/node_modules/.pnpm/ms@2.1.2/node_modules/ms/license.md +0 -21
- package/tests/fixtures/node_modules/.pnpm/ms@2.1.2/node_modules/ms/package.json +0 -37
- package/tests/fixtures/node_modules/.pnpm/ms@2.1.2/node_modules/ms/readme.md +0 -60
- package/tests/fixtures/node_modules/.pnpm/node_modules/.bin/esbuild +0 -14
- package/tests/fixtures/package.json +0 -8
- package/tests/fixtures/packages/bar/package.json +0 -4
- package/tests/fixtures/packages/foo/dist/index.d.ts +0 -3
- package/tests/fixtures/packages/foo/dist/index.esm.d.ts +0 -3
- package/tests/fixtures/packages/foo/dist/index.esm.js +0 -6
- package/tests/fixtures/packages/foo/dist/index.esm.js.map +0 -1
- package/tests/fixtures/packages/foo/dist/index.esm.min.js +0 -2
- package/tests/fixtures/packages/foo/dist/index.esm.min.js.map +0 -1
- package/tests/fixtures/packages/foo/dist/index.iife.js +0 -15
- package/tests/fixtures/packages/foo/dist/index.iife.js.map +0 -1
- package/tests/fixtures/packages/foo/dist/index.iife.min.js +0 -2
- package/tests/fixtures/packages/foo/dist/index.iife.min.js.map +0 -1
- package/tests/fixtures/packages/foo/dist/index.umd.js +0 -16
- package/tests/fixtures/packages/foo/dist/index.umd.js.map +0 -1
- package/tests/fixtures/packages/foo/dist/index.umd.min.js +0 -2
- package/tests/fixtures/packages/foo/dist/index.umd.min.js.map +0 -1
- package/tests/fixtures/packages/foo/package.json +0 -7
- package/tests/fixtures/packages/foo/src/index.ts +0 -3
- package/tests/fixtures/pnpm-workspace.yaml +0 -2
- package/tests/publish.spec.ts +0 -31
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.esm.min.js","sources":["../src/index.ts"],"sourcesContent":["export default function (a: number, b: string) {\n return a + b\n}\n"],"names":["index","a","b"],"mappings":"AAAA,SAAAA,EAAyBC,EAAWC,GAClC,OAAOD,EAAIC,CACb"}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
var JiekTestFoo = (function (exports) {
|
2
|
-
'use strict';
|
3
|
-
|
4
|
-
function index(a, b) {
|
5
|
-
return a + b;
|
6
|
-
}
|
7
|
-
|
8
|
-
exports.default = index;
|
9
|
-
|
10
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
11
|
-
|
12
|
-
return exports;
|
13
|
-
|
14
|
-
})({});
|
15
|
-
//# sourceMappingURL=index.iife.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.iife.js","sources":["../src/index.ts"],"sourcesContent":["export default function (a: number, b: string) {\n return a + b\n}\n"],"names":[],"mappings":";;;EAAA,cAAA,CAAyB,GAAW,CAAW,EAAA;EAC7C,EAAA,OAAO,CAAI,GAAA,CAAA,CAAA;EACb;;;;;;;;;;;;"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.iife.min.js","sources":["../src/index.ts"],"sourcesContent":["export default function (a: number, b: string) {\n return a + b\n}\n"],"names":["a","b"],"mappings":"0DAAA,SAAyBA,EAAWC,GAClC,OAAOD,EAAIC,CACb"}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
(function (global, factory) {
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.JiekTestFoo = {}));
|
5
|
-
})(this, (function (exports) { 'use strict';
|
6
|
-
|
7
|
-
function index(a, b) {
|
8
|
-
return a + b;
|
9
|
-
}
|
10
|
-
|
11
|
-
exports.default = index;
|
12
|
-
|
13
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
14
|
-
|
15
|
-
}));
|
16
|
-
//# sourceMappingURL=index.umd.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.umd.js","sources":["../src/index.ts"],"sourcesContent":["export default function (a: number, b: string) {\n return a + b\n}\n"],"names":[],"mappings":";;;;;;EAAA,cAAA,CAAyB,GAAW,CAAW,EAAA;EAC7C,EAAA,OAAO,CAAI,GAAA,CAAA,CAAA;EACb;;;;;;;;;;"}
|
@@ -1,2 +0,0 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).JiekTestFoo={})}(this,(function(e){"use strict";e.default=function(e,t){return e+t},Object.defineProperty(e,"__esModule",{value:!0})}));
|
2
|
-
//# sourceMappingURL=index.umd.min.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.umd.min.js","sources":["../src/index.ts"],"sourcesContent":["export default function (a: number, b: string) {\n return a + b\n}\n"],"names":["a","b"],"mappings":"6PAAA,SAAyBA,EAAWC,GAClC,OAAOD,EAAIC,CACb"}
|
package/tests/publish.spec.ts
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
import '../src/commands/publish'
|
2
|
-
|
3
|
-
import fs from 'node:fs'
|
4
|
-
import path from 'node:path'
|
5
|
-
|
6
|
-
import * as childProcess from 'child_process'
|
7
|
-
import { program } from 'commander'
|
8
|
-
import { afterAll, beforeAll, describe, test } from 'vitest'
|
9
|
-
|
10
|
-
import { actionFuture } from '../src/inner'
|
11
|
-
|
12
|
-
const ROOT = path.resolve(__dirname, 'fixtures')
|
13
|
-
|
14
|
-
beforeAll(() => {
|
15
|
-
childProcess.execSync('pnpm i', {
|
16
|
-
cwd: ROOT,
|
17
|
-
stdio: 'inherit'
|
18
|
-
})
|
19
|
-
})
|
20
|
-
afterAll(() => {
|
21
|
-
fs.unlinkSync(path.resolve(ROOT, 'node_modules'))
|
22
|
-
})
|
23
|
-
|
24
|
-
const prefixes = ['node', 'jiek', 'publish', '--root', ROOT]
|
25
|
-
describe('publish', () => {
|
26
|
-
test('base', () => {
|
27
|
-
process.argv = [...prefixes, '--filter', 'test-foo']
|
28
|
-
program.parse(process.argv)
|
29
|
-
return actionFuture
|
30
|
-
})
|
31
|
-
})
|