diff --git a/packages/less/package.json b/packages/less/package.json index 5a97a0478..fbfcf58fa 100644 --- a/packages/less/package.json +++ b/packages/less/package.json @@ -56,6 +56,8 @@ "source-map": "~0.6.0" }, "devDependencies": { + "@less/test-data": "^4.1.0", + "@less/test-import-module": "^4.0.0", "@rollup/plugin-commonjs": "^17.0.0", "@rollup/plugin-json": "^4.1.0", "@rollup/plugin-node-resolve": "^11.0.0", diff --git a/packages/less/test/less-test.js b/packages/less/test/less-test.js index 1ac16c189..c06f4a5be 100644 --- a/packages/less/test/less-test.js +++ b/packages/less/test/less-test.js @@ -32,7 +32,7 @@ module.exports = function() { var oneTestOnly = process.argv[2], isFinished = false; - var testFolder = path.dirname(require.resolve('../../test-data')); + var testFolder = path.dirname(require.resolve('@less/test-data')); var lessFolder = path.join(testFolder, 'less'); // Define String.prototype.endsWith if it doesn't exist (in older versions of node) diff --git a/packages/test-data/less/_main/import-module.less b/packages/test-data/less/_main/import-module.less index e432821ef..495b8a30d 100644 --- a/packages/test-data/less/_main/import-module.less +++ b/packages/test-data/less/_main/import-module.less @@ -1,3 +1,3 @@ -@import "../../../test-import-module/one/two/three/3.less"; -@import "../../../test-import-module/one/two/2"; -@import "../../../test-import-module/one/1.less"; +@import "@less/test-import-module/one/two/three/3.less"; +@import "@less/test-import-module/one/two/2"; +@import "@less/test-import-module/one/1.less";