Skip to content

Commit

Permalink
Fix packaging issues
Browse files Browse the repository at this point in the history
  • Loading branch information
stylemistake committed Jul 23, 2021
1 parent 7f40ebb commit 6839cf2
Show file tree
Hide file tree
Showing 6 changed files with 102 additions and 95 deletions.
174 changes: 87 additions & 87 deletions .yarn/juke/index.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarn/juke/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "juke-build",
"version": "0.5.1",
"version": "0.6.0",
"description": "The AKE-less Build System for JavaScript and Node.js.",
"keywords": [
"build",
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [0.6.1] - 2021-07-23

> Re-released due to issues with packaging. Updated local juke build binary and removed unnecessary console logs.
## [0.6.0] - 2021-07-23

### BREAKING CHANGES
Expand All @@ -17,6 +21,10 @@ Juke.setup({ file: import.meta.url });
Juke.setup({ file: __filename });
```

## [0.5.1] - 2021-07-04

> Re-released due to issues with packaging.
## [0.5.0] - 2021-07-04

### Added
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Copy contents of the `dist` folder anywhere you want to use Juke (and rename it

```ts
// build.mjs
import * as Juke from './juke/index.cjs';
import Juke from './juke/index.cjs';

Juke.setup({ file: import.meta.url });

Expand Down
7 changes: 4 additions & 3 deletions build.mjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
#!/usr/bin/env node
import { createRequire } from 'module';
import fs from 'fs';
import Juke from './.yarn/juke/index.cjs';

const require = createRequire(import.meta.url);

console.log(process.mainModule);
const Juke = require('./dist/index.cjs');

process.chdir(new URL('.', import.meta.url).pathname);

Expand Down Expand Up @@ -50,6 +48,9 @@ export const BundleTarget = Juke.createTarget({
entryPoints: ['src/index.ts'],
outfile: 'dist/index.cjs',
});
const content = fs.readFileSync('dist/index.cjs', 'utf-8')
.replaceAll(process.cwd() + '/.yarn/cache/', '');
fs.writeFileSync('dist/index.cjs', content);
},
});

Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
"./dist"
],
"scripts": {
"prepack": "./build.cjs build",
"build": "./build.cjs build",
"test": "node test/index.cjs"
"prepack": "./build.mjs build"
},
"devDependencies": {
"@types/glob": "^7.1.4",
Expand Down

0 comments on commit 6839cf2

Please sign in to comment.