moving to .cjs scripts

This commit is contained in:
Yotam Mann 2021-10-13 13:56:57 -04:00
parent a0e7f99bcc
commit cf9edc5992
5 changed files with 4 additions and 4 deletions

View file

@ -27,10 +27,10 @@
"scratch": "webpack -w --env scratch=1 --mode=development",
"test": "npm run karma",
"test:browser": "npm run karma:browser",
"test:examples": "node ./test/scripts/test_examples",
"test:html": "node ./test/scripts/test_html",
"test:examples": "node ./test/scripts/test_examples.cjs",
"test:html": "node ./test/scripts/test_html.cjs",
"test:node": "node ./test/scripts/node_test.js",
"test:readme": "node ./test/scripts/test_readme.js",
"test:readme": "node ./test/scripts/test_readme.cjs",
"test:travis": "npm run build && npm run lint && npm run test",
"test:watch": "npm run karma:watch",
"ts:build": "tsc --project ./scripts/tsconfig.build.json",

View file

@ -1,6 +1,6 @@
/* eslint-disable @typescript-eslint/no-var-requires */
// test the tone.js build
const Tone = require("../../");
const Tone = require("../../build/esm");
const assert = require("assert");
const semver = require("semver");
const { version } = require("../../package.json");