Skip to content

Commit

Permalink
refactor!: Drop CJS support
Browse files Browse the repository at this point in the history
+ Migrate to vitest
  • Loading branch information
LuanRT committed Oct 28, 2024
1 parent 9629ea4 commit e3d5346
Show file tree
Hide file tree
Showing 21 changed files with 2,157 additions and 4,873 deletions.
3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
src/
!dist/**
!README.md
!bundle/**
!bundle/**
!acorn.d.ts
1 change: 0 additions & 1 deletion bundle/jinter.cts

This file was deleted.

4 changes: 2 additions & 2 deletions examples/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import fs from 'fs';
import { Jinter } from 'jintr';
import { Jinter } from '../src/index.ts';

const jinter = new Jinter();
jinter.scope.set('ntoken', 'vPIcacaohWtfY_');
jinter.scope.set('ntoken', 'G2fACC5OaSOmA_7a');
const code = fs.readFileSync('./test-code.js').toString();
const result = jinter.evaluate(code);

Expand Down
233 changes: 24 additions & 209 deletions examples/test-code.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 0 additions & 14 deletions jest.config.js

This file was deleted.

Loading

0 comments on commit e3d5346

Please sign in to comment.