Skip to content
Permalink
Browse files

update packages

  • Loading branch information...
FredKSchott committed Feb 10, 2019
1 parent 2b8bf51 commit 0cae695dcd7229fb3fe451131d2c1123526c8813
Showing with 173 additions and 89 deletions.
  1. +1 −1 packages/babel-plugin-esm-import-rewrite/package-lock.json
  2. +1 −1 packages/babel-plugin-esm-import-rewrite/package.json
  3. +1 −1 packages/babel-plugin-esm-import-rewrite/pkg/dist-src/index.js
  4. +2 −3 packages/babel-plugin-esm-import-rewrite/pkg/package.json
  5. +1 −1 packages/plugin-build-deno/package-lock.json
  6. +3 −3 packages/plugin-build-deno/package.json
  7. +7 −2 packages/plugin-build-deno/pkg/package.json
  8. +1 −1 packages/plugin-build-node/package-lock.json
  9. +3 −3 packages/plugin-build-node/package.json
  10. +6 −1 packages/plugin-build-node/pkg/README.md
  11. +4 −2 packages/plugin-build-node/pkg/dist-node/index.js
  12. +3 −2 packages/plugin-build-node/pkg/dist-src/index.js
  13. +1 −1 packages/plugin-build-node/pkg/dist-types/index.d.ts
  14. +7 −2 packages/plugin-build-node/pkg/package.json
  15. +1 −1 packages/plugin-build-types/package-lock.json
  16. +3 −3 packages/plugin-build-types/package.json
  17. +7 −2 packages/plugin-build-types/pkg/package.json
  18. +1 −1 packages/plugin-build-umd/package-lock.json
  19. +3 −3 packages/plugin-build-umd/package.json
  20. +7 −2 packages/plugin-build-umd/pkg/package.json
  21. +1 −1 packages/plugin-build-web/package-lock.json
  22. +6 −1 packages/plugin-build-web/package.json
  23. +7 −2 packages/plugin-build-web/pkg/package.json
  24. +1 −1 packages/plugin-bundle-node/package-lock.json
  25. +3 −3 packages/plugin-bundle-node/package.json
  26. +7 −2 packages/plugin-bundle-node/pkg/package.json
  27. +1 −1 packages/plugin-bundle-web/package-lock.json
  28. +3 −3 packages/plugin-bundle-web/package.json
  29. +7 −2 packages/plugin-bundle-web/pkg/package.json
  30. +1 −1 packages/plugin-simple-bin/package-lock.json
  31. +3 −3 packages/plugin-simple-bin/package.json
  32. +6 −1 packages/plugin-simple-bin/pkg/package.json
  33. +1 −1 packages/plugin-source-bucklescript/package-lock.json
  34. +3 −3 packages/plugin-source-bucklescript/package.json
  35. +7 −2 packages/plugin-source-bucklescript/pkg/package.json
  36. +1 −1 packages/plugin-standard-pkg/package-lock.json
  37. +3 −3 packages/plugin-standard-pkg/package.json
  38. +7 −2 packages/plugin-standard-pkg/pkg/package.json
  39. +1 −1 packages/plugin-ts-standard-pkg/package-lock.json
  40. +3 −3 packages/plugin-ts-standard-pkg/package.json
  41. +1 −1 packages/plugin-ts-standard-pkg/pkg/dist-node/index.js
  42. +1 −1 packages/plugin-ts-standard-pkg/pkg/dist-src/index.js
  43. +7 −2 packages/plugin-ts-standard-pkg/pkg/package.json
  44. +8 −1 packages/plugin-wasm-assemblyscript/package-lock.json
  45. +3 −3 packages/plugin-wasm-assemblyscript/package.json
  46. +6 −1 packages/plugin-wasm-assemblyscript/pkg/package.json
  47. +1 −1 packages/plugin-wasm-bindings/package-lock.json
  48. +3 −3 packages/plugin-wasm-bindings/package.json
  49. +6 −1 packages/plugin-wasm-bindings/pkg/package.json
  50. +1 −1 packages/types/package-lock.json
  51. +1 −1 packages/types/package.json

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -1,6 +1,6 @@
{
"name": "@pika/babel-plugin-esm-import-rewrite",
"version": "0.3.9",
"version": "0.3.10",
"main": "pkg/dist-node/index.js",
"publishConfig": {
"access": "public"
@@ -1,7 +1,7 @@
import nodeFs from 'fs';
import url from 'url';
import nodePath from 'path';
import { validateDynamicImportArguments } from './validate-specifier';
import { validateDynamicImportArguments } from './validate-specifier.js';
const BareIdentifierFormat = /^((?:@[^\/]+\/)?[^\/]+)(\/.*)?$/;
export default function transform({}) {
function rewriteImport(specifier, { opts, file }) {
@@ -1,7 +1,6 @@
{
"name": "@pika/babel-plugin-esm-import-rewrite",
"description": "A @pika/pack plugin: ",
"version": "0.3.9",
"version": "0.3.10",
"pika": true,
"files": [
"dist-*/",
@@ -11,6 +10,6 @@
"sideEffects": false,
"dependencies": {},
"source": "dist-src/index.js",
"types": "dist-types/index.js",
"types": "dist-types/index.d.ts",
"main": "dist-node/index.js"
}

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -1,12 +1,12 @@
{
"name": "@pika/plugin-build-deno",
"version": "0.3.9",
"version": "0.3.10",
"description": "A @pika/pack plugin: Adds a TypeScript distribution to your package, built to run on Deno.",
"main": "pkg/dist-node/index.js",
"homepage": "https://www.pikapkg.com",
"repository": {
"type" : "git",
"url" : "https://github.com/pikapkg/builders.git"
"type": "git",
"url": "https://github.com/pikapkg/builders.git"
},
"publishConfig": {
"access": "public"
@@ -1,9 +1,9 @@
{
"name": "@pika/plugin-build-deno",
"description": "A @pika/pack plugin: Adds a TypeScript distribution to your package, built to run on Deno.",
"version": "0.3.9",
"version": "0.3.10",
"source": "dist-src/index.js",
"types": "dist-types/index.js",
"types": "dist-types/index.d.ts",
"main": "dist-node/index.js",
"pika": true,
"sideEffects": false,
@@ -12,6 +12,11 @@
"assets/",
"bin/"
],
"homepage": "https://www.pikapkg.com/",
"repository": {
"type": "git",
"url": "https://github.com/pikapkg/builders.git"
},
"dependencies": {
"@pika/types": "^0.3.5",
"mkdirp": "^0.5.1"

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -1,12 +1,12 @@
{
"name": "@pika/plugin-build-node",
"version": "0.3.9",
"version": "0.3.10",
"description": "A @pika/pack plugin: Adds a Node.js distribution to your package, built & optimized to run on Node.js.",
"main": "pkg/dist-node/index.js",
"homepage": "https://www.pikapkg.com",
"repository": {
"type" : "git",
"url" : "https://github.com/pikapkg/builders.git"
"type": "git",
"url": "https://github.com/pikapkg/builders.git"
},
"publishConfig": {
"access": "public"
@@ -23,7 +23,7 @@ yarn add @pika/plugin-build-node --dev
"@pika/pack": {
"pipeline": [
["@pika/plugin-standard-pkg"],
["@pika/plugin-build-node"]
["@pika/plugin-build-node", {}]
]
}
}
@@ -32,6 +32,11 @@ yarn add @pika/plugin-build-node --dev
For more information about @pika/pack & help getting started, [check out the main project repo](https://github.com/pikapkg/pack).


## Options

- `"minNodeVersion"` (Default: `"6"`): This plugin will build your package for the current minimum [Node.js LTS](https://github.com/nodejs/Release) major version. This option allows you to target later versions of Node.js only.


## Result

1. Adds a Node.js distribution to your built package: `dist-node/index.js`
@@ -51,6 +51,7 @@ function _asyncToGenerator(fn) {
};
}

const DEFAULT_MIN_NODE_VERSION = '6';
function manifest(manifest) {
manifest.main = manifest.main || 'dist-node/index.js';
}
@@ -84,7 +85,8 @@ function build(_x2) {
function _build() {
_build = _asyncToGenerator(function* ({
out,
reporter
reporter,
options
}) {
const writeToNode = path.join(out, 'dist-node', 'index.js'); // TODO: KEEP FIXING THIS,

@@ -97,7 +99,7 @@ function _build() {
presets: [[babelPresetEnv, {
modules: false,
targets: {
node: '6'
node: options.minNodeVersion || DEFAULT_MIN_NODE_VERSION
},
spec: true
}]],
@@ -8,6 +8,7 @@ import builtinModules from 'builtin-modules';
import rollupBabel from 'rollup-plugin-babel';
import { MessageError } from '@pika/types';
import { rollup } from 'rollup';
const DEFAULT_MIN_NODE_VERSION = '6';
export function manifest(manifest) {
manifest.main = manifest.main || 'dist-node/index.js';
}
@@ -21,7 +22,7 @@ export async function beforeJob({ out }) {
throw new MessageError('"dist-src/index.js" is the expected standard entrypoint, but it does not exist.');
}
}
export async function build({ out, reporter }) {
export async function build({ out, reporter, options }) {
const writeToNode = path.join(out, 'dist-node', 'index.js');
// TODO: KEEP FIXING THIS,
const result = await rollup({
@@ -36,7 +37,7 @@ export async function build({ out, reporter }) {
babelPresetEnv,
{
modules: false,
targets: { node: '6' },
targets: { node: options.minNodeVersion || DEFAULT_MIN_NODE_VERSION },
spec: true,
},
],
@@ -1,4 +1,4 @@
import { BuilderOptions } from '@pika/types';
export declare function manifest(manifest: any): void;
export declare function beforeJob({ out }: BuilderOptions): Promise<void>;
export declare function build({ out, reporter }: BuilderOptions): Promise<void>;
export declare function build({ out, reporter, options }: BuilderOptions): Promise<void>;
@@ -1,9 +1,9 @@
{
"name": "@pika/plugin-build-node",
"description": "A @pika/pack plugin: Adds a Node.js distribution to your package, built & optimized to run on Node.js.",
"version": "0.3.9",
"version": "0.3.10",
"source": "dist-src/index.js",
"types": "dist-types/index.js",
"types": "dist-types/index.d.ts",
"main": "dist-node/index.js",
"pika": true,
"sideEffects": false,
@@ -12,6 +12,11 @@
"assets/",
"bin/"
],
"homepage": "https://www.pikapkg.com/",
"repository": {
"type": "git",
"url": "https://github.com/pikapkg/builders.git"
},
"dependencies": {
"@babel/core": "^7.0.0",
"@babel/plugin-syntax-dynamic-import": "^7.2.0",

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -1,12 +1,12 @@
{
"name": "@pika/plugin-build-types",
"version": "0.3.9",
"version": "0.3.10",
"description": "A @pika/pack plugin: Adds TypeScript type definitions to your package build.",
"main": "pkg/dist-node/index.js",
"homepage": "https://www.pikapkg.com",
"repository": {
"type" : "git",
"url" : "https://github.com/pikapkg/builders.git"
"type": "git",
"url": "https://github.com/pikapkg/builders.git"
},
"publishConfig": {
"access": "public"
@@ -1,9 +1,9 @@
{
"name": "@pika/plugin-build-types",
"description": "A @pika/pack plugin: Adds TypeScript type definitions to your package build.",
"version": "0.3.9",
"version": "0.3.10",
"source": "dist-src/index.js",
"types": "dist-types/index.js",
"types": "dist-types/index.d.ts",
"main": "dist-node/index.js",
"pika": true,
"sideEffects": false,
@@ -12,6 +12,11 @@
"assets/",
"bin/"
],
"homepage": "https://www.pikapkg.com/",
"repository": {
"type": "git",
"url": "https://github.com/pikapkg/builders.git"
},
"dependencies": {
"@pika/types": "^0.3.5",
"execa": "^1.0.0",

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -1,12 +1,12 @@
{
"name": "@pika/plugin-build-umd",
"version": "0.3.9",
"version": "0.3.10",
"description": "A @pika/pack plugin: Adds a UMD distribution to your package, built to be flexible & run on legacy browsers & environments.",
"main": "pkg/dist-node/index.js",
"homepage": "https://www.pikapkg.com",
"repository": {
"type" : "git",
"url" : "https://github.com/pikapkg/builders.git"
"type": "git",
"url": "https://github.com/pikapkg/builders.git"
},
"publishConfig": {
"access": "public"
@@ -1,9 +1,9 @@
{
"name": "@pika/plugin-build-umd",
"description": "A @pika/pack plugin: Adds a UMD distribution to your package, built to be flexible & run on legacy browsers & environments.",
"version": "0.3.9",
"version": "0.3.10",
"source": "dist-src/index.js",
"types": "dist-types/index.js",
"types": "dist-types/index.d.ts",
"main": "dist-node/index.js",
"pika": true,
"sideEffects": false,
@@ -12,6 +12,11 @@
"assets/",
"bin/"
],
"homepage": "https://www.pikapkg.com/",
"repository": {
"type": "git",
"url": "https://github.com/pikapkg/builders.git"
},
"dependencies": {
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
"@babel/plugin-syntax-import-meta": "^7.2.0",

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -1,8 +1,13 @@
{
"name": "@pika/plugin-build-web",
"version": "0.3.9",
"version": "0.3.10",
"description": "A @pika/pack plugin: Adds an ESM distribution to your package, built & optimized to run in most web browsers (and bundlers).",
"main": "pkg/dist-node/index.js",
"homepage": "https://www.pikapkg.com",
"repository": {
"type" : "git",
"url" : "https://github.com/pikapkg/builders.git"
},
"publishConfig": {
"access": "public"
},
@@ -1,9 +1,9 @@
{
"name": "@pika/plugin-build-web",
"description": "A @pika/pack plugin: Adds an ESM distribution to your package, built & optimized to run in most web browsers (and bundlers).",
"version": "0.3.9",
"version": "0.3.10",
"source": "dist-src/index.js",
"types": "dist-types/index.js",
"types": "dist-types/index.d.ts",
"main": "dist-node/index.js",
"pika": true,
"sideEffects": false,
@@ -12,6 +12,11 @@
"assets/",
"bin/"
],
"homepage": "https://www.pikapkg.com/",
"repository": {
"type": "git",
"url": "https://github.com/pikapkg/builders.git"
},
"dependencies": {
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
"@babel/plugin-syntax-import-meta": "^7.2.0",

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -1,12 +1,12 @@
{
"name": "@pika/plugin-bundle-node",
"version": "0.3.9",
"version": "0.3.10",
"description": "A @pika/pack plugin: Adds a bundled Node.js distribution to your package.",
"main": "pkg/dist-node/index.js",
"homepage": "https://www.pikapkg.com",
"repository": {
"type" : "git",
"url" : "https://github.com/pikapkg/builders.git"
"type": "git",
"url": "https://github.com/pikapkg/builders.git"
},
"publishConfig": {
"access": "public"
Oops, something went wrong.

0 comments on commit 0cae695

Please sign in to comment.
You can’t perform that action at this time.